Cloud Interconnect API, gRPC: TrunkConnectionService.List
Retrieves the list of TrunkConnection resources in the specified folder.
gRPC request
rpc List (ListTrunkConnectionsRequest) returns (ListTrunkConnectionsResponse)
ListTrunkConnectionsRequest
{
"folderId": "string",
"pageSize": "int64",
"pageToken": "string",
"filter": "string"
}
Field |
Description |
folderId |
string Required field. ID of the folder to list trunkConnections in. |
pageSize |
int64 The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, set |
filter |
string A filter expression that filters resources listed in the response.
|
ListTrunkConnectionsResponse
{
"trunkConnections": [
{
"id": "string",
"name": "string",
"description": "string",
"folderId": "string",
"regionId": "string",
// Includes only one of the fields `singlePortDirectJoint`, `lagDirectJoint`, `partnerJointInfo`
"singlePortDirectJoint": {
"transceiverType": "TransceiverType",
"portName": "google.protobuf.StringValue",
"accessDeviceName": "string"
},
"lagDirectJoint": {
"transceiverType": "TransceiverType",
"lagAllocationSettings": {
"lagInfo": {
"lagId": "google.protobuf.Int64Value",
"portNames": [
"string"
]
}
},
"accessDeviceName": "string"
},
"partnerJointInfo": {
"serviceKey": "string",
"partnerId": "google.protobuf.StringValue"
},
// end of the list of possible fields
"pointOfPresenceId": "google.protobuf.StringValue",
"capacity": "Capacity",
"labels": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
trunkConnections[] |
List of TrunkConnection resources. |
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
TrunkConnection
A TrunkConnection resource.
Field |
Description |
id |
string ID of the trunkConnection. |
name |
string Name of the trunkConnection. |
description |
string Optional description of the trunkConnection. 0-256 characters long. |
folderId |
string ID of the folder that the trunkConnection belongs to. |
regionId |
string ID of the region that the trunkConnection belongs to. |
singlePortDirectJoint |
Includes only one of the fields Special trunkConnection config |
lagDirectJoint |
Includes only one of the fields Special trunkConnection config |
partnerJointInfo |
Includes only one of the fields Special trunkConnection config |
pointOfPresenceId |
ID of pointOfPresence that the trunkConnection is deployed on. |
capacity |
enum Capacity Capacity of the trunkConnection
|
labels |
string Resource labels, |
SinglePortDirectJoint
Config of trunkConnection that is deployed on single port.
Field |
Description |
transceiverType |
enum TransceiverType Type of transceiver that the trunkConnection is deployed on.
|
portName |
Name of port that the trunkConnection is deployed on. |
accessDeviceName |
string Device name which is set in LLDP message. |
LagDirectJoint
Config of trunkConnection that is deployed on lag.
Field |
Description |
transceiverType |
enum TransceiverType Type of transceiver that the trunkConnection is deployed on.
|
lagAllocationSettings |
LAG allocation settings that the trunkConnection is deployed on. |
accessDeviceName |
string Device name which is set in LLDP message. |
LagAllocationSettings
Structure that describes LAG allocation settings
Field |
Description |
lagInfo |
LagInfo |
LagInfo
Field |
Description |
lagId |
ID of LAG. |
portNames[] |
string List of port names that the LAG is deployed on. |
PartnerJointInfo
Config of trunkConnection that is deployed on partner joint.
Field |
Description |
serviceKey |
string Reserved for future using; |
partnerId |
ID of partner that the trunkConnection is deployed on. |