terraform-provider-stackitp.../docs/resources/routing_table.md
Alexander Dahmen 721e10a02f
chore(examples): Add import examples for all resources (#939)
* 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>
2025-08-08 14:03:27 +02:00

56 lines
2.2 KiB
Markdown

---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "stackit_routing_table Resource - stackit"
subcategory: ""
description: |-
Routing table resource schema. Must have a region specified in the provider configuration.
~> This resource is part of the routing-tables experiment and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.
---
# stackit_routing_table (Resource)
Routing table resource schema. Must have a `region` specified in the provider configuration.
~> This resource is part of the routing-tables experiment and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.
## Example Usage
```terraform
resource "stackit_routing_table" "example" {
organization_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
network_area_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example"
labels = {
"key" = "value"
}
}
# Only use the import statement, if you want to import an existing routing table
import {
to = stackit_routing_table.import-example
id = "${var.organization_id},${var.region},${var.network_area_id},${var.routing_table_id}"
}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `name` (String) The name of the routing table.
- `network_area_id` (String) The network area ID to which the routing table is associated.
- `organization_id` (String) STACKIT organization ID to which the routing table is associated.
### Optional
- `description` (String) Description of the routing table.
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
- `region` (String) The resource region. If not defined, the provider region is used.
- `system_routes` (Boolean) This controls whether the routes for project-to-project communication are created automatically or not.
### Read-Only
- `created_at` (String) Date-time when the routing table was created
- `id` (String) Terraform's internal resource ID. It is structured as "`organization_id`,`region`,`network_area_id`,`routing_table_id`".
- `routing_table_id` (String) The routing tables ID.
- `updated_at` (String) Date-time when the routing table was updated