Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Updating Service Token Resource for network based token #833

Merged
merged 6 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 52 additions & 27 deletions docs/resources/fabric_service_token.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Additional documentation:
Aside Port Service Token
```terraform
resource "equinix_fabric_service_token" "test" {
type = "VC_TOKEN"
description = "Aside COLO Service Token"
type = "VC_TOKEN"
description = "Aside COLO Service Token"
expiration_date_time = "2025-01-18T06:43:49.981Z"
service_token_connection {
type = "EVPL_VC"
Expand Down Expand Up @@ -44,8 +44,8 @@ resource "equinix_fabric_service_token" "test" {
Zside Port Service Token
```terraform
resource "equinix_fabric_service_token" "test"{
type = "VC_TOKEN"
description = "Zside COLO Service Token"
type = "VC_TOKEN"
description = "Zside COLO Service Token"
expiration_date_time = "2025-01-18T06:43:49.981Z"
service_token_connection {
type = "EVPL_VC"
Expand All @@ -70,11 +70,36 @@ resource "equinix_fabric_service_token" "test"{
}
```

Zside Network Service Token
```terraform
resource "equinix_fabric_service_token" "test" {
type = "VC_TOKEN"
description = "Zside Network Service Token"
expiration_date_time = "2025-01-18T06:43:49.986Z"
service_token_connection {
type = "EVPL_VC"
supported_bandwidths = [50, 200, 10000]
z_side {
access_point_selectors {
type = "NETWORK"
network {
uuid = "<network_uuid>"
}
}
}
}
notifications {
type = "ALL"
emails = ["[email protected]"]
}
}
```

Zside Virtual Device Service Token
```terraform
resource "equinix_fabric_service_token" "test" {
type = "VC_TOKEN"
description = "Zside VD Service Token"
description = "Zside VD Service Token"
expiration_date_time = "2025-01-18T06:43:49.986Z"
service_token_connection {
type = "EVPL_VC"
Expand Down Expand Up @@ -206,27 +231,27 @@ Optional:
<a id="nestedblock--service_token_connection--a_side--access_point_selectors--network"></a>
### Nested Schema for `service_token_connection.a_side.access_point_selectors.network`

Optional:
Required:

- `location` (Block Set) Location (see [below for nested schema](#nestedblock--service_token_connection--a_side--access_point_selectors--network--location))
- `name` (String) Network Name
- `scope` (String) Scope of Network
- `type` (String) Type of Network
- `uuid` (String) Equinix-assigned Network identifier

Read-Only:

- `href` (String) Unique Resource Identifier
- `location` (Set of Object) Location (see [below for nested schema](#nestedatt--service_token_connection--a_side--access_point_selectors--network--location))
- `name` (String) Network Name
- `scope` (String) Scope of Network
- `type` (String) Type of Network

<a id="nestedblock--service_token_connection--a_side--access_point_selectors--network--location"></a>
<a id="nestedatt--service_token_connection--a_side--access_point_selectors--network--location"></a>
### Nested Schema for `service_token_connection.a_side.access_point_selectors.network.location`

Optional:
Read-Only:

- `ibx` (String) IBX Code
- `metro_code` (String) Access point metro code
- `metro_name` (String) Access point metro name
- `region` (String) Access point region
- `ibx` (String)
- `metro_code` (String)
- `metro_name` (String)
- `region` (String)



Expand Down Expand Up @@ -330,27 +355,27 @@ Optional:
<a id="nestedblock--service_token_connection--z_side--access_point_selectors--network"></a>
### Nested Schema for `service_token_connection.z_side.access_point_selectors.network`

Optional:
Required:

- `location` (Block Set) Location (see [below for nested schema](#nestedblock--service_token_connection--z_side--access_point_selectors--network--location))
- `name` (String) Network Name
- `scope` (String) Scope of Network
- `type` (String) Type of Network
- `uuid` (String) Equinix-assigned Network identifier

Read-Only:

- `href` (String) Unique Resource Identifier
- `location` (Set of Object) Location (see [below for nested schema](#nestedatt--service_token_connection--z_side--access_point_selectors--network--location))
- `name` (String) Network Name
- `scope` (String) Scope of Network
- `type` (String) Type of Network

<a id="nestedblock--service_token_connection--z_side--access_point_selectors--network--location"></a>
<a id="nestedatt--service_token_connection--z_side--access_point_selectors--network--location"></a>
### Nested Schema for `service_token_connection.z_side.access_point_selectors.network.location`

Optional:
Read-Only:

- `ibx` (String) IBX Code
- `metro_code` (String) Access point metro code
- `metro_name` (String) Access point metro name
- `region` (String) Access point region
- `ibx` (String)
- `metro_code` (String)
- `metro_name` (String)
- `region` (String)



Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "equinix_fabric_service_token" "test" {
type = "VC_TOKEN"
description = "Aside COLO Service Token"
type = "VC_TOKEN"
description = "Aside COLO Service Token"
expiration_date_time = "2025-01-18T06:43:49.981Z"
service_token_connection {
type = "EVPL_VC"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "equinix_fabric_service_token" "test"{
type = "VC_TOKEN"
description = "Zside COLO Service Token"
type = "VC_TOKEN"
description = "Zside COLO Service Token"
expiration_date_time = "2025-01-18T06:43:49.981Z"
service_token_connection {
type = "EVPL_VC"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
resource "equinix_fabric_service_token" "test" {
type = "VC_TOKEN"
description = "Zside Network Service Token"
expiration_date_time = "2025-01-18T06:43:49.986Z"
service_token_connection {
type = "EVPL_VC"
supported_bandwidths = [50, 200, 10000]
z_side {
access_point_selectors {
type = "NETWORK"
network {
uuid = "<network_uuid>"
}
}
}
}
notifications {
type = "ALL"
emails = ["[email protected]"]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "equinix_fabric_service_token" "test" {
type = "VC_TOKEN"
description = "Zside VD Service Token"
description = "Zside VD Service Token"
expiration_date_time = "2025-01-18T06:43:49.986Z"
service_token_connection {
type = "EVPL_VC"
Expand Down
Loading
Loading