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:

Successful response

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 was created.
descriptionstringOptional. An optional field to provide a description of this resource.
endpointsarrayRequired. Unordered list. The list of Endpoints configured for the IP Prefix.
etagstringThe 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.
ipPrefixstringRequired. Immutable. Remote IP Prefix in the remote CSP, where the customer's workload is located
labelsobjectOptional. User-defined labels.
stateTimelineobjectThe timeline of pending states for a resource. (id: StateTimeline)
uidstringOutput only. The Google-generated UUID for the destination. This value is unique across all destination resources. If a destination is deleted and another with the same name is created, the new destination is assigned a different uid.
updateTimestring (google-datetime)Output only. Time when the Destination was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, multicloudDataTransferConfigsId, destinationsIdGets details of a single Destination.
listselectprojectsId, locationsId, multicloudDataTransferConfigsIdpageSize, pageToken, filter, orderBy, returnPartialSuccessLists Destinations in a given project and location.
createinsertprojectsId, locationsId, multicloudDataTransferConfigsIddestinationId, requestIdCreates a Destination in a given project and location.
patchupdateprojectsId, locationsId, multicloudDataTransferConfigsId, destinationsIdupdateMask, requestIdUpdates a Destination in a given project and location.
deletedeleteprojectsId, locationsId, multicloudDataTransferConfigsId, destinationsIdrequestId, etagDeletes a single Destination.

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 details of a single Destination.

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 in a given project and location.

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

UPDATE examples

Updates a Destination in a given project and location.

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

DELETE examples

Deletes a single Destination.

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