private_connections
Creates, updates, deletes, gets or lists a private_connections resource.
Overview
| Name | private_connections |
| Type | Resource |
| Id | google.datastream.private_connections |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. Identifier. The resource's name. |
createTime | string (google-datetime) | Output only. The create time of the resource. |
displayName | string | Required. Display name. |
error | object | Represent a user-facing Error. (id: Error) |
labels | object | Labels. |
pscInterfaceConfig | object | PSC Interface Config. (id: PscInterfaceConfig) |
satisfiesPzi | boolean | Output only. Reserved for future use. |
satisfiesPzs | boolean | Output only. Reserved for future use. |
state | string | Output only. The state of the Private Connection. (STATE_UNSPECIFIED, CREATING, CREATED, FAILED, DELETING, FAILED_TO_DELETE) |
updateTime | string (google-datetime) | Output only. The update time of the resource. |
vpcPeeringConfig | object | VPC Peering Config. (id: VpcPeeringConfig) |
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. Identifier. The resource's name. |
createTime | string (google-datetime) | Output only. The create time of the resource. |
displayName | string | Required. Display name. |
error | object | Represent a user-facing Error. (id: Error) |
labels | object | Labels. |
pscInterfaceConfig | object | PSC Interface Config. (id: PscInterfaceConfig) |
satisfiesPzi | boolean | Output only. Reserved for future use. |
satisfiesPzs | boolean | Output only. Reserved for future use. |
state | string | Output only. The state of the Private Connection. (STATE_UNSPECIFIED, CREATING, CREATED, FAILED, DELETING, FAILED_TO_DELETE) |
updateTime | string (google-datetime) | Output only. The update time of the resource. |
vpcPeeringConfig | object | VPC Peering Config. (id: VpcPeeringConfig) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, privateConnectionsId | Use this method to get details about a private connectivity configuration. | |
list | select | projectsId, locationsId | pageToken, filter, pageSize, orderBy | Use this method to list private connectivity configurations in a project and location. |
create | insert | projectsId, locationsId | force, requestId, validateOnly, privateConnectionId | Use this method to create a private connectivity configuration. |
delete | delete | projectsId, locationsId, privateConnectionsId | requestId, force | Use 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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
privateConnectionsId | string | |
projectsId | string | |
filter | string | |
force | boolean | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
privateConnectionId | string | |
requestId | string | |
validateOnly | boolean |
SELECT examples
- get
- list
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
;
Use this method to list private connectivity configurations in a project and location.
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 pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND orderBy = '{{ orderBy }}'
;
INSERT examples
- create
- Manifest
Use this method to create a private connectivity configuration.
INSERT INTO google.datastream.private_connections (
data__labels,
data__vpcPeeringConfig,
data__pscInterfaceConfig,
data__displayName,
projectsId,
locationsId,
force,
requestId,
validateOnly,
privateConnectionId
)
SELECT
'{{ labels }}',
'{{ vpcPeeringConfig }}',
'{{ pscInterfaceConfig }}',
'{{ displayName }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ force }}',
'{{ requestId }}',
'{{ validateOnly }}',
'{{ privateConnectionId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: private_connections
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the private_connections resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the private_connections resource.
- name: labels
value: "{{ labels }}"
description: |
Labels.
- name: vpcPeeringConfig
description: |
VPC Peering Config.
value:
vpc: "{{ vpc }}"
subnet: "{{ subnet }}"
- name: pscInterfaceConfig
description: |
PSC Interface Config.
value:
networkAttachment: "{{ networkAttachment }}"
- name: displayName
value: "{{ displayName }}"
description: |
Required. Display name.
- name: force
value: {{ force }}
- name: requestId
value: "{{ requestId }}"
- name: validateOnly
value: {{ validateOnly }}
- name: privateConnectionId
value: "{{ privateConnectionId }}"
DELETE examples
- delete
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 }}'
;