Skip to main content

security_gateways

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

Overview

Namesecurity_gateways
TypeResource
Idgoogle.beyondcorp.security_gateways

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Name of the resource.
createTimestring (google-datetime)Output only. Timestamp when the resource was created.
delegatingServiceAccountstringOutput only. Service account used for operations that involve resources in consumer projects.
displayNamestringOptional. An arbitrary user-provided name for the SecurityGateway. Cannot exceed 64 characters.
externalIpsarrayOutput only. IP addresses that will be used for establishing connection to the endpoints.
hubsobjectOptional. Map of Hubs that represents regional data path deployment with GCP region as a key.
statestringOutput only. The operational state of the SecurityGateway.
updateTimestring (google-datetime)Output only. Timestamp when the resource was last modified.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_security_gateways_getselectprojectsId, locationsId, securityGatewaysIdGets details of a single SecurityGateway.
projects_locations_security_gateways_listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists SecurityGateways in a given project and location.
projects_locations_security_gateways_createinsertprojectsId, locationsIdsecurityGatewayId, requestIdCreates a new Security Gateway in a given project and location.
projects_locations_security_gateways_patchupdateprojectsId, locationsId, securityGatewaysIdupdateMask, requestIdUpdates the parameters of a single SecurityGateway.
projects_locations_security_gateways_deletedeleteprojectsId, locationsId, securityGatewaysIdrequestId, validateOnlyDeletes a single SecurityGateway.

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
locationsIdstring
projectsIdstring
securityGatewaysIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
securityGatewayIdstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Gets details of a single SecurityGateway.

SELECT
name,
createTime,
delegatingServiceAccount,
displayName,
externalIps,
hubs,
state,
updateTime
FROM google.beyondcorp.security_gateways
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND securityGatewaysId = '{{ securityGatewaysId }}' -- required;

INSERT examples

Creates a new Security Gateway in a given project and location.

INSERT INTO google.beyondcorp.security_gateways (
data__name,
data__displayName,
data__hubs,
projectsId,
locationsId,
securityGatewayId,
requestId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ hubs }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ securityGatewayId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single SecurityGateway.

UPDATE google.beyondcorp.security_gateways
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__hubs = '{{ hubs }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND securityGatewaysId = '{{ securityGatewaysId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single SecurityGateway.

DELETE FROM google.beyondcorp.security_gateways
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND securityGatewaysId = '{{ securityGatewaysId }}' --required
AND requestId = '{{ requestId }}'
AND validateOnly = '{{ validateOnly }}';