Skip to main content

private_connections

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

Overview

Nameprivate_connections
TypeResource
Idgoogle.datastream.private_connections

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. The resource's name.
createTimestring (google-datetime)Output only. The create time of the resource.
displayNamestringRequired. Display name.
errorobjectRepresent a user-facing Error. (id: Error)
labelsobjectLabels.
pscInterfaceConfigobjectPSC Interface Config. (id: PscInterfaceConfig)
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
statestringOutput only. The state of the Private Connection.
updateTimestring (google-datetime)Output only. The update time of the resource.
vpcPeeringConfigobjectVPC Peering Config. (id: VpcPeeringConfig)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, privateConnectionsIdUse this method to get details about a private connectivity configuration.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByUse this method to list private connectivity configurations in a project and location.
createinsertprojectsId, locationsIdprivateConnectionId, requestId, force, validateOnlyUse this method to create a private connectivity configuration.
deletedeleteprojectsId, locationsId, privateConnectionsIdrequestId, forceUse this method to delete a private connectivity configuration.

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
privateConnectionsIdstring
projectsIdstring
filterstring
forceboolean
orderBystring
pageSizeinteger (int32)
pageTokenstring
privateConnectionIdstring
requestIdstring
validateOnlyboolean

SELECT examples

Use this method to get details about a private connectivity configuration.

SELECT
name,
createTime,
displayName,
error,
labels,
pscInterfaceConfig,
satisfiesPzi,
satisfiesPzs,
state,
updateTime,
vpcPeeringConfig
FROM google.datastream.private_connections
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND privateConnectionsId = '{{ privateConnectionsId }}' -- required;

INSERT examples

Use this method to create a private connectivity configuration.

INSERT INTO google.datastream.private_connections (
data__labels,
data__displayName,
data__vpcPeeringConfig,
data__pscInterfaceConfig,
projectsId,
locationsId,
privateConnectionId,
requestId,
force,
validateOnly
)
SELECT
'{{ labels }}',
'{{ displayName }}',
'{{ vpcPeeringConfig }}',
'{{ pscInterfaceConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ privateConnectionId }}',
'{{ requestId }}',
'{{ force }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Use this method to delete a private connectivity configuration.

DELETE FROM google.datastream.private_connections
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND privateConnectionsId = '{{ privateConnectionsId }}' --required
AND requestId = '{{ requestId }}'
AND force = '{{ force }}';