---
title: "POST /v1/{+parent}/gatewaySecurityPolicies"
method: POST
path: "/v1/{+parent}/gatewaySecurityPolicies"
tags: ["projects"]
---

# POST /v1/{+parent}/gatewaySecurityPolicies

`POST /v1/{+parent}/gatewaySecurityPolicies`

Creates a new GatewaySecurityPolicy in a given project and location.

## Path parameters

- `parent` string, required

## Query parameters

- `gatewaySecurityPolicyId` string

## Request body

- GatewaySecurityPolicy — The GatewaySecurityPolicy resource contains a collection of GatewaySecurityPolicyRules and associated metadata.
  - `updateTime` string, google-datetime — Output only. The timestamp when the resource was updated.
  - `name` string — Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
  - `description` string — Optional. Free-text description of the resource.
  - `tlsInspectionPolicy` string — Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
  - `createTime` string, google-datetime — Output only. The timestamp when the resource was created.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/networksecurity.md) · [All operations](https://skmtc.net/google/apis/networksecurity/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/networksecurity/revisions/4afd54463fe6/schema)
