private_connections
Creates, updates, deletes, gets or lists a private_connections
resource.
Overview
Name | private_connections |
Type | Resource |
Id | google.datastream.private_connections |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource's name. |
createTime | string | Output only. The create time of the resource. |
displayName | string | Required. Display name. |
error | object | Represent a user-facing Error. |
labels | object | Labels. |
state | string | Output only. The state of the Private Connection. |
updateTime | string | Output only. The update time of the resource. |
vpcPeeringConfig | object | The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, privateConnectionsId, projectsId | Use this method to get details about a private connectivity configuration. |
list | SELECT | locationsId, projectsId | Use this method to list private connectivity configurations in a project and location. |
create | INSERT | locationsId, projectsId | Use this method to create a private connectivity configuration. |
delete | DELETE | locationsId, privateConnectionsId, projectsId | Use 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.datastream.private_connections (
locationsId,
projectsId,
labels,
displayName,
vpcPeeringConfig
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ labels }}',
'{{ displayName }}',
'{{ vpcPeeringConfig }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: labels
value: object
- name: displayName
value: string
- name: state
value: string
- name: error
value:
- name: reason
value: string
- name: errorUuid
value: string
- name: message
value: string
- name: errorTime
value: string
- name: details
value: object
- name: vpcPeeringConfig
value:
- name: vpc
value: string
- name: subnet
value: string
DELETE
example
Deletes the specified private_connections
resource.
/*+ delete */
DELETE FROM google.datastream.private_connections
WHERE locationsId = '{{ locationsId }}'
AND privateConnectionsId = '{{ privateConnectionsId }}'
AND projectsId = '{{ projectsId }}';