Skip to main content

gateway_security_policies

Creates, updates, deletes, gets or lists a gateway_security_policies resource.

Overview

Namegateway_security_policies
TypeResource
Idgoogle.networksecurity.gateway_security_policies

Fields

NameDatatypeDescription
namestringRequired. 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?$).
descriptionstringOptional. Free-text description of the resource.
createTimestringOutput only. The timestamp when the resource was created.
tlsInspectionPolicystringOptional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
updateTimestringOutput only. The timestamp when the resource was updated.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_gateway_security_policies_getSELECTgatewaySecurityPoliciesId, locationsId, projectsIdGets details of a single GatewaySecurityPolicy.
projects_locations_gateway_security_policies_listSELECTlocationsId, projectsIdLists GatewaySecurityPolicies in a given project and location.
projects_locations_gateway_security_policies_createINSERTlocationsId, projectsIdCreates a new GatewaySecurityPolicy in a given project and location.
projects_locations_gateway_security_policies_deleteDELETEgatewaySecurityPoliciesId, locationsId, projectsIdDeletes a single GatewaySecurityPolicy.
projects_locations_gateway_security_policies_patchUPDATEgatewaySecurityPoliciesId, locationsId, projectsIdUpdates 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.

/*+ create */
INSERT INTO google.networksecurity.gateway_security_policies (
locationsId,
projectsId,
name,
description,
tlsInspectionPolicy
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ tlsInspectionPolicy }}'
;

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 }}';