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

The following fields are returned by SELECT queries:

Successful response

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]([a-z0-9-]{0,61}[a-z0-9])?$).
createTimestring (google-datetime)Output only. The timestamp when the resource was created.
descriptionstringOptional. Free-text description of the resource.
tlsInspectionPolicystringOptional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
updateTimestring (google-datetime)Output only. The timestamp when the resource was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_gateway_security_policies_getselectprojectsId, locationsId, gatewaySecurityPoliciesIdGets details of a single GatewaySecurityPolicy.
projects_locations_gateway_security_policies_listselectprojectsId, locationsIdpageSize, pageTokenLists GatewaySecurityPolicies in a given project and location.
projects_locations_gateway_security_policies_createinsertprojectsId, locationsIdgatewaySecurityPolicyIdCreates a new GatewaySecurityPolicy in a given project and location.
projects_locations_gateway_security_policies_patchupdateprojectsId, locationsId, gatewaySecurityPoliciesIdupdateMaskUpdates the parameters of a single GatewaySecurityPolicy.
projects_locations_gateway_security_policies_deletedeleteprojectsId, locationsId, gatewaySecurityPoliciesIdDeletes a single GatewaySecurityPolicy.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
gatewaySecurityPoliciesIdstring
locationsIdstring
projectsIdstring
gatewaySecurityPolicyIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single GatewaySecurityPolicy.

SELECT
name,
createTime,
description,
tlsInspectionPolicy,
updateTime
FROM google.networksecurity.gateway_security_policies
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND gatewaySecurityPoliciesId = '{{ gatewaySecurityPoliciesId }}' -- required;

INSERT examples

Creates a new GatewaySecurityPolicy in a given project and location.

INSERT INTO google.networksecurity.gateway_security_policies (
data__name,
data__description,
data__tlsInspectionPolicy,
projectsId,
locationsId,
gatewaySecurityPolicyId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ tlsInspectionPolicy }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ gatewaySecurityPolicyId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single GatewaySecurityPolicy.

UPDATE google.networksecurity.gateway_security_policies
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__tlsInspectionPolicy = '{{ tlsInspectionPolicy }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND gatewaySecurityPoliciesId = '{{ gatewaySecurityPoliciesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single GatewaySecurityPolicy.

DELETE FROM google.networksecurity.gateway_security_policies
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND gatewaySecurityPoliciesId = '{{ gatewaySecurityPoliciesId }}' --required;