-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CP-49724 Implement xenserver_network provider resource
Signed-off-by: Fei Su <[email protected]>
- Loading branch information
Showing
9 changed files
with
538 additions
and
1 deletion.
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
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,47 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "xenserver_network Resource - xenserver" | ||
subcategory: "" | ||
description: |- | ||
Network Resource | ||
--- | ||
|
||
# xenserver_network (Resource) | ||
|
||
Network Resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "xenserver_network" "network" { | ||
name_label = "Test VM Network" | ||
} | ||
output "network_out" { | ||
value = xenserver_network.network | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name_label` (String) The name of the virtual network | ||
|
||
### Optional | ||
|
||
- `name_description` (String) The description of the virtual network | ||
- `other_config` (Map of String) The additional configuration of the virtual network | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The UUID of the virtual network on xenserver | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import xenserver_network.network <xenserver_network.network.id> | ||
``` |
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 @@ | ||
terraform import xenserver_network.network <xenserver_network.network.id> |
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 @@ | ||
resource "xenserver_network" "network" { | ||
name_label = "Test VM Network" | ||
} | ||
|
||
output "network_out" { | ||
value = xenserver_network.network.id | ||
} |
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.