Getting information about private connections
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 the information about private connections:
yc cic private-connection get --help
-
Get a list of private connections in the specified folder:
yc cic private-connection list --folder-id b1gqf2hjizv2jwj4dnga
Result:
+----------------------+--------------------+----------------------+ | ID | NAME | TRUNK CONNECTION ID | +----------------------+--------------------+----------------------+ | euuiog88zphgsq3c15pq | customer-name-prc1 | euuqqctbrflq3ir4n4p2 | | euucr7p47329kqxrp4kh | customer-name-prc2 | euuvdjl5shd0fv7bqt38 | +----------------------+--------------------+----------------------+
-
Get information about the private connection by specifying its ID obtained in the previous step:
# yc cic private-connection get <private_connection_ID> yc cic private-connection get euuiog88zphgsq3c15pq
Result:
id: euuiog88zphgsq3c15pq name: customer-name-prc1 folder_id: b1gqf2hjizv2jwj4dnga region_id: ru-central1 trunk_connection_id: euuqqctbrflq3ir4n4p2 vlan_id: "1531" ipv4_peering: peering_subnet: 10.211.10.0/30 peer_ip: 10.211.10.1 cloud_ip: 10.211.10.2 peer_bgp_asn: "64515" cloud_bgp_asn: "200350"
Where:
id
: Private connection ID.name
: Private connection name.folder_id
: ID of the cloud folder the private connection was created in.region_id
: Region of the cloud the private connection was created in.trunk_connection_id
: Trunk connection ID the private connection belongs to.vlan_id
: VLAN ID for the private connection- IP and BGP connectivity parameters for the private connection’s point-to-point subnet:
peering_subnet
: Point-to-point subnet for BGP peering.peer_ip
: IP address of the point-to-point (peered) subnet on the customer's equipment.cloud_ip
: IP address of the point-to-point (peered) subnet on the Yandex Cloud equipment.peer_bgp_asn
: BGP ASN on the customer's equipment.cloud_bgp_asn
: BGP ASN on the Yandex Cloud equipment.