Getting information about trunks
Written by
Updated at November 26, 2024
Warning
To request access to the Cloud Interconnect API, contact support
CLI
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
See the description of the CLI command to get information about trunks:
yc cic trunk get --help
-
Get a list of trunks in the specified folder:
yc cic trunk list --folder-id b1gqf2hjizv2jwj4dnga
Result:
+----------------------+--------------------+----------------------------+------------------+----------+ | ID | NAME | POINT OF PRESENCE ID (POP) | TRANSCEIVER TYPE | CAPACITY | +----------------------+--------------------+----------------------------+------------------+----------+ | euuqqctbrflq3ir4n4p2 | customer-name-m9 | ru-msk-m9-0 | 10GBASE-LR | 5 GBPS | | euuvdjl5shd0fv7bqt38 | customer-name-ost | ru-msk-ost-0 | 10GBASE-LR | 5 GBPS | +----------------------+--------------------+----------------------------+------------------+----------+
-
Get information about the trunk by specifying its ID obtained in the previous step:
# yc cic trunk get <trunk ID> yc cic trunk get euuqqctbrflq3ir4n4p2
Result:
id: euuqqctbrflq3ir4n4p2 name: customer-name-m9 folder_id: b1gqf2hjizv2jwj4dnga region_id: ru-central1 single_port_direct_joint: transceiver_type: TRANSCEIVER_TYPE_10GBASE_LR port_name: 25GE1/0/2 access_device_name: m9-cicext1 point_of_presence_id: ru-msk-m9-0 capacity: CAPACITY_5_GBPS
Where:
id
: Trunk ID.name
: Trunk name.folder_id
: ID of the cloud folder the trunk was created in.region_id
: Region of the cloud the trunk belongs to.- Trunk type:
single_port_direct_joint
: Direct trunk:transceiver_type
: Transceiver type in use.port_name
: Number of the port(s) allocated for the trunk on the network device.access_device_name
: Name of the network device with ports allocated for the trunk.
lag_direct_joint
: Aggregated (LAG) direct trunk:transceiver_type
: Transceiver type in use.lag_id
: Aggregated connection ID.port_names
: List of physical ports in the LAG.
partner_joint_info
: Partner trunk:partner_id
: Partner ID.service_key
: Service key for the partner trunk.
point_of_presence_id
: Point of presence ID.capacity
: Trunk capacity.