Getting information about a subnet
Written by
Updated at February 28, 2024
To get information about a subnet:
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.
-
View a description of the CLI command to get information about a subnet:
yc vpc subnet get --help
-
Get information about a subnet by specifying its name or ID:
yc vpc subnet get <subnet_name>
Result:
id: 5ubne7r188b7******** folder_id: f01derqpemb4******** created_at: "2023-10-25T14:59:49Z" name: my-network-ru-central1-a description: Auto-created default subnet for zone ru-central1-a in my-network network_id: ne7w0rkfj75j******** zone_id: ru-central1-a v4_cidr_blocks: - 10.130.0.0/24