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

NameDatatypeDescription
namestringOutput only. The resource's name.
createTimestringOutput only. The create time of the resource.
displayNamestringRequired. Display name.
errorobjectRepresent a user-facing Error.
labelsobjectLabels.
statestringOutput only. The state of the Private Connection.
updateTimestringOutput only. The update time of the resource.
vpcPeeringConfigobjectThe VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, privateConnectionsId, projectsIdUse this method to get details about a private connectivity configuration.
listSELECTlocationsId, projectsIdUse this method to list private connectivity configurations in a project and location.
createINSERTlocationsId, projectsIdUse this method to create a private connectivity configuration.
deleteDELETElocationsId, privateConnectionsId, projectsIdUse this method to delete a private connectivity configuration.

SELECT examples

Use this method to list private connectivity configurations in a project and location.

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

INSERT example

Use the following StackQL query and manifest file to create a new private_connections resource.

/*+ create */
INSERT INTO google.datastream.private_connections (
locationsId,
projectsId,
labels,
displayName,
vpcPeeringConfig
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ labels }}',
'{{ displayName }}',
'{{ vpcPeeringConfig }}'
;

DELETE example

Deletes the specified private_connections resource.

/*+ delete */
DELETE FROM google.datastream.private_connections
WHERE locationsId = '{{ locationsId }}'
AND privateConnectionsId = '{{ privateConnectionsId }}'
AND projectsId = '{{ projectsId }}';