Skip to main content

app_connections

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

Overview

Nameapp_connections
TypeResource
Idgoogle.beyondcorp.app_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringRequired. Unique resource name of the AppConnection. The name is ignored when creating a AppConnection.
applicationEndpointobjectRequired. Address of the remote application endpoint for the BeyondCorp AppConnection. (id: GoogleCloudBeyondcorpAppconnectionsV1AppConnectionApplicationEndpoint)
connectorsarrayOptional. List of [google.cloud.beyondcorp.v1main.Connector.name] that are authorized to be associated with this AppConnection.
createTimestring (google-datetime)Output only. Timestamp when the resource was created.
displayNamestringOptional. An arbitrary user-provided name for the AppConnection. Cannot exceed 64 characters.
gatewayobjectOptional. Gateway used by the AppConnection. (id: GoogleCloudBeyondcorpAppconnectionsV1AppConnectionGateway)
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 AppConnection. (STATE_UNSPECIFIED, CREATING, CREATED, UPDATING, DELETING, DOWN)
typestringRequired. The type of network connectivity used by the AppConnection. (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.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_app_connections_getselectprojectsId, locationsId, appConnectionsIdGets details of a single AppConnection.
projects_locations_app_connections_listselectprojectsId, locationsIdpageToken, pageSize, filter, orderByLists AppConnections in a given project and location.
projects_locations_app_connections_createinsertprojectsId, locationsIdrequestId, appConnectionId, validateOnlyCreates a new AppConnection in a given project and location.
projects_locations_app_connections_patchupdateprojectsId, locationsId, appConnectionsIdrequestId, allowMissing, updateMask, validateOnlyUpdates the parameters of a single AppConnection.
projects_locations_app_connections_deletedeleteprojectsId, locationsId, appConnectionsIdvalidateOnly, requestIdDeletes a single AppConnection.
projects_locations_app_connections_resolveexecprojectsId, locationsIdpageToken, pageSize, appConnectorIdResolves AppConnections details for a given AppConnector. An internal method called by a connector to find AppConnections to connect to.

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
appConnectionsIdstring
locationsIdstring
projectsIdstring
allowMissingboolean
appConnectionIdstring
appConnectorIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Gets details of a single AppConnection.

SELECT
name,
applicationEndpoint,
connectors,
createTime,
displayName,
gateway,
labels,
satisfiesPzi,
satisfiesPzs,
state,
type,
uid,
updateTime
FROM google.beyondcorp.app_connections
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND appConnectionsId = '{{ appConnectionsId }}' -- required
;

INSERT examples

Creates a new AppConnection in a given project and location.

INSERT INTO google.beyondcorp.app_connections (
data__connectors,
data__applicationEndpoint,
data__type,
data__labels,
data__name,
data__displayName,
data__gateway,
projectsId,
locationsId,
requestId,
appConnectionId,
validateOnly
)
SELECT
'{{ connectors }}',
'{{ applicationEndpoint }}',
'{{ type }}',
'{{ labels }}',
'{{ name }}',
'{{ displayName }}',
'{{ gateway }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ requestId }}',
'{{ appConnectionId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single AppConnection.

UPDATE google.beyondcorp.app_connections
SET
data__connectors = '{{ connectors }}',
data__applicationEndpoint = '{{ applicationEndpoint }}',
data__type = '{{ type }}',
data__labels = '{{ labels }}',
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__gateway = '{{ gateway }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND appConnectionsId = '{{ appConnectionsId }}' --required
AND requestId = '{{ requestId}}'
AND allowMissing = {{ allowMissing}}
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single AppConnection.

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

Lifecycle Methods

Resolves AppConnections details for a given AppConnector. An internal method called by a connector to find AppConnections to connect to.

EXEC google.beyondcorp.app_connections.projects_locations_app_connections_resolve
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@pageToken='{{ pageToken }}',
@pageSize='{{ pageSize }}',
@appConnectorId='{{ appConnectorId }}'
;