Skip to content

Commit

Permalink
feat: Updating Service Token Resource for network based token (#833)
Browse files Browse the repository at this point in the history
- Updated Service Token Resource Schema and Model
- Updated docs for Service Token to add zside Network based token
  • Loading branch information
srushti-patl authored Dec 23, 2024
2 parents d83c123 + 53091c3 commit 673e6d8
Show file tree
Hide file tree
Showing 10 changed files with 328 additions and 121 deletions.
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

0 comments on commit 673e6d8

Please sign in to comment.