gateway_security_policies
Creates, updates, deletes, gets or lists a gateway_security_policies
resource.
Overview
Name | gateway_security_policies |
Type | Resource |
Id | google.networksecurity.gateway_security_policies |
Fields
Name | Datatype | Description |
---|---|---|
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?$). |
description | string | Optional. Free-text description of the resource. |
createTime | string | Output only. The timestamp when the resource was created. |
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. |
updateTime | string | Output only. The timestamp when the resource was updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_gateway_security_policies_get | SELECT | gatewaySecurityPoliciesId, locationsId, projectsId | Gets details of a single GatewaySecurityPolicy. |
projects_locations_gateway_security_policies_list | SELECT | locationsId, projectsId | Lists GatewaySecurityPolicies in a given project and location. |
projects_locations_gateway_security_policies_create | INSERT | locationsId, projectsId | Creates a new GatewaySecurityPolicy in a given project and location. |
projects_locations_gateway_security_policies_delete | DELETE | gatewaySecurityPoliciesId, locationsId, projectsId | Deletes a single GatewaySecurityPolicy. |
projects_locations_gateway_security_policies_patch | UPDATE | gatewaySecurityPoliciesId, locationsId, projectsId | Updates the parameters of a single GatewaySecurityPolicy. |
SELECT
examples
Lists GatewaySecurityPolicies in a given project and location.
SELECT
name,
description,
createTime,
tlsInspectionPolicy,
updateTime
FROM google.networksecurity.gateway_security_policies
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new gateway_security_policies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.networksecurity.gateway_security_policies (
locationsId,
projectsId,
name,
description,
tlsInspectionPolicy
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ tlsInspectionPolicy }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: description
value: string
- name: tlsInspectionPolicy
value: string
UPDATE
example
Updates a gateway_security_policies
resource.
/*+ update */
UPDATE google.networksecurity.gateway_security_policies
SET
name = '{{ name }}',
description = '{{ description }}',
tlsInspectionPolicy = '{{ tlsInspectionPolicy }}'
WHERE
gatewaySecurityPoliciesId = '{{ gatewaySecurityPoliciesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified gateway_security_policies
resource.
/*+ delete */
DELETE FROM google.networksecurity.gateway_security_policies
WHERE gatewaySecurityPoliciesId = '{{ gatewaySecurityPoliciesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';