Cloud Interconnect API, REST: TrunkConnection.Create
Creates a TrunkConnection resource in the specified folder using the data specified in the request.
Method starts an asynchronous operation that can be cancelled while it is in progress.
HTTP request
POST https://cic.api.cloud.yandex.net/cic/v1/trunkConnections
Body parameters
{
"name": "string",
"description": "string",
"folderId": "string",
"regionId": "string",
// Includes only one of the fields `singlePortDirectJoint`, `lagDirectJoint`, `partnerJointInfo`
"singlePortDirectJoint": {
"transceiverType": "string"
},
"lagDirectJoint": {
"transceiverType": "string"
},
"partnerJointInfo": {
"partnerId": "string"
},
// end of the list of possible fields
"pointOfPresenceId": "string",
"capacity": "string",
"labels": "object",
"deletionProtection": "boolean"
}
Field |
Description |
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 |
object (map<string, string>) Resource labels, |
deletionProtection |
boolean Deletion protection flag. |
SinglePortDirectJoint
Config of trunkConnection that is deployed on single port.
Field |
Description |
transceiverType |
enum (TransceiverType) Type of transceiver that the trunkConnection is deployed on.
|
LagDirectJoint
Config of trunkConnection that is deployed on lag.
Field |
Description |
transceiverType |
enum (TransceiverType) Type of transceiver that the trunkConnection is deployed on.
|
PartnerJoint
Config of trunkConnection that is deployed on partner joint.
Field |
Description |
partnerId |
string ID of partner that the trunkConnection is deployed on. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"trunkConnectionId": "string"
},
// Includes only one of the fields `error`, `response`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
},
"response": {
"id": "string",
"name": "string",
"description": "string",
"folderId": "string",
"regionId": "string",
"createdAt": "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": "object",
"status": "string",
"deletionProtection": "boolean"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
Field |
Description |
id |
string ID of the operation. |
description |
string Description of the operation. 0-256 characters long. |
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
createdBy |
string ID of the user or service account who initiated the operation. |
modifiedAt |
string (date-time) The time when the Operation resource was last modified. String in RFC3339 To work with values in this field, use the APIs described in the |
done |
boolean If the value is |
metadata |
Service-specific metadata associated with the operation. |
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
CreateTrunkConnectionMetadata
Field |
Description |
trunkConnectionId |
string ID of the TrunkConnection resource. |
Status
The error result of the operation in case of failure or cancellation.
Field |
Description |
code |
integer (int32) Error code. An enum value of google.rpc.Code |
message |
string An error message. |
details[] |
object A list of messages that carry the error details. |
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. |
createdAt |
string (date-time) Creation timestamp in RFC3339 String in RFC3339 To work with values in this field, use the APIs described in the |
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 |
object (map<string, string>) Resource labels, |
status |
enum (Status) Status of the trunkConnection.
|
deletionProtection |
boolean Optional deletion protection flag. |
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. |