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.
stateTimelineobjectThe timeline of the pending states for a resource. (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, multicloudDataTransferConfigsIdorderBy, filter, pageSize, pageToken, returnPartialSuccessLists the Destination resources in a specified project and location.
createinsertprojectsId, locationsId, multicloudDataTransferConfigsIdrequestId, destinationIdCreates 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__endpoints,
data__description,
data__ipPrefix,
data__name,
data__labels,
data__etag,
projectsId,
locationsId,
multicloudDataTransferConfigsId,
requestId,
destinationId
)
SELECT
'{{ endpoints }}',
'{{ description }}',
'{{ ipPrefix }}',
'{{ name }}',
'{{ labels }}',
'{{ etag }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ multicloudDataTransferConfigsId }}',
'{{ requestId }}',
'{{ destinationId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a Destination resource in a specified project and location.

UPDATE google.networkconnectivity.destinations
SET
data__endpoints = '{{ endpoints }}',
data__description = '{{ description }}',
data__ipPrefix = '{{ ipPrefix }}',
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__etag = '{{ etag }}'
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 }}'
;