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:

Successful response

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 authorised 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.
typestringRequired. The type of network connectivity used by the AppConnection.
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, locationsIdpageSize, pageToken, filter, orderByLists AppConnections in a given project and location.
projects_locations_app_connections_createinsertprojectsId, locationsIdappConnectionId, requestId, validateOnlyCreates a new AppConnection in a given project and location.
projects_locations_app_connections_patchupdateprojectsId, locationsId, appConnectionsIdupdateMask, requestId, validateOnly, allowMissingUpdates the parameters of a single AppConnection.
projects_locations_app_connections_deletedeleteprojectsId, locationsId, appConnectionsIdrequestId, validateOnlyDeletes a single AppConnection.
projects_locations_app_connections_resolveexecprojectsId, locationsIdappConnectorId, pageSize, pageTokenResolves 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__name,
data__labels,
data__displayName,
data__type,
data__applicationEndpoint,
data__connectors,
data__gateway,
projectsId,
locationsId,
appConnectionId,
requestId,
validateOnly
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ displayName }}',
'{{ type }}',
'{{ applicationEndpoint }}',
'{{ connectors }}',
'{{ gateway }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ appConnectionId }}',
'{{ requestId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single AppConnection.

UPDATE google.beyondcorp.app_connections
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__displayName = '{{ displayName }}',
data__type = '{{ type }}',
data__applicationEndpoint = '{{ applicationEndpoint }}',
data__connectors = '{{ connectors }}',
data__gateway = '{{ gateway }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND appConnectionsId = '{{ appConnectionsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
AND validateOnly = {{ validateOnly}}
AND allowMissing = {{ allowMissing}}
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 requestId = '{{ requestId }}'
AND validateOnly = '{{ validateOnly }}';

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,
@appConnectorId='{{ appConnectorId }}',
@pageSize='{{ pageSize }}',
@pageToken='{{ pageToken }}';