Getting information about public 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 information on public connections:
yc cic public-connection get --help
-
Get a list of public connections in the folder:
yc cic public-connection list --folder-id b1gqf2hjizv2jwj4dnga
Result:
+----------------------+--------------------+----------------------+---------------+ | ID | NAME | TRUNK CONNECTION ID | SERVICE TYPES | +----------------------+--------------------+----------------------+---------------+ | euuiog88zphgsq3c15pq | customer-name-pub1 | euuqqctbrflq3ir4n4p2 | APIGW, ML | | euucr7p47329kqxrp4kh | customer-name-pub2 | euuvdjl5shd0fv7bqt38 | APIGW, ML | +----------------------+--------------------+----------------------+---------------+
-
Get information about the public connection by specifying its ID obtained in the previous step:
# yc cic public-connection get <public_connection_ID> yc cic public-connection get euuiog88zphgsq3c15pq
Result:
id: euuiog88zphgsq3c15pq name: customer-name-pub1 folder_id: b1gqf2hjizv2jwj4dnga region_id: ru-central1 trunk_connection_id: euuqqctbrflq3ir4n4p2 vlan_id: "1428" ipv4_peering: peering_subnet: 178.170.2xx.x2/31 peer_ip: 178.170.2xx.x2 cloud_ip: 178.170.2xx.x3 peer_bgp_asn: "65001" cloud_bgp_asn: "200350" ipv4_allowed_service_types: - CLOUD_SERVICE_APIGW - CLOUD_SERVICE_ML ipv4_peer_announced_prefixes: - 178.170.2xx.x2/31
Where:
id
: Public connection ID.name
: Public connection name.folder_id
: ID of the cloud folder containing the new public connection.region_id
: Region of the cloud the new public connection belongs to.trunk_connection_id
: ID of the trunk the public connection belongs to.vlan_id
: VLAN ID for the public connection.- IP and BGP connectivity parameters for the point-to-point subnet of the public connection:
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.
ipv4_allowed_service_types
: List of IDs for the services whose IP prefixes are announced in the public connection.ipv4_peer_announced_prefixes
: List of client IP prefixes (if any) the public connection will accept traffic from.