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:

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. (STATE_UNSPECIFIED, CREATING, CREATED, FAILED, DELETING, FAILED_TO_DELETE)
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, locationsIdfilter, orderBy, pageSize, pageTokenUse this method to list private connectivity configurations in a project and location.
createinsertprojectsId, locationsIdforce, privateConnectionId, requestId, validateOnlyUse this method to create a private connectivity configuration.
deletedeleteprojectsId, locationsId, privateConnectionsIdforce, requestIdUse 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__displayName,
data__labels,
data__pscInterfaceConfig,
data__vpcPeeringConfig,
projectsId,
locationsId,
force,
privateConnectionId,
requestId,
validateOnly
)
SELECT
'{{ displayName }}',
'{{ labels }}',
'{{ pscInterfaceConfig }}',
'{{ vpcPeeringConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ force }}',
'{{ privateConnectionId }}',
'{{ requestId }}',
'{{ 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 force = '{{ force }}'
AND requestId = '{{ requestId }}'
;