Adding a private connection to a virtual router
Written by
Updated at August 21, 2026
Note
You need the cloud-router.editor role to run this operation.
Management console
CLI
- In the management console
, select the folder containing the virtual router. - Navigate
to Cloud Router. - In the virtual router row, click
and select Edit. - In the Private connections field, select the private connections you want to add or specify their IDs.
- Click Save.
-
See the description of the CLI command for adding a private connection to a virtual router:
yc cloudrouter routing-instance add-private-connection --help -
Adding a private connection to the virtual router:
yc cloudrouter routing-instance add-private-connection c3l87**********1dpin \ --cic-prc b1gqf**********jiz2w \ --asyncExpected result:
id: fokrf**********ml058 description: routing instance add private connection created_at: "2025-04-16T12:43:54.507531644Z" created_by: bfbud**********v7dfn modified_at: "2025-04-16T12:43:54.507531644Z" metadata: '@type': type.googleapis.com/yandex.cloud.cloudrouter.v1.UpdateRoutingInstanceMetadata routing_instance_id: c3l87**********1dpinWhere:
id: ID of the operation performed with the virtual router.created_by: ID of the subject running the operation.
-
Checking the modified virtual router configuration:
yc cloudrouter routing-instance get c3l87**********1dpinExpected result:
id: c3l87**********1dpin name: ri1-preprod description: Routing instance 1 folder_id: b1gqf**********jiz2w region_id: ru-central1 cic_private_connection_info: - cic_private_connection_id: cf3td**********nufvr status: ACTIVE created_at: "2025-03-19T13:35:56Z"Where:
id: Virtual router ID.name: Virtual router name.description: Virtual router description.folder_id: ID of the cloud folder the virtual router was created in.region_id: Region of the cloud the virtual router was created in.cic_private_connection_info: List of private connections in the virtual router.status: Resource state. The target state isACTIVE. When being updated, it may be in theUPDATINGstate.created_at: Date and time of resource creation.async: Running the operation in asynchronous mode. This is the recommended mode for all operations that involve changes to resources.