Skip to content

Commit c72a460

Browse files
committed
update docs
1 parent 828ef77 commit c72a460

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

docs/data-sources/iaas_project.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +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, Deprecated) Specifies the state of the project.
35-
- `status` (String)
34+
- `state` (String, Deprecated) Specifies the status of the project.
35+
- `status` (String) Specifies the status of the project.
3636
- `updated_at` (String) Date-time when the project was last updated.

docs/resources/network.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@ resource "stackit_network" "example_routed_network" {
3434
}
3535
3636
resource "stackit_network" "example_non_routed_network" {
37-
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
38-
name = "example-non-routed-network"
39-
ipv4_nameservers = ["1.2.3.4", "5.6.7.8"]
40-
ipv4_prefix_length = 24
41-
ipv4_gateway = "10.1.2.3"
42-
ipv4_prefix = "10.1.2.0/24"
37+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
38+
name = "example-non-routed-network"
39+
ipv4_nameservers = ["1.2.3.4", "5.6.7.8"]
40+
ipv4_gateway = "10.1.2.3"
41+
ipv4_prefix = "10.1.2.0/24"
4342
labels = {
4443
"key" = "value"
4544
}

examples/resources/stackit_network/resource.tf

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ resource "stackit_network" "example_routed_network" {
1313
}
1414

1515
resource "stackit_network" "example_non_routed_network" {
16-
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
17-
name = "example-non-routed-network"
18-
ipv4_nameservers = ["1.2.3.4", "5.6.7.8"]
19-
ipv4_prefix_length = 24
20-
ipv4_gateway = "10.1.2.3"
21-
ipv4_prefix = "10.1.2.0/24"
16+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
17+
name = "example-non-routed-network"
18+
ipv4_nameservers = ["1.2.3.4", "5.6.7.8"]
19+
ipv4_gateway = "10.1.2.3"
20+
ipv4_prefix = "10.1.2.0/24"
2221
labels = {
2322
"key" = "value"
2423
}
@@ -31,4 +30,4 @@ resource "stackit_network" "example_non_routed_network" {
3130
import {
3231
to = stackit_network.import-example
3332
id = "${var.project_id},${var.network_id}"
34-
}
33+
}

stackit/internal/services/iaas/project/datasource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (d *projectDataSource) Schema(_ context.Context, _ datasource.SchemaRequest
7373
"project_id": "STACKIT project ID.",
7474
"area_id": "The area ID to which the project belongs to.",
7575
"internet_access": "Specifies if the project has internet_access",
76-
"state": "Specifies the state of the project.",
76+
"status": "Specifies the status of the project.",
7777
"created_at": "Date-time when the project was created.",
7878
"updated_at": "Date-time when the project was last updated.",
7979
}
@@ -104,7 +104,7 @@ func (d *projectDataSource) Schema(_ context.Context, _ datasource.SchemaRequest
104104
// Deprecated: Will be removed in May 2026. Only kept to make the IaaS v1 -> v2 API migration non-breaking in the Terraform provider.
105105
"state": schema.StringAttribute{
106106
DeprecationMessage: "Deprecated: Will be removed in May 2026. Use the `status` field instead.",
107-
Description: descriptions["state"],
107+
Description: descriptions["status"],
108108
Computed: true,
109109
},
110110
"status": schema.StringAttribute{

stackit/internal/services/iaas/server/resource.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ func (r *serverResource) Schema(_ context.Context, _ resource.SchemaRequest, res
348348
validate.UUID(),
349349
validate.NoSeparator(),
350350
),
351+
listvalidator.SizeAtLeast(1),
351352
},
352353
PlanModifiers: []planmodifier.List{
353354
listplanmodifier.RequiresReplace(),

0 commit comments

Comments
 (0)