-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(virtual_network): add virtual network resource
- Loading branch information
Showing
15 changed files
with
2,028 additions
and
130 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,45 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "katapult_virtual_network Resource - terraform-provider-katapult" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# katapult_virtual_network (Resource) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Create virtual network | ||
resource "katapult_virtual_network" "backbone" { | ||
name = "Backbone" | ||
} | ||
# Create a virtual network in a specific Data Center. | ||
data "katapult_data_center" "ams" { | ||
permalink = "nl-ams-01" | ||
} | ||
resource "katapult_virtual_network" "backbone-ams" { | ||
name = "Backbone AMS" | ||
data_center_id = data.katapult_data_center.ams.id | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) | ||
|
||
### Optional | ||
|
||
- `data_center_id` (String) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. |
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,14 @@ | ||
# Create virtual network | ||
resource "katapult_virtual_network" "backbone" { | ||
name = "Backbone" | ||
} | ||
|
||
# Create a virtual network in a specific Data Center. | ||
data "katapult_data_center" "ams" { | ||
permalink = "nl-ams-01" | ||
} | ||
|
||
resource "katapult_virtual_network" "backbone-ams" { | ||
name = "Backbone AMS" | ||
data_center_id = data.katapult_data_center.ams.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
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.