-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ress/data
cloudavenue_vdcg_network_isolated
- Loading branch information
Showing
22 changed files
with
1,581 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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,7 @@ | ||
```release-note:new-resource | ||
`resource/cloudavenue_vdcg_network_isolated` - Added a new resource to manage isolated networks in a VDC Group. | ||
``` | ||
|
||
```release-note:new-data-source | ||
`datasource/cloudavenue_vdcg_network_isolated` - Added a new data source to fetch information about an isolated network in a VDC Group. | ||
``` |
This file contains 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,44 @@ | ||
--- | ||
page_title: "cloudavenue_vdcg_network_isolated Data Source - cloudavenue" | ||
subcategory: "vDC Group (Virtual Datacenter Group)" | ||
description: |- | ||
The cloudavenue_vdcg_network_isolated data source allows you to retrieve information about an isolated network in a VDC Group. | ||
--- | ||
|
||
# cloudavenue_vdcg_network_isolated (Data Source) | ||
|
||
The `cloudavenue_vdcg_network_isolated` data source allows you to retrieve information about an isolated network in a `VDC Group`. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the network. This value must be unique within the `VDC` that owns the network. | ||
|
||
### Optional | ||
|
||
- `vdc_group_id` (String) The ID of vDC group that owns the network. Ensure that at least one attribute from this collection is set: [vdc_group_name,vdc_group_id]. | ||
- `vdc_group_name` (String) The name of vDC group that owns the network. Ensure that at least one attribute from this collection is set: [vdc_group_name,vdc_group_id]. | ||
|
||
### Read-Only | ||
|
||
- `description` (String) A description of the network. | ||
- `dns1` (String) The primary DNS server IP address for the network. | ||
- `dns2` (String) The secondary DNS server IP address for the network. | ||
- `dns_suffix` (String) The DNS suffix for the network. | ||
- `gateway` (String) The gateway IP address for the network. This value define also the network IP range with the prefix length. | ||
- `guest_vlan_allowed` (Boolean) Indicates if the network allows guest VLANs. | ||
- `id` (String) The ID of the isolated network. | ||
- `prefix_length` (Number) The prefix length for the network. This value must be a valid prefix length for the network IP range. (e.g. /24 for netmask 255.255.255.0). | ||
- `static_ip_pool` (Attributes Set) A set of static IP pools to be used for this network. (see [below for nested schema](#nestedatt--static_ip_pool)) | ||
|
||
<a id="nestedatt--static_ip_pool"></a> | ||
### Nested Schema for `static_ip_pool` | ||
|
||
Read-Only: | ||
|
||
- `end_address` (String) The end address of the IP pool. This value must be a valid IP address in the network IP range. | ||
- `start_address` (String) The start address of the IP pool. This value must be a valid IP address in the network IP range. |
This file contains 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,45 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "cloudavenue_vdcg_network_isolated Data Source - cloudavenue" | ||
subcategory: "" | ||
description: |- | ||
The cloudavenue_vdcg_network_isolated data source allows you to retrieve information about an isolated network in a VDC Group. | ||
--- | ||
|
||
# cloudavenue_vdcg_network_isolated (Data Source) | ||
|
||
The `cloudavenue_vdcg_network_isolated` data source allows you to retrieve information about an isolated network in a `VDC Group`. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the network. This value must be unique within the `VDC` that owns the network. | ||
|
||
### Optional | ||
|
||
- `vdc_group_id` (String) The ID of vDC group that owns the network. Ensure that at least one attribute from this collection is set: [vdc_group_name,vdc_group_id]. | ||
- `vdc_group_name` (String) The name of vDC group that owns the network. Ensure that at least one attribute from this collection is set: [vdc_group_name,vdc_group_id]. | ||
|
||
### Read-Only | ||
|
||
- `description` (String) A description of the network. | ||
- `dns1` (String) The primary DNS server IP address for the network. | ||
- `dns2` (String) The secondary DNS server IP address for the network. | ||
- `dns_suffix` (String) The DNS suffix for the network. | ||
- `gateway` (String) The gateway IP address for the network. This value define also the network IP range with the prefix length. | ||
- `guest_vlan_allowed` (Boolean) Indicates if the network allows guest VLANs. | ||
- `id` (String) The ID of the isolated network. | ||
- `prefix_length` (Number) The prefix length for the network. This value must be a valid prefix length for the network IP range. (e.g. /24 for netmask 255.255.255.0). | ||
- `static_ip_pool` (Attributes Set) A set of static IP pools to be used for this network. (see [below for nested schema](#nestedatt--static_ip_pool)) | ||
|
||
<a id="nestedatt--static_ip_pool"></a> | ||
### Nested Schema for `static_ip_pool` | ||
|
||
Read-Only: | ||
|
||
- `end_address` (String) The end address of the IP pool. This value must be a valid IP address in the network IP range. | ||
- `start_address` (String) The start address of the IP pool. This value must be a valid IP address in the network IP range. |
This file contains 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,66 @@ | ||
--- | ||
page_title: "cloudavenue_vdcg_network_isolated Resource - cloudavenue" | ||
subcategory: "vDC Group (Virtual Datacenter Group)" | ||
description: |- | ||
The cloudavenue_vdcg_network_isolated resource allows you to manage an isolated network in a VDC Group. | ||
--- | ||
|
||
# cloudavenue_vdcg_network_isolated (Resource) | ||
|
||
The `cloudavenue_vdcg_network_isolated` resource allows you to manage an isolated network in a `VDC Group`. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "cloudavenue_vdcg_network_isolated" "example" { | ||
name = "my-isolated-network" | ||
vdc_group_name = cloudavenue_vdcg.example.name | ||
|
||
gateway = "192.168.0.1" | ||
prefix_length = 24 | ||
|
||
dns1 = "192.168.0.2" | ||
dns2 = "192.168.0.3" | ||
dns_suffix = "example.local" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `gateway` (String) (ForceNew) The gateway IP address for the network. This value define also the network IP range with the prefix length. Must be a valid IP with net.ParseIP. | ||
- `name` (String) The name of the network. This value must be unique within the `VDC` that owns the network. | ||
- `prefix_length` (Number) (ForceNew) The prefix length for the network. This value must be a valid prefix length for the network IP range. (e.g. /24 for netmask 255.255.255.0). Value must be between 1 and 32. | ||
|
||
### Optional | ||
|
||
- `description` (String) A description of the network. | ||
- `dns1` (String) The primary DNS server IP address for the network. Must be a valid IP with net.ParseIP. | ||
- `dns2` (String) The secondary DNS server IP address for the network. Must be a valid IP with net.ParseIP. | ||
- `dns_suffix` (String) The DNS suffix for the network. | ||
- `guest_vlan_allowed` (Boolean) Indicates if the network allows guest VLANs. Value defaults to `false`. | ||
- `static_ip_pool` (Attributes Set) A set of static IP pools to be used for this network. (see [below for nested schema](#nestedatt--static_ip_pool)) | ||
- `vdc_group_id` (String) (ForceNew) The ID of vDC group that owns the network. Ensure that at least one attribute from this collection is set: [vdc_group_name,vdc_group_id]. | ||
- `vdc_group_name` (String) (ForceNew) The name of vDC group that owns the network. Ensure that at least one attribute from this collection is set: [vdc_group_name,vdc_group_id]. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of the isolated network. | ||
|
||
<a id="nestedatt--static_ip_pool"></a> | ||
### Nested Schema for `static_ip_pool` | ||
|
||
Required: | ||
|
||
- `end_address` (String) The end address of the IP pool. This value must be a valid IP address in the network IP range. Must be a valid IP with net.ParseIP. | ||
- `start_address` (String) The start address of the IP pool. This value must be a valid IP address in the network IP range. Must be a valid IP with net.ParseIP. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
```shell | ||
# VDC Network isolated can be imported using the VDC Groupe name or ID and the network name or ID. | ||
terraform import cloudavenue_vdcg_network_isolated.example vdcGroupNameOrId.networkNameOrId | ||
``` |
This file contains 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,68 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "cloudavenue_vdcg_network_isolated Resource - cloudavenue" | ||
subcategory: "" | ||
description: |- | ||
The cloudavenue_vdcg_network_isolated resource allows you to manage an isolated network in a VDC Group. | ||
--- | ||
|
||
# cloudavenue_vdcg_network_isolated (Resource) | ||
|
||
The `cloudavenue_vdcg_network_isolated` resource allows you to manage an isolated network in a `VDC Group`. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "cloudavenue_vdcg_network_isolated" "example" { | ||
name = "my-isolated-network" | ||
vdc_group_name = cloudavenue_vdcg.example.name | ||
gateway = "192.168.0.1" | ||
prefix_length = 24 | ||
dns1 = "192.168.0.2" | ||
dns2 = "192.168.0.3" | ||
dns_suffix = "example.local" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `gateway` (String) (ForceNew) The gateway IP address for the network. This value define also the network IP range with the prefix length. Must be a valid IP with net.ParseIP. | ||
- `name` (String) The name of the network. This value must be unique within the `VDC` that owns the network. | ||
- `prefix_length` (Number) (ForceNew) The prefix length for the network. This value must be a valid prefix length for the network IP range. (e.g. /24 for netmask 255.255.255.0). Value must be between 1 and 32. | ||
|
||
### Optional | ||
|
||
- `description` (String) A description of the network. | ||
- `dns1` (String) The primary DNS server IP address for the network. Must be a valid IP with net.ParseIP. | ||
- `dns2` (String) The secondary DNS server IP address for the network. Must be a valid IP with net.ParseIP. | ||
- `dns_suffix` (String) The DNS suffix for the network. | ||
- `guest_vlan_allowed` (Boolean) Indicates if the network allows guest VLANs. Value defaults to `false`. | ||
- `static_ip_pool` (Attributes Set) A set of static IP pools to be used for this network. (see [below for nested schema](#nestedatt--static_ip_pool)) | ||
- `vdc_group_id` (String) (ForceNew) The ID of vDC group that owns the network. Ensure that at least one attribute from this collection is set: [vdc_group_name,vdc_group_id]. | ||
- `vdc_group_name` (String) (ForceNew) The name of vDC group that owns the network. Ensure that at least one attribute from this collection is set: [vdc_group_name,vdc_group_id]. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of the isolated network. | ||
|
||
<a id="nestedatt--static_ip_pool"></a> | ||
### Nested Schema for `static_ip_pool` | ||
|
||
Required: | ||
|
||
- `end_address` (String) The end address of the IP pool. This value must be a valid IP address in the network IP range. Must be a valid IP with net.ParseIP. | ||
- `start_address` (String) The start address of the IP pool. This value must be a valid IP address in the network IP range. Must be a valid IP with net.ParseIP. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# VDC Network isolated can be imported using the VDC Groupe name or ID and the network name or ID. | ||
terraform import cloudavenue_vdcg_network_isolated.example vdcGroupNameOrId.networkNameOrId | ||
``` |
2 changes: 2 additions & 0 deletions
2
examples/resources/cloudavenue_vdcg_network_isolated/import.sh
This file contains 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,2 @@ | ||
# VDC Network isolated can be imported using the VDC Groupe name or ID and the network name or ID. | ||
terraform import cloudavenue_vdcg_network_isolated.example vdcGroupNameOrId.networkNameOrId |
11 changes: 11 additions & 0 deletions
11
examples/resources/cloudavenue_vdcg_network_isolated/resource.tf
This file contains 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,11 @@ | ||
resource "cloudavenue_vdcg_network_isolated" "example" { | ||
name = "my-isolated-network" | ||
vdc_group_name = cloudavenue_vdcg.example.name | ||
|
||
gateway = "192.168.0.1" | ||
prefix_length = 24 | ||
|
||
dns1 = "192.168.0.2" | ||
dns2 = "192.168.0.3" | ||
dns_suffix = "example.local" | ||
} |
This file contains 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 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 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 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
Oops, something went wrong.