Cloud Interconnect API, gRPC: TrunkConnectionService.List
Retrieves the list of TrunkConnection resources in the specified folder.
gRPC request
rpc List (ListTrunkConnectionsRequest) returns (ListTrunkConnectionsResponse)
ListTrunkConnectionsRequest
{
"folder_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string"
}
Field |
Description |
folder_id |
string Required field. ID of the folder to list trunkConnections in. |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
string Page token. To get the next page of results, set |
filter |
string A filter expression that filters resources listed in the response.
|
ListTrunkConnectionsResponse
{
"trunk_connections": [
{
"id": "string",
"name": "string",
"description": "string",
"folder_id": "string",
"region_id": "string",
// Includes only one of the fields `single_port_direct_joint`, `lag_direct_joint`, `partner_joint_info`
"single_port_direct_joint": {
"transceiver_type": "TransceiverType",
"port_name": "google.protobuf.StringValue",
"access_device_name": "string"
},
"lag_direct_joint": {
"transceiver_type": "TransceiverType",
"lag_allocation_settings": {
"lag_info": {
"lag_id": "google.protobuf.Int64Value",
"port_names": [
"string"
]
}
},
"access_device_name": "string"
},
"partner_joint_info": {
"service_key": "string",
"partner_id": "google.protobuf.StringValue"
},
// end of the list of possible fields
"point_of_presence_id": "google.protobuf.StringValue",
"capacity": "Capacity",
"labels": "map<string, string>"
}
],
"next_page_token": "string"
}
Field |
Description |
trunk_connections[] |
List of TrunkConnection resources. |
next_page_token |
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. |
folder_id |
string ID of the folder that the trunkConnection belongs to. |
region_id |
string ID of the region that the trunkConnection belongs to. |
single_port_direct_joint |
Includes only one of the fields Special trunkConnection config |
lag_direct_joint |
Includes only one of the fields Special trunkConnection config |
partner_joint_info |
Includes only one of the fields Special trunkConnection config |
point_of_presence_id |
ID of pointOfPresence that the trunkConnection is deployed on. |
capacity |
enum Capacity Capacity of the trunkConnection
|
labels |
object (map<string, string>) Resource labels, |
SinglePortDirectJoint
Config of trunkConnection that is deployed on single port.
Field |
Description |
transceiver_type |
enum TransceiverType Type of transceiver that the trunkConnection is deployed on.
|
port_name |
Name of port that the trunkConnection is deployed on. |
access_device_name |
string Device name which is set in LLDP message. |
LagDirectJoint
Config of trunkConnection that is deployed on lag.
Field |
Description |
transceiver_type |
enum TransceiverType Type of transceiver that the trunkConnection is deployed on.
|
lag_allocation_settings |
LAG allocation settings that the trunkConnection is deployed on. |
access_device_name |
string Device name which is set in LLDP message. |
LagAllocationSettings
Structure that describes LAG allocation settings
Field |
Description |
lag_info |
LagInfo |
LagInfo
Field |
Description |
lag_id |
ID of LAG. |
port_names[] |
string List of port names that the LAG is deployed on. |
PartnerJointInfo
Config of trunkConnection that is deployed on partner joint.
Field |
Description |
service_key |
string Reserved for future using; |
partner_id |
ID of partner that the trunkConnection is deployed on. |