Skip to main content

transports

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

Overview

Nametransports
TypeResource
Idgoogle.networkconnectivity.transports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Name of the resource.
advertisedRoutesarrayOptional. List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
bandwidthstringOptional. Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile, and must be set when no activation key is being provided. (BANDWIDTH_UNSPECIFIED, BPS_50M, BPS_100M, BPS_200M, BPS_300M, BPS_400M, BPS_500M, BPS_1G, BPS_2G, BPS_5G, BPS_10G, BPS_20G, BPS_50G, BPS_100G)
createTimestring (google-datetime)Output only. Create time stamp.
descriptionstringOptional. Description of the Transport.
generatedActivationKeystringOutput only. Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
labelsobjectOptional. Labels as key value pairs.
mtuLimitinteger (int32)Output only. The maximum transmission unit (MTU) of a packet that can be sent over this transport.
networkstringOptional. Immutable. Resource URI of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
peeringNetworkstringOutput only. VPC Network URI that was created for the VPC Peering connection to the provided network. If VPC Peering is disconnected, this can be used to re-establish.
providedActivationKeystringOptional. Immutable. Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
remoteAccountIdstringOptional. Immutable. The user supplied account id for the CSP associated with the remote profile.
remoteProfilestringOptional. Immutable. Name of the remoteTransportProfile that this Transport is connecting to.
stackTypestringOptional. IP version stack for the established connectivity. (STACK_TYPE_UNSPECIFIED, IPV4_ONLY, IPV4_IPV6)
statestringOutput only. State of the underlying connectivity. (STATE_UNSPECIFIED, CREATING, PENDING_CONFIG, PENDING_KEY, ACTIVE, DELETING, DEPROVISIONED)
updateTimestring (google-datetime)Output only. Update time stamp.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, transportsIdGets details of a single Transport.
listselectprojectsId, locationsIdfilter, pageToken, pageSize, orderByLists Transports in a given project and location.
createinsertprojectsId, locationsIdtransportId, requestIdCreates a new Transport in a given project and location.
patchupdateprojectsId, locationsId, transportsIdupdateMask, requestIdUpdates the parameters of a single Transport.
deletedeleteprojectsId, locationsId, transportsIdrequestIdDeletes a single Transport.

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
transportsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
transportIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single Transport.

SELECT
name,
advertisedRoutes,
bandwidth,
createTime,
description,
generatedActivationKey,
labels,
mtuLimit,
network,
peeringNetwork,
providedActivationKey,
remoteAccountId,
remoteProfile,
stackType,
state,
updateTime
FROM google.networkconnectivity.transports
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND transportsId = '{{ transportsId }}' -- required
;

INSERT examples

Creates a new Transport in a given project and location.

INSERT INTO google.networkconnectivity.transports (
data__labels,
data__advertisedRoutes,
data__bandwidth,
data__remoteAccountId,
data__description,
data__remoteProfile,
data__providedActivationKey,
data__stackType,
data__name,
data__network,
projectsId,
locationsId,
transportId,
requestId
)
SELECT
'{{ labels }}',
'{{ advertisedRoutes }}',
'{{ bandwidth }}',
'{{ remoteAccountId }}',
'{{ description }}',
'{{ remoteProfile }}',
'{{ providedActivationKey }}',
'{{ stackType }}',
'{{ name }}',
'{{ network }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ transportId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single Transport.

UPDATE google.networkconnectivity.transports
SET
data__labels = '{{ labels }}',
data__advertisedRoutes = '{{ advertisedRoutes }}',
data__bandwidth = '{{ bandwidth }}',
data__remoteAccountId = '{{ remoteAccountId }}',
data__description = '{{ description }}',
data__remoteProfile = '{{ remoteProfile }}',
data__providedActivationKey = '{{ providedActivationKey }}',
data__stackType = '{{ stackType }}',
data__name = '{{ name }}',
data__network = '{{ network }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND transportsId = '{{ transportsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single Transport.

DELETE FROM google.networkconnectivity.transports
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND transportsId = '{{ transportsId }}' --required
AND requestId = '{{ requestId }}'
;