service_connection_maps
Creates, updates, deletes, gets or lists a service_connection_maps
resource.
Overview
Name | service_connection_maps |
Type | Resource |
Id | google.networkconnectivity.service_connection_maps |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The name of a ServiceConnectionMap. Format: projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} See: https://google.aip.dev/122#fields-representing-resource-names |
description | string | A description of this resource. |
consumerPscConfigs | array | The PSC configurations on consumer side. |
consumerPscConnections | array | Output only. PSC connection details on consumer side. |
createTime | string | Output only. Time when the ServiceConnectionMap was created. |
etag | string | Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
infrastructure | string | Output only. The infrastructure used for connections between consumers/producers. |
labels | object | User-defined labels. |
producerPscConfigs | array | The PSC configurations on producer side. |
serviceClass | string | The service class identifier this ServiceConnectionMap is for. The user of ServiceConnectionMap create API needs to have networkconnecitivty.serviceclasses.use iam permission for the service class. |
serviceClassUri | string | Output only. The service class uri this ServiceConnectionMap is for. |
token | string | The token provided by the consumer. This token authenticates that the consumer can create a connecton within the specified project and network. |
updateTime | string | Output only. Time when the ServiceConnectionMap was updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, projectsId, serviceConnectionMapsId | Gets details of a single ServiceConnectionMap. |
list | SELECT | locationsId, projectsId | Lists ServiceConnectionMaps in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new ServiceConnectionMap in a given project and location. |
delete | DELETE | locationsId, projectsId, serviceConnectionMapsId | Deletes a single ServiceConnectionMap. |
patch | UPDATE | locationsId, projectsId, serviceConnectionMapsId | Updates the parameters of a single ServiceConnectionMap. |
SELECT
examples
Lists ServiceConnectionMaps in a given project and location.
SELECT
name,
description,
consumerPscConfigs,
consumerPscConnections,
createTime,
etag,
infrastructure,
labels,
producerPscConfigs,
serviceClass,
serviceClassUri,
token,
updateTime
FROM google.networkconnectivity.service_connection_maps
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new service_connection_maps
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.networkconnectivity.service_connection_maps (
locationsId,
projectsId,
name,
labels,
description,
serviceClass,
producerPscConfigs,
consumerPscConfigs,
token,
etag
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ serviceClass }}',
'{{ producerPscConfigs }}',
'{{ consumerPscConfigs }}',
'{{ token }}',
'{{ etag }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: labels
value: object
- name: description
value: string
- name: serviceClass
value: string
- name: serviceClassUri
value: string
- name: infrastructure
value: string
- name: producerPscConfigs
value:
- - name: serviceAttachmentUri
value: string
- name: consumerPscConfigs
value:
- - name: project
value: string
- name: network
value: string
- name: disableGlobalAccess
value: boolean
- name: state
value: string
- name: producerInstanceId
value: string
- name: serviceAttachmentIpAddressMap
value: object
- name: consumerInstanceProject
value: string
- name: consumerPscConnections
value:
- - name: serviceAttachmentUri
value: string
- name: state
value: string
- name: project
value: string
- name: network
value: string
- name: pscConnectionId
value: string
- name: ip
value: string
- name: errorType
value: string
- name: error
value:
- name: code
value: integer
- name: message
value: string
- name: details
value:
- object
- name: gceOperation
value: string
- name: forwardingRule
value: string
- name: errorInfo
value:
- name: reason
value: string
- name: domain
value: string
- name: metadata
value: object
- name: selectedSubnetwork
value: string
- name: producerInstanceId
value: string
- name: token
value: string
- name: etag
value: string
UPDATE
example
Updates a service_connection_maps
resource.
/*+ update */
UPDATE google.networkconnectivity.service_connection_maps
SET
name = '{{ name }}',
labels = '{{ labels }}',
description = '{{ description }}',
serviceClass = '{{ serviceClass }}',
producerPscConfigs = '{{ producerPscConfigs }}',
consumerPscConfigs = '{{ consumerPscConfigs }}',
token = '{{ token }}',
etag = '{{ etag }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND serviceConnectionMapsId = '{{ serviceConnectionMapsId }}';
DELETE
example
Deletes the specified service_connection_maps
resource.
/*+ delete */
DELETE FROM google.networkconnectivity.service_connection_maps
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND serviceConnectionMapsId = '{{ serviceConnectionMapsId }}';