Skip to content

Commit 2fc9e7f

Browse files
committed
feat(iaas): support for v2 API
relates to STACKITTPR-313
1 parent 25134e8 commit 2fc9e7f

File tree

106 files changed

+7082
-5707
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+7082
-5707
lines changed

docs/data-sources/affinity_group.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ data "stackit_affinity_group" "example" {
2727
- `affinity_group_id` (String) The affinity group ID.
2828
- `project_id` (String) STACKIT Project ID to which the affinity group is associated.
2929

30+
### Optional
31+
32+
- `region` (String) The resource region. If not defined, the provider region is used.
33+
3034
### Read-Only
3135

32-
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`affinity_group_id`".
36+
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`region`,`affinity_group_id`".
3337
- `members` (List of String) Affinity Group schema. Must have a `region` specified in the provider configuration.
3438
- `name` (String) The name of the affinity group.
3539
- `policy` (String) The policy of the affinity group.

docs/data-sources/iaas_project.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ data "stackit_iaas_project" "example" {
3131
- `created_at` (String) Date-time when the project was created.
3232
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`".
3333
- `internet_access` (Boolean) Specifies if the project has internet_access
34-
- `state` (String) Specifies the state of the project.
34+
- `state` (String, Deprecated) Specifies the state of the project.
35+
- `status` (String)
3536
- `updated_at` (String) Date-time when the project was last updated.

docs/data-sources/image.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,16 @@ data "stackit_image" "example" {
2727
- `image_id` (String) The image ID.
2828
- `project_id` (String) STACKIT project ID to which the image is associated.
2929

30+
### Optional
31+
32+
- `region` (String) The resource region. If not defined, the provider region is used.
33+
3034
### Read-Only
3135

3236
- `checksum` (Attributes) Representation of an image checksum. (see [below for nested schema](#nestedatt--checksum))
3337
- `config` (Attributes) Properties to set hardware and scheduling settings for an image. (see [below for nested schema](#nestedatt--config))
3438
- `disk_format` (String) The disk format of the image.
35-
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`image_id`".
39+
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`region`,`image_id`".
3640
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
3741
- `min_disk_size` (Number) The minimum disk size of the image in GB.
3842
- `min_ram` (Number) The minimum RAM of the image in MB.

docs/data-sources/image_v2.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,15 @@ data "stackit_image_v2" "filter_distro_version" {
105105
- `image_id` (String) Image ID to fetch directly
106106
- `name` (String) Exact image name to match. Optionally applies a `filter` block to further refine results in case multiple images share the same name. The first match is returned, optionally sorted by name in ascending order. Cannot be used together with `name_regex`.
107107
- `name_regex` (String) Regular expression to match against image names. Optionally applies a `filter` block to narrow down results when multiple image names match the regex. The first match is returned, optionally sorted by name in ascending order. Cannot be used together with `name`.
108+
- `region` (String) The resource region. If not defined, the provider region is used.
108109
- `sort_ascending` (Boolean) If set to `true`, images are sorted in ascending lexicographical order by image name (such as `Ubuntu 18.04`, `Ubuntu 20.04`, `Ubuntu 22.04`) before selecting the first match. Defaults to `false` (descending such as `Ubuntu 22.04`, `Ubuntu 20.04`, `Ubuntu 18.04`).
109110

110111
### Read-Only
111112

112113
- `checksum` (Attributes) Representation of an image checksum. (see [below for nested schema](#nestedatt--checksum))
113114
- `config` (Attributes) Properties to set hardware and scheduling settings for an image. (see [below for nested schema](#nestedatt--config))
114115
- `disk_format` (String) The disk format of the image.
115-
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`image_id`".
116+
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`region`,`image_id`".
116117
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
117118
- `min_disk_size` (Number) The minimum disk size of the image in GB.
118119
- `min_ram` (Number) The minimum RAM of the image in MB.

docs/data-sources/machine_type.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@ stackit server machine-type list
6363

6464
### Optional
6565

66+
- `region` (String) The resource region. If not defined, the provider region is used.
6667
- `sort_ascending` (Boolean) Sort machine types by name ascending (`true`) or descending (`false`). Defaults to `false`
6768

6869
### Read-Only
6970

7071
- `description` (String) Machine type description.
7172
- `disk` (Number) Disk size in GB.
7273
- `extra_specs` (Map of String) Extra specs (e.g., CPU type, overcommit ratio).
73-
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`image_id`".
74+
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`region`,`image_id`".
7475
- `name` (String) Name of the machine type (e.g. 's1.2').
7576
- `ram` (Number) RAM size in MB.
7677
- `vcpus` (Number) Number of vCPUs.

docs/data-sources/network_area.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ data "stackit_network_area" "example" {
2929

3030
### Read-Only
3131

32-
- `default_nameservers` (List of String) List of DNS Servers/Nameservers.
33-
- `default_prefix_length` (Number) The default prefix length for networks in the network area.
32+
- `default_nameservers` (List of String, Deprecated) List of DNS Servers/Nameservers.
33+
- `default_prefix_length` (Number, Deprecated) The default prefix length for networks in the network area.
3434
- `id` (String) Terraform's internal resource ID. It is structured as "`organization_id`,`network_area_id`".
3535
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
36-
- `max_prefix_length` (Number) The maximal prefix length for networks in the network area.
37-
- `min_prefix_length` (Number) The minimal prefix length for networks in the network area.
36+
- `max_prefix_length` (Number, Deprecated) The maximal prefix length for networks in the network area.
37+
- `min_prefix_length` (Number, Deprecated) The minimal prefix length for networks in the network area.
3838
- `name` (String) The name of the network area.
39-
- `network_ranges` (Attributes List) List of Network ranges. (see [below for nested schema](#nestedatt--network_ranges))
39+
- `network_ranges` (Attributes List, Deprecated) List of Network ranges. (see [below for nested schema](#nestedatt--network_ranges))
4040
- `project_count` (Number) The amount of projects currently referencing this area.
41-
- `transfer_network` (String) Classless Inter-Domain Routing (CIDR).
41+
- `transfer_network` (String, Deprecated) Classless Inter-Domain Routing (CIDR).
4242

4343
<a id="nestedatt--network_ranges"></a>
4444
### Nested Schema for `network_ranges`
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "stackit_network_area_region Data Source - stackit"
4+
subcategory: ""
5+
description: |-
6+
Network area region data source schema.
7+
---
8+
9+
# stackit_network_area_region (Data Source)
10+
11+
Network area region data source schema.
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `network_area_id` (String) The network area ID.
21+
- `organization_id` (String) STACKIT organization ID to which the network area is associated.
22+
23+
### Optional
24+
25+
- `region` (String) The resource region. If not defined, the provider region is used.
26+
27+
### Read-Only
28+
29+
- `id` (String) Terraform's internal resource ID. It is structured as "`organization_id`,`network_area_id`,`region`".
30+
- `ipv4` (Attributes) The regional IPv4 config of a network area. (see [below for nested schema](#nestedatt--ipv4))
31+
32+
<a id="nestedatt--ipv4"></a>
33+
### Nested Schema for `ipv4`
34+
35+
Read-Only:
36+
37+
- `default_nameservers` (List of String) List of DNS Servers/Nameservers.
38+
- `default_prefix_length` (Number) The default prefix length for networks in the network area.
39+
- `max_prefix_length` (Number) The maximal prefix length for networks in the network area.
40+
- `min_prefix_length` (Number) The minimal prefix length for networks in the network area.
41+
- `network_ranges` (Attributes List) List of Network ranges. (see [below for nested schema](#nestedatt--ipv4--network_ranges))
42+
- `transfer_network` (String) IPv4 Classless Inter-Domain Routing (CIDR).
43+
44+
<a id="nestedatt--ipv4--network_ranges"></a>
45+
### Nested Schema for `ipv4.network_ranges`
46+
47+
Read-Only:
48+
49+
- `network_range_id` (String)
50+
- `prefix` (String) Classless Inter-Domain Routing (CIDR).

docs/data-sources/network_area_route.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ data "stackit_network_area_route" "example" {
2929
- `network_area_route_id` (String) The network area route ID.
3030
- `organization_id` (String) STACKIT organization ID to which the network area is associated.
3131

32+
### Optional
33+
34+
- `region` (String) The resource region. If not defined, the provider region is used.
35+
3236
### Read-Only
3337

34-
- `id` (String) Terraform's internal data source ID. It is structured as "`organization_id`,`network_area_id`,`network_area_route_id`".
38+
- `id` (String) Terraform's internal data source ID. It is structured as "`organization_id`,`region`,`network_area_id`,`network_area_route_id`".
3539
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
3640
- `next_hop` (String) The IP address of the routing system, that will route the prefix configured. Should be a valid IPv4 address.
3741
- `prefix` (String) The network, that is reachable though the Next Hop. Should use CIDR notation.

docs/data-sources/network_interface.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,15 @@ data "stackit_network_interface" "example" {
2929
- `network_interface_id` (String) The network interface ID.
3030
- `project_id` (String) STACKIT project ID to which the network interface is associated.
3131

32+
### Optional
33+
34+
- `region` (String) The resource region. If not defined, the provider region is used.
35+
3236
### Read-Only
3337

3438
- `allowed_addresses` (List of String) The list of CIDR (Classless Inter-Domain Routing) notations.
3539
- `device` (String) The device UUID of the network interface.
36-
- `id` (String) Terraform's internal data source ID. It is structured as "`project_id`,`network_id`,`network_interface_id`".
40+
- `id` (String) Terraform's internal data source ID. It is structured as "`project_id`,`region`,`network_id`,`network_interface_id`".
3741
- `ipv4` (String) The IPv4 address.
3842
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a network interface.
3943
- `mac` (String) The MAC address of network interface.

docs/data-sources/public_ip.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ data "stackit_public_ip" "example" {
2727
- `project_id` (String) STACKIT project ID to which the public IP is associated.
2828
- `public_ip_id` (String) The public IP ID.
2929

30+
### Optional
31+
32+
- `region` (String) The resource region. If not defined, the provider region is used.
33+
3034
### Read-Only
3135

32-
- `id` (String) Terraform's internal datasource ID. It is structured as "`project_id`,`public_ip_id`".
36+
- `id` (String) Terraform's internal datasource ID. It is structured as "`project_id`,`region`,`public_ip_id`".
3337
- `ip` (String) The IP address.
3438
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
3539
- `network_interface_id` (String) Associates the public IP with a network interface or a virtual IP (ID).

0 commit comments

Comments
 (0)