Skip to main content

service_connection_maps

Creates, updates, deletes, gets or lists a service_connection_maps resource.

Overview

Nameservice_connection_maps
TypeResource
Idgoogle.networkconnectivity.service_connection_maps

Fields

NameDatatypeDescription
namestringImmutable. The name of a ServiceConnectionMap. Format: projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} See: https://google.aip.dev/122#fields-representing-resource-names
descriptionstringA description of this resource.
consumerPscConfigsarrayThe PSC configurations on consumer side.
consumerPscConnectionsarrayOutput only. PSC connection details on consumer side.
createTimestringOutput only. Time when the ServiceConnectionMap was created.
etagstringOptional. 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.
infrastructurestringOutput only. The infrastructure used for connections between consumers/producers.
labelsobjectUser-defined labels.
producerPscConfigsarrayThe PSC configurations on producer side.
serviceClassstringThe 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.
serviceClassUristringOutput only. The service class uri this ServiceConnectionMap is for.
tokenstringThe token provided by the consumer. This token authenticates that the consumer can create a connecton within the specified project and network.
updateTimestringOutput only. Time when the ServiceConnectionMap was updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, serviceConnectionMapsIdGets details of a single ServiceConnectionMap.
listSELECTlocationsId, projectsIdLists ServiceConnectionMaps in a given project and location.
createINSERTlocationsId, projectsIdCreates a new ServiceConnectionMap in a given project and location.
deleteDELETElocationsId, projectsId, serviceConnectionMapsIdDeletes a single ServiceConnectionMap.
patchUPDATElocationsId, projectsId, serviceConnectionMapsIdUpdates 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.

/*+ 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 }}'
;

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 }}';