2.8 KiB
2.8 KiB
| page_title | subcategory | description |
|---|---|---|
| stackit_network Data Source - stackit | Network resource schema. Must have a region specified in the provider configuration. |
stackit_network (Data Source)
Network resource schema. Must have a region specified in the provider configuration.
Example Usage
data "stackit_network" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
network_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Schema
Required
network_id(String) The network ID.project_id(String) STACKIT project ID to which the network is associated.
Optional
region(String) Can only be used when experimental "network" is set. This is likely going to undergo significant changes or be removed in the future. The resource region. If not defined, the provider region is used.
Read-Only
id(String) Terraform's internal resource ID. It is structured as "project_id,network_id".ipv4_gateway(String) The IPv4 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway.ipv4_nameservers(List of String) The IPv4 nameservers of the network.ipv4_prefix(String, Deprecated) The IPv4 prefix of the network (CIDR).ipv4_prefix_length(Number) The IPv4 prefix length of the network.ipv4_prefixes(List of String) The IPv4 prefixes of the network.ipv6_gateway(String) The IPv6 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway.ipv6_nameservers(List of String) The IPv6 nameservers of the network.ipv6_prefix(String, Deprecated) The IPv6 prefix of the network (CIDR).ipv6_prefix_length(Number) The IPv6 prefix length of the network.ipv6_prefixes(List of String) The IPv6 prefixes of the network.labels(Map of String) Labels are key-value string pairs which can be attached to a resource containername(String) The name of the network.nameservers(List of String, Deprecated) The nameservers of the network. This field is deprecated and will be removed soon, useipv4_nameserversto configure the nameservers for IPv4.prefixes(List of String, Deprecated) The prefixes of the network. This field is deprecated and will be removed soon, useipv4_prefixesto read the prefixes of the IPv4 networks.public_ip(String) The public IP of the network.routed(Boolean) Shows if the network is routed and therefore accessible from other networks.routing_table_id(String) Can only be used when experimental "network" is set. This is likely going to undergo significant changes or be removed in the future. Use it at your own discretion. The ID of the routing table associated with the network.