Cloud Interconnect API, REST: TrunkConnection.Get
Returns the specified TrunkConnection resource.
To get the list of available TrunkConnection resources, make a List request.
HTTP request
GET https://cic-api.api.cloud.yandex.net/cic/v1/trunkConnections/{trunkConnectionId}
Path parameters
Field |
Description |
trunkConnectionId |
string Required field. ID of the TrunkConnection resource to return. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"name": "string",
"description": "string",
"folderId": "string",
"regionId": "string",
// Includes only one of the fields `singlePortDirectJoint`, `lagDirectJoint`, `partnerJointInfo`
"singlePortDirectJoint": {
"transceiverType": "string",
"portName": "string",
"accessDeviceName": "string"
},
"lagDirectJoint": {
"transceiverType": "string",
"lagAllocationSettings": {
"lagInfo": {
"lagId": "string",
"portNames": [
"string"
]
}
},
"accessDeviceName": "string"
},
"partnerJointInfo": {
"serviceKey": "string",
"partnerId": "string"
},
// end of the list of possible fields
"pointOfPresenceId": "string",
"capacity": "string",
"labels": "string"
}
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 |
string 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 |
string 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 |
string (int64) 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 |
string ID of partner that the trunkConnection is deployed on. |