-
Notifications
You must be signed in to change notification settings - Fork 43
feat(iaas): support for v2 API #1070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rubenhoenle
wants to merge
3
commits into
main
Choose a base branch
from
feat/STACKITTPR-313-iaas-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| --- | ||
| # generated by https://github.com/hashicorp/terraform-plugin-docs | ||
| page_title: "stackit_network_area_region Data Source - stackit" | ||
| subcategory: "" | ||
| description: |- | ||
| Network area region data source schema. | ||
| --- | ||
|
|
||
| # stackit_network_area_region (Data Source) | ||
|
|
||
| Network area region data source schema. | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ```terraform | ||
| data "stackit_network_area_region" "example" { | ||
| organization_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| network_area_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| } | ||
| ``` | ||
|
|
||
| <!-- schema generated by tfplugindocs --> | ||
| ## Schema | ||
|
|
||
| ### Required | ||
|
|
||
| - `network_area_id` (String) The network area ID. | ||
| - `organization_id` (String) STACKIT organization ID to which the network area is associated. | ||
|
|
||
| ### Optional | ||
|
|
||
| - `region` (String) The resource region. If not defined, the provider region is used. | ||
|
|
||
| ### Read-Only | ||
|
|
||
| - `id` (String) Terraform's internal resource ID. It is structured as "`organization_id`,`network_area_id`,`region`". | ||
| - `ipv4` (Attributes) The regional IPv4 config of a network area. (see [below for nested schema](#nestedatt--ipv4)) | ||
|
|
||
| <a id="nestedatt--ipv4"></a> | ||
| ### Nested Schema for `ipv4` | ||
|
|
||
| Read-Only: | ||
|
|
||
| - `default_nameservers` (List of String) List of DNS Servers/Nameservers. | ||
| - `default_prefix_length` (Number) The default prefix length for networks in the network area. | ||
| - `max_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. | ||
| - `network_ranges` (Attributes List) List of Network ranges. (see [below for nested schema](#nestedatt--ipv4--network_ranges)) | ||
| - `transfer_network` (String) IPv4 Classless Inter-Domain Routing (CIDR). | ||
|
|
||
| <a id="nestedatt--ipv4--network_ranges"></a> | ||
| ### Nested Schema for `ipv4.network_ranges` | ||
|
|
||
| Read-Only: | ||
|
|
||
| - `network_range_id` (String) | ||
| - `prefix` (String) Classless Inter-Domain Routing (CIDR). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,12 +34,11 @@ resource "stackit_network" "example_routed_network" { | |
| } | ||
|
|
||
| resource "stackit_network" "example_non_routed_network" { | ||
| project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| name = "example-non-routed-network" | ||
| ipv4_nameservers = ["1.2.3.4", "5.6.7.8"] | ||
| ipv4_prefix_length = 24 | ||
| ipv4_gateway = "10.1.2.3" | ||
| ipv4_prefix = "10.1.2.0/24" | ||
| project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| name = "example-non-routed-network" | ||
| ipv4_nameservers = ["1.2.3.4", "5.6.7.8"] | ||
| ipv4_gateway = "10.1.2.3" | ||
| ipv4_prefix = "10.1.2.0/24" | ||
| labels = { | ||
| "key" = "value" | ||
| } | ||
|
|
@@ -77,11 +76,9 @@ import { | |
| - `nameservers` (List of String, Deprecated) The nameservers of the network. This field is deprecated and will be removed in January 2026, use `ipv4_nameservers` to configure the nameservers for IPv4. | ||
| - `no_ipv4_gateway` (Boolean) If set to `true`, the network doesn't have a gateway. | ||
| - `no_ipv6_gateway` (Boolean) If set to `true`, the network doesn't have a gateway. | ||
| - `region` (String) Can only be used when experimental "network" is set. | ||
| The resource region. If not defined, the provider region is used. | ||
| - `region` (String) The resource region. If not defined, the provider region is used. | ||
| - `routed` (Boolean) If set to `true`, the network is routed and therefore accessible from other networks. | ||
| - `routing_table_id` (String) Can only be used when experimental "network" is set. | ||
| The ID of the routing table associated with the network. | ||
| - `routing_table_id` (String) The ID of the routing table associated with the network. | ||
|
|
||
| ### Read-Only | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the network resource the documentation of the id structure must be updated and the import example. Probably this relates to most of the modified resources / datasources |
||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.