yandex_vpc_network (Data Source)
Written by
Updated at September 11, 2025
Get information about a Yandex VPC network. For more information, see Yandex Cloud VPC.
This data source is used to define VPC Networks that can be used by other resources.
Warning
One of network_id or name should be specified.
Example usage
//
// Get information about existing VPC Network.
//
data "yandex_vpc_network" "admin" {
network_id = "my-network-id"
}
Schema
Optional
folder_id(String) The folder identifier that resource belongs to. If it is not provided, the default providerfolder-idis used.name(String) The resource name.network_id(String) ID of the network.
Read-Only
created_at(String) The creation timestamp of the resource.default_security_group_id(String) ID of default Security Group of this network.description(String) The resource description.id(String) The ID of this resource.labels(Map of String) A set of key/value label pairs which assigned to resource.subnet_ids(List of String) The list of VPC subnets identifiers which resource is attached.