43 lines
1.9 KiB
Markdown
43 lines
1.9 KiB
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "stackit_network_interface Data Source - stackit"
|
|
subcategory: ""
|
|
description: |-
|
|
Network interface datasource schema. Must have a region specified in the provider configuration.
|
|
---
|
|
|
|
# stackit_network_interface (Data Source)
|
|
|
|
Network interface datasource schema. Must have a `region` specified in the provider configuration.
|
|
|
|
## Example Usage
|
|
|
|
```terraform
|
|
data "stackit_network_interface" "example" {
|
|
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
network_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
network_interface_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
}
|
|
```
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
## Schema
|
|
|
|
### Required
|
|
|
|
- `network_id` (String) The network ID to which the network interface is associated.
|
|
- `network_interface_id` (String) The network interface ID.
|
|
- `project_id` (String) STACKIT project ID to which the network interface is associated.
|
|
|
|
### Read-Only
|
|
|
|
- `allowed_addresses` (List of String) The list of CIDR (Classless Inter-Domain Routing) notations.
|
|
- `device` (String) The device UUID of the network interface.
|
|
- `id` (String) Terraform's internal data source ID. It is structured as "`project_id`,`network_id`,`network_interface_id`".
|
|
- `ipv4` (String) The IPv4 address.
|
|
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a network interface.
|
|
- `mac` (String) The MAC address of network interface.
|
|
- `name` (String) The name of the network interface.
|
|
- `security` (Boolean) The Network Interface Security. If set to false, then no security groups will apply to this network interface.
|
|
- `security_group_ids` (List of String) The list of security group UUIDs. If security is set to false, setting this field will lead to an error.
|
|
- `type` (String) Type of network interface. Some of the possible values are: Possible values are: `server`, `metadata`, `gateway`.
|