# REST Resource: projects.locations.gatewaySecurityPolicies

- [Resource: GatewaySecurityPolicy](https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-security/rest/v1beta1/projects.locations.gatewaySecurityPolicies#GatewaySecurityPolicy)
  - [JSON representation](https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-security/rest/v1beta1/projects.locations.gatewaySecurityPolicies#GatewaySecurityPolicy.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-security/rest/v1beta1/projects.locations.gatewaySecurityPolicies#METHODS_SUMMARY)

## Resource: GatewaySecurityPolicy

The GatewaySecurityPolicy resource contains a collection of GatewaySecurityPolicyRules and associated metadata.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "description": string, "tlsInspectionPolicy": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy} gatewaySecurityPolicy should match the pattern:(\^[a-z](https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-security/rest/v1beta1/[a-z0-9-]{0,61}[a-z0-9])?$). |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `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. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-security/rest/v1beta1/projects.locations.gatewaySecurityPolicies/create` | Creates a new GatewaySecurityPolicy in a given project and location. |
| ### `https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-security/rest/v1beta1/projects.locations.gatewaySecurityPolicies/delete` | Deletes a single GatewaySecurityPolicy. |
| ### `https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-security/rest/v1beta1/projects.locations.gatewaySecurityPolicies/get` | Gets details of a single GatewaySecurityPolicy. |
| ### `https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-security/rest/v1beta1/projects.locations.gatewaySecurityPolicies/list` | Lists GatewaySecurityPolicies in a given project and location. |
| ### `https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-security/rest/v1beta1/projects.locations.gatewaySecurityPolicies/patch` | Updates the parameters of a single GatewaySecurityPolicy. |