Skip to content

Commit

Permalink
Merge branch 'main' into 18-new-resource-vcd
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanars authored Feb 9, 2023
2 parents 3d64f52 + 3162dcd commit 1c2c6f6
Show file tree
Hide file tree
Showing 7 changed files with 449 additions and 1 deletion.
59 changes: 59 additions & 0 deletions docs/resources/edge_gateway.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "cloudavenue_edge_gateway Resource - cloudavenue"
subcategory: ""
description: |-
The Edge Gateway resource allows you to create and manage Edge Gateways in CloudAvenue.
---

# cloudavenue_edge_gateway (Resource)

The Edge Gateway resource allows you to create and manage Edge Gateways in CloudAvenue.

## Example Usage

```terraform
resource "cloudavenue_edge_gateway" "example" {
vdc_name = "VDC_Frangipane"
tier0_vrf_id = "vrf-1"
owner_type = "vdc"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `owner_name` (String) The name of the owner of the Edge Gateway.
- `owner_type` (String) The type of the owner of the Edge Gateway (vdc|vdc-group).
- `tier0_vrf_id` (String) The ID of the Tier0 VRF to which the Edge Gateway will be attached.

### Optional

- `enable_load_balancing` (Boolean)
- `timeouts` (Attributes) (see [below for nested schema](#nestedatt--timeouts))

### Read-Only

- `description` (String) The description of the Edge Gateway.
- `edge_id` (String) The ID of the Edge Gateway.
- `edge_name` (String) The name of the Edge Gateway.
- `id` (String) The ID of this resource.

<a id="nestedatt--timeouts"></a>
### Nested Schema for `timeouts`

Optional:

- `create` (String)
- `read` (String)

## Import

Import is supported using the following syntax:

```shell
# use the edge-id to import the edge gateway
terraform import cloudavenue_edge_gateway.example 12345678-1234-1234-1234-123456789012
```
2 changes: 2 additions & 0 deletions examples/resources/cloudavenue_edge_gateway/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# use the edge-id to import the edge gateway
terraform import cloudavenue_edge_gateway.example 12345678-1234-1234-1234-123456789012
5 changes: 5 additions & 0 deletions examples/resources/cloudavenue_edge_gateway/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resource "cloudavenue_edge_gateway" "example" {
vdc_name = "VDC_Frangipane"
tier0_vrf_id = "vrf-1"
owner_type = "vdc"
}
Loading

0 comments on commit 1c2c6f6

Please sign in to comment.