Cloud Interconnect API, gRPC: TrunkConnectionService.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.
gRPC request
rpc Create (CreateTrunkConnectionRequest) returns (operation.Operation)
CreateTrunkConnectionRequest
{
"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"
},
"lag_direct_joint": {
"transceiver_type": "TransceiverType"
},
"partner_joint_info": {
"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>",
"deletion_protection": "bool"
}
Field |
Description |
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, |
deletion_protection |
bool Deletion protection flag. |
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.
|
LagDirectJoint
Config of trunkConnection that is deployed on lag.
Field |
Description |
transceiver_type |
enum TransceiverType Type of transceiver that the trunkConnection is deployed on.
|
PartnerJoint
Config of trunkConnection that is deployed on partner joint.
Field |
Description |
partner_id |
ID of partner that the trunkConnection is deployed on. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"trunk_connection_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"name": "string",
"description": "string",
"folder_id": "string",
"region_id": "string",
"created_at": "google.protobuf.Timestamp",
// 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>",
"status": "Status",
"deletion_protection": "bool"
}
// 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. |
created_at |
Creation timestamp. |
created_by |
string ID of the user or service account who initiated the operation. |
modified_at |
The time when the Operation resource was last modified. |
done |
bool 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 |
trunk_connection_id |
string ID of the TrunkConnection resource. |
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. |
created_at |
Creation timestamp in RFC3339 |
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, |
status |
enum Status Status of the trunkConnection.
|
deletion_protection |
bool Optional deletion protection flag. |
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. |