Skip to main content

app_gateways

Creates, updates, deletes, gets or lists an app_gateways resource.

Overview​

Nameapp_gateways
TypeResource
Idgoogle.beyondcorp.app_gateways

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringRequired. Unique resource name of the AppGateway. The name is ignored when creating an AppGateway.
allocatedConnectionsarrayOutput only. A list of connections allocated for the Gateway
createTimestring (google-datetime)Output only. Timestamp when the resource was created.
displayNamestringOptional. An arbitrary user-provided name for the AppGateway. Cannot exceed 64 characters.
hostTypestringRequired. The type of hosting used by the AppGateway. (HOST_TYPE_UNSPECIFIED, GCP_REGIONAL_MIG)
labelsobjectOptional. Resource labels to represent user provided metadata.
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
statestringOutput only. The current state of the AppGateway. (STATE_UNSPECIFIED, CREATING, CREATED, UPDATING, DELETING, DOWN)
typestringRequired. The type of network connectivity used by the AppGateway. (TYPE_UNSPECIFIED, TCP_PROXY)
uidstringOutput only. A unique identifier for the instance generated by the system.
updateTimestring (google-datetime)Output only. Timestamp when the resource was last modified.
uristringOutput only. Server-defined URI for this resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_app_gateways_getselectprojectsId, locationsId, appGatewaysIdGets details of a single AppGateway.
projects_locations_app_gateways_listselectprojectsId, locationsIdfilter, orderBy, pageSize, pageTokenLists AppGateways in a given project and location.
projects_locations_app_gateways_createinsertprojectsId, locationsIdappGatewayId, requestId, validateOnlyCreates a new AppGateway in a given project and location.
projects_locations_app_gateways_deletedeleteprojectsId, locationsId, appGatewaysIdrequestId, validateOnlyDeletes a single AppGateway.

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
appGatewaysIdstring
locationsIdstring
projectsIdstring
appGatewayIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
validateOnlyboolean

SELECT examples​

Gets details of a single AppGateway.

SELECT
name,
allocatedConnections,
createTime,
displayName,
hostType,
labels,
satisfiesPzi,
satisfiesPzs,
state,
type,
uid,
updateTime,
uri
FROM google.beyondcorp.app_gateways
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND appGatewaysId = '{{ appGatewaysId }}' -- required
;

INSERT examples​

Creates a new AppGateway in a given project and location.

INSERT INTO google.beyondcorp.app_gateways (
data__displayName,
data__hostType,
data__labels,
data__name,
data__type,
projectsId,
locationsId,
appGatewayId,
requestId,
validateOnly
)
SELECT
'{{ displayName }}',
'{{ hostType }}',
'{{ labels }}',
'{{ name }}',
'{{ type }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ appGatewayId }}',
'{{ requestId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples​

Deletes a single AppGateway.

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