Skip to main content

destinations

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

Overview​

Namedestinations
TypeResource
Idgoogle.networkconnectivity.destinations

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The name of the Destination resource. Format: projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}.
createTimestring (google-datetime)Output only. Time when the Destination resource was created.
descriptionstringOptional. A description of this resource.
endpointsarrayRequired. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.
etagstringThe etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.
ipPrefixstringRequired. Immutable. The IP prefix that represents your workload on another CSP.
labelsobjectOptional. User-defined labels.
stateTimelineobjectOutput only. The timeline of the expected Destination states or the current rest state. If a state change is expected, the value is ADDING, DELETING or SUSPENDING, depending on the action specified. Example: "state_timeline": { "states": [ { // The time when the Destination resource will be activated. "effectiveTime": "2024-12-01T08:00:00Z", "state": "ADDING" }, { // The time when the Destination resource will be suspended. "effectiveTime": "2024-12-01T20:00:00Z", "state": "SUSPENDING" } ] } (id: StateTimeline)
uidstringOutput only. The Google-generated unique ID for the Destination resource. This value is unique across all Destination resources. If a resource is deleted and another with the same name is created, the new resource is assigned a different and unique ID.
updateTimestring (google-datetime)Output only. Time when the Destination resource was updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, multicloudDataTransferConfigsId, destinationsIdGets the details of a Destination resource.
listselectprojectsId, locationsId, multicloudDataTransferConfigsIdfilter, orderBy, pageSize, pageToken, returnPartialSuccessLists the Destination resources in a specified project and location.
createinsertprojectsId, locationsId, multicloudDataTransferConfigsIddestinationId, requestIdCreates a Destination resource in a specified project and location.
patchupdateprojectsId, locationsId, multicloudDataTransferConfigsId, destinationsIdrequestId, updateMaskUpdates a Destination resource in a specified project and location.
deletedeleteprojectsId, locationsId, multicloudDataTransferConfigsId, destinationsIdetag, requestIdDeletes a Destination resource.

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
destinationsIdstring
locationsIdstring
multicloudDataTransferConfigsIdstring
projectsIdstring
destinationIdstring
etagstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
returnPartialSuccessboolean
updateMaskstring (google-fieldmask)

SELECT examples​

Gets the details of a Destination resource.

SELECT
name,
createTime,
description,
endpoints,
etag,
ipPrefix,
labels,
stateTimeline,
uid,
updateTime
FROM google.networkconnectivity.destinations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND multicloudDataTransferConfigsId = '{{ multicloudDataTransferConfigsId }}' -- required
AND destinationsId = '{{ destinationsId }}' -- required
;

INSERT examples​

Creates a Destination resource in a specified project and location.

INSERT INTO google.networkconnectivity.destinations (
data__description,
data__endpoints,
data__etag,
data__ipPrefix,
data__labels,
data__name,
projectsId,
locationsId,
multicloudDataTransferConfigsId,
destinationId,
requestId
)
SELECT
'{{ description }}',
'{{ endpoints }}',
'{{ etag }}',
'{{ ipPrefix }}',
'{{ labels }}',
'{{ name }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ multicloudDataTransferConfigsId }}',
'{{ destinationId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples​

Updates a Destination resource in a specified project and location.

UPDATE google.networkconnectivity.destinations
SET
data__description = '{{ description }}',
data__endpoints = '{{ endpoints }}',
data__etag = '{{ etag }}',
data__ipPrefix = '{{ ipPrefix }}',
data__labels = '{{ labels }}',
data__name = '{{ name }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND multicloudDataTransferConfigsId = '{{ multicloudDataTransferConfigsId }}' --required
AND destinationsId = '{{ destinationsId }}' --required
AND requestId = '{{ requestId}}'
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples​

Deletes a Destination resource.

DELETE FROM google.networkconnectivity.destinations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND multicloudDataTransferConfigsId = '{{ multicloudDataTransferConfigsId }}' --required
AND destinationsId = '{{ destinationsId }}' --required
AND etag = '{{ etag }}'
AND requestId = '{{ requestId }}'
;