* chore(examples): Add import examples for all resources Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Add guide: How to import resources Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> --------- Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2.2 KiB
2.2 KiB
| page_title | subcategory | description |
|---|---|---|
| stackit_network_area Resource - stackit | Network area resource schema. Must have a region specified in the provider configuration. |
stackit_network_area (Resource)
Network area resource schema. Must have a region specified in the provider configuration.
Example Usage
resource "stackit_network_area" "example" {
organization_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-network-area"
network_ranges = [
{
prefix = "192.168.0.0/24"
}
]
transfer_network = "192.168.1.0/24"
labels = {
"key" = "value"
}
}
# Only use the import statement, if you want to import an existing network area
import {
to = stackit_network_area.import-example
id = "${var.organization_id},${var.network_area_id}"
}
Schema
Required
name(String) The name of the network area.network_ranges(Attributes List) List of Network ranges. (see below for nested schema)organization_id(String) STACKIT organization ID to which the network area is associated.transfer_network(String) Classless Inter-Domain Routing (CIDR).
Optional
default_nameservers(List of String) List of DNS Servers/Nameservers.default_prefix_length(Number) The default prefix length for networks in the network area.labels(Map of String) Labels are key-value string pairs which can be attached to a resource containermax_prefix_length(Number) The maximal prefix length for networks in the network area.min_prefix_length(Number) The minimal prefix length for networks in the network area.
Read-Only
id(String) Terraform's internal resource ID. It is structured as "organization_id,network_area_id".network_area_id(String) The network area ID.project_count(Number) The amount of projects currently referencing this area.
Nested Schema for network_ranges
Required:
prefix(String) Classless Inter-Domain Routing (CIDR).
Read-Only:
network_range_id(String)