-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding Marketplace Subscription capability to Fabric Cloud Rout…
…er Resource (#762) - Added marketplace_subscription schema to fabric_cloud_router resource - Marked 'account' schema as optional and computed because this parameter is optional while creating Fabric Cloud Router using Marketplace Subscription id.
- Loading branch information
Showing
7 changed files
with
187 additions
and
13 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
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ Additional documentation: | |
|
||
## Example Usage | ||
|
||
Fabric Cloud Router | ||
```terraform | ||
resource "equinix_fabric_cloud_router" "new_cloud_router"{ | ||
name = "Router-SV" | ||
|
@@ -38,12 +39,39 @@ resource "equinix_fabric_cloud_router" "new_cloud_router"{ | |
} | ||
``` | ||
|
||
Fabric Cloud Router with Marketplace Subscription id | ||
```terraform | ||
resource "equinix_fabric_cloud_router" "new_cloud_router"{ | ||
name = "Router-SV" | ||
type = "XF_ROUTER" | ||
notifications{ | ||
type = "ALL" | ||
emails = ["[email protected]","[email protected]"] | ||
} | ||
order { | ||
purchase_order_number = "1-323292" | ||
} | ||
location { | ||
metro_code = "SV" | ||
} | ||
package { | ||
code = "STANDARD" | ||
} | ||
project { | ||
project_id = "776847000642406" | ||
} | ||
marketplace_subscription { | ||
type = "AWS_MARKETPLACE_SUBSCRIPTION" | ||
uuid = "2823b8ae07-a2a2-45b4-a658-c3542bb24e9" | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `account` (Block Set, Min: 1, Max: 1) Customer account information that is associated with this Fabric Cloud Router (see [below for nested schema](#nestedblock--account)) | ||
- `location` (Block Set, Min: 1, Max: 1) Fabric Cloud Router location (see [below for nested schema](#nestedblock--location)) | ||
- `name` (String) Fabric Cloud Router name. An alpha-numeric 24 characters string which can include only hyphens and underscores | ||
- `notifications` (Block List, Min: 1) Preferences for notifications on Fabric Cloud Router configuration or status changes (see [below for nested schema](#nestedblock--notifications)) | ||
|
@@ -53,8 +81,10 @@ resource "equinix_fabric_cloud_router" "new_cloud_router"{ | |
|
||
### Optional | ||
|
||
- `account` (Block Set, Max: 1) Customer account information that is associated with this Fabric Cloud Router (see [below for nested schema](#nestedblock--account)) | ||
- `description` (String) Customer-provided Fabric Cloud Router description | ||
- `href` (String) Fabric Cloud Router URI information | ||
- `marketplace_subscription` (Block Set, Max: 1) Equinix Fabric Entity for Marketplace Subscription (see [below for nested schema](#nestedblock--marketplace_subscription)) | ||
- `order` (Block Set, Max: 1) Order information related to this Fabric Cloud Router (see [below for nested schema](#nestedblock--order)) | ||
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) | ||
- `uuid` (String) Equinix-assigned Fabric Cloud Router identifier | ||
|
@@ -71,14 +101,6 @@ resource "equinix_fabric_cloud_router" "new_cloud_router"{ | |
- `id` (String) The ID of this resource. | ||
- `state` (String) Fabric Cloud Router overall state | ||
|
||
<a id="nestedblock--account"></a> | ||
### Nested Schema for `account` | ||
|
||
Optional: | ||
|
||
- `account_number` (Number) Account Number | ||
|
||
|
||
<a id="nestedblock--location"></a> | ||
### Nested Schema for `location` | ||
|
||
|
@@ -120,6 +142,26 @@ Optional: | |
- `project_id` (String) Project Id | ||
|
||
|
||
<a id="nestedblock--account"></a> | ||
### Nested Schema for `account` | ||
|
||
Required: | ||
|
||
- `account_number` (Number) Account Number | ||
|
||
|
||
<a id="nestedblock--marketplace_subscription"></a> | ||
### Nested Schema for `marketplace_subscription` | ||
|
||
Required: | ||
|
||
- `uuid` (String) Equinix-assigned Marketplace Subscription identifier | ||
|
||
Optional: | ||
|
||
- `type` (String) Marketplace Subscription type like; AWS_MARKETPLACE_SUBSCRIPTION | ||
|
||
|
||
<a id="nestedblock--order"></a> | ||
### Nested Schema for `order` | ||
|
||
|
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
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
examples/resources/equinix_fabric_cloud_router/example_2.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,24 @@ | ||
resource "equinix_fabric_cloud_router" "new_cloud_router"{ | ||
name = "Router-SV" | ||
type = "XF_ROUTER" | ||
notifications{ | ||
type = "ALL" | ||
emails = ["[email protected]","[email protected]"] | ||
} | ||
order { | ||
purchase_order_number = "1-323292" | ||
} | ||
location { | ||
metro_code = "SV" | ||
} | ||
package { | ||
code = "STANDARD" | ||
} | ||
project { | ||
project_id = "776847000642406" | ||
} | ||
marketplace_subscription { | ||
type = "AWS_MARKETPLACE_SUBSCRIPTION" | ||
uuid = "2823b8ae07-a2a2-45b4-a658-c3542bb24e9" | ||
} | ||
} |
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,25 @@ | ||
--- | ||
subcategory: "Fabric" | ||
--- | ||
|
||
{{/* This template serves as a starting point for documentation generation, and can be customized with hardcoded values and/or doc gen templates. | ||
|
||
For example, the {{ .SchemaMarkdown }} template can be used to replace manual schema documentation if descriptions of schema attributes are added in the provider source code. */ -}} | ||
|
||
# equinix_fabric_cloud_router (Resource) | ||
|
||
Fabric V4 API compatible resource allows creation and management of [Equinix Fabric Cloud Router](https://docs.equinix.com/en-us/Content/Interconnection/FCR/FCR-intro.htm#HowItWorks). | ||
|
||
Additional documentation: | ||
* Getting Started: https://docs.equinix.com/en-us/Content/Interconnection/FCR/FCR-intro.htm#HowItWorks | ||
* API: https://developer.equinix.com/dev-docs/fabric/api-reference/fabric-v4-apis#fabric-cloud-routers | ||
|
||
## Example Usage | ||
|
||
Fabric Cloud Router | ||
{{tffile "examples/resources/equinix_fabric_cloud_router/example_1.tf"}} | ||
|
||
Fabric Cloud Router with Marketplace Subscription id | ||
{{tffile "examples/resources/equinix_fabric_cloud_router/example_2.tf"}} | ||
|
||
{{ .SchemaMarkdown | trimspace }} |