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

The following fields are returned by SELECT queries:

Successful response

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
consumerPscConfigsarrayThe PSC configurations on consumer side.
consumerPscConnectionsarrayOutput only. PSC connection details on consumer side.
createTimestring (google-datetime)Output only. Time when the ServiceConnectionMap was created.
descriptionstringA description of this resource.
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 connection within the specified project and network.
updateTimestring (google-datetime)Output only. Time when the ServiceConnectionMap was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, serviceConnectionMapsIdGets details of a single ServiceConnectionMap.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists ServiceConnectionMaps in a given project and location.
createinsertprojectsId, locationsIdserviceConnectionMapId, requestIdCreates a new ServiceConnectionMap in a given project and location.
patchupdateprojectsId, locationsId, serviceConnectionMapsIdupdateMask, requestIdUpdates the parameters of a single ServiceConnectionMap.
deletedeleteprojectsId, locationsId, serviceConnectionMapsIdrequestId, etagDeletes a single ServiceConnectionMap.

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.

NameDatatypeDescription
locationsIdstring
projectsIdstring
serviceConnectionMapsIdstring
etagstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
serviceConnectionMapIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single ServiceConnectionMap.

SELECT
name,
consumerPscConfigs,
consumerPscConnections,
createTime,
description,
etag,
infrastructure,
labels,
producerPscConfigs,
serviceClass,
serviceClassUri,
token,
updateTime
FROM google.networkconnectivity.service_connection_maps
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND serviceConnectionMapsId = '{{ serviceConnectionMapsId }}' -- required;

INSERT examples

Creates a new ServiceConnectionMap in a given project and location.

INSERT INTO google.networkconnectivity.service_connection_maps (
data__name,
data__labels,
data__description,
data__serviceClass,
data__producerPscConfigs,
data__consumerPscConfigs,
data__token,
data__etag,
projectsId,
locationsId,
serviceConnectionMapId,
requestId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ serviceClass }}',
'{{ producerPscConfigs }}',
'{{ consumerPscConfigs }}',
'{{ token }}',
'{{ etag }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ serviceConnectionMapId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single ServiceConnectionMap.

UPDATE google.networkconnectivity.service_connection_maps
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}',
data__serviceClass = '{{ serviceClass }}',
data__producerPscConfigs = '{{ producerPscConfigs }}',
data__consumerPscConfigs = '{{ consumerPscConfigs }}',
data__token = '{{ token }}',
data__etag = '{{ etag }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND serviceConnectionMapsId = '{{ serviceConnectionMapsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single ServiceConnectionMap.

DELETE FROM google.networkconnectivity.service_connection_maps
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND serviceConnectionMapsId = '{{ serviceConnectionMapsId }}' --required
AND requestId = '{{ requestId }}'
AND etag = '{{ etag }}';