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: <CXF 100797> Adding fabric service token resource and data source #805

Merged
merged 41 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift click to select a range
a9f4995
feat: Adding Fabric Service Token Resource and Data Source
srushti-patl Oct 16, 2024
f331f32
fix: Updating Service Token Resource & Data source
srushti-patl Oct 23, 2024
ee1f435
force new VRF if metro or project ID changes
ctreatma Sep 30, 2024
faf45b1
feat: Add BGP Metrics fields for fabric cloud router routing protocol…
thogarty Oct 8, 2024
99cd65d
feat: Nfv 29975 - make ssh public key name optional in Create Virtual…
kpdhulipala Oct 11, 2024
f2f6994
feat: fabric resource connection_route_filter (#795)
thogarty Oct 14, 2024
905bb85
fix: Update Fabric Terraform Resources and Data sources for latest Fa…
thogarty Oct 21, 2024
7d94286
feat: Update docs for New device type - "Aviatrix Transit Edge" under…
kpdhulipala Oct 21, 2024
1805f8d
feat: Add optional attribute tier in Create Virtual Device request fo…
kpdhulipala Oct 23, 2024
0206851
refactor: finish removing packngo from metal_port code (#789)
ctreatma Oct 23, 2024
51708f2
feat: Adding Fabric Service Token Resource and Data Source
srushti-patl Oct 16, 2024
ed4acc0
feat: Adding doc changes for Service Token resource and data sources
srushti-patl Oct 28, 2024
6ab8a37
feat: Adding Fabric Service Token Resource and Data Source
srushti-patl Oct 16, 2024
760e9c2
fix: Updating Service Token Resource & Data source
srushti-patl Oct 23, 2024
66465a0
feat: Adding Fabric Service Token Resource and Data Source
srushti-patl Oct 16, 2024
0f1e42a
feat: Adding doc changes for Service Token resource and data sources
srushti-patl Oct 28, 2024
0496204
Merge remote-tracking branch 'origin/CXF-100797-Service-Token-Resourc…
srushti-patl Oct 28, 2024
e1d0418
chore: allow teams to add/remove resources & data sources (#797)
ctreatma Oct 28, 2024
7678db7
fix: Updating Service Token Resource & Data source
srushti-patl Oct 23, 2024
1e18a1e
feat: fabric resource connection_route_filter (#795)
thogarty Oct 14, 2024
133f027
feat: Update docs for New device type - "Aviatrix Transit Edge" under…
kpdhulipala Oct 21, 2024
83f3bd1
feat: Add optional attribute tier in Create Virtual Device request fo…
kpdhulipala Oct 23, 2024
ac17fea
feat: Adding Fabric Service Token Resource and Data Source
srushti-patl Oct 16, 2024
2945ceb
feat: Adding Fabric Service Token Resource and Data Source
srushti-patl Oct 16, 2024
7cf4a23
fix: Updating Service Token Resource & Data source
srushti-patl Oct 23, 2024
c5d28f5
feat: Adding Fabric Service Token Resource and Data Source
srushti-patl Oct 16, 2024
96c34c2
feat: Adding doc changes for Service Token resource and data sources
srushti-patl Oct 28, 2024
4e22364
fix: Updating Service Token Resource & Data source
srushti-patl Oct 23, 2024
74452bc
feat: Adding Fabric Service Token Resource and Data Source
srushti-patl Oct 16, 2024
db7320b
chore: allow teams to add/remove resources & data sources (#797)
ctreatma Oct 28, 2024
19caaf1
fix: Updating Service Token Resource & Data source
srushti-patl Oct 23, 2024
6b61a43
feat: fabric resource connection_route_filter (#795)
thogarty Oct 14, 2024
b780ddf
feat: Update docs for New device type - "Aviatrix Transit Edge" under…
kpdhulipala Oct 21, 2024
4f91dcb
feat: Add optional attribute tier in Create Virtual Device request fo…
kpdhulipala Oct 23, 2024
9a70727
feat: Adding Fabric Service Token Resource and Data Source
srushti-patl Oct 16, 2024
ef41934
Merge remote-tracking branch 'origin/CXF-100797-Service-Token-Resourc…
srushti-patl Oct 28, 2024
190bbd4
fix: Adding service token resource and data source to fabric provider…
srushti-patl Oct 28, 2024
013c1ae
fix: Adding CustomizeDiff function
srushti-patl Oct 30, 2024
8881b77
fix: Resolving lint errors!
srushti-patl Oct 31, 2024
a07c062
fix: Updating model method to fix terraform plan update issue
srushti-patl Oct 31, 2024
1fa9dac
Merge branch 'main' into CXF-100797-Service-Token-Resource
srushti-patl Oct 31, 2024
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
350 changes: 350 additions & 0 deletions docs/data-sources/fabric_service_token.md
Original file line number Diff line number Diff line change
@@ -0,0 1,350 @@
---
subcategory: "Fabric"
---

# equinix_fabric_service_token (Data Source)

Fabric V4 API compatible data resource that allow user to fetch service token for a given UUID

Additional documentation:
* Getting Started: https://docs.equinix.com/en-us/Content/Interconnection/Fabric/service tokens/Fabric-Service-Tokens.htm
* API: https://docs.equinix.com/en-us/Content/KnowledgeCenter/Fabric/GettingStarted/Integrating-with-Fabric-V4-APIs/ConnectUsingServiceToken.htm

## Example Usage

```terraform
data "equinix_fabric_service_token" "service-token" {
uuid = "<uuid_of_service_token>"
}

output "id" {
value = data.equinix_fabric_service_token.service-token.id
}

output "type" {
value = data.equinix_fabric_service_token.service-token.type
}

output "expiration_date_time" {
value = data.equinix_fabric_service_token.service-token.expiration_date_time
}

output "supported_bandwidths" {
value = data.equinix_fabric_service_token.service-token.service_token_connection.0.supported_bandwidths
}

output "virtual_device_type" {
value = data.equinix_fabric_service_token.service-token.service_token_connection.0.z_side.0.access_point_selectors.0.virtual_device.0.type
}

output "virtual_device_uuid" {
value = data.equinix_fabric_service_token.service-token.service_token_connection.0.z_side.0.access_point_selectors.0.virtual_device.0.uuid
}

output "interface_type" {
value = data.equinix_fabric_service_token.service-token.service_token_connection.0.z_side.0.access_point_selectors.0.interface.0.type
}

output "interface_uuid" {
value = data.equinix_fabric_service_token.service-token.service_token_connection.0.z_side.0.access_point_selectors.0.interface.0.id
}
```

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

### Required

- `uuid` (String) Equinix-assigned service token identifier

### Read-Only

- `account` (Set of Object) Customer account information that is associated with this service token (see [below for nested schema](#nestedatt--account))
- `change_log` (Set of Object) Captures connection lifecycle change information (see [below for nested schema](#nestedatt--change_log))
- `description` (String) Optional Description to the Service Token you will be creating
- `expiration_date_time` (String) Expiration date and time of the service token; 2020-11-06T07:00:00Z
- `href` (String) An absolute URL that is the subject of the link's context.
- `id` (String) The ID of this resource.
- `issuer_side` (String) Information about token side; ASIDE, ZSIDE
- `name` (String) Name of the Service Token
- `notifications` (Set of Object) Preferences for notifications on Service Token configuration or status changes (see [below for nested schema](#nestedatt--notifications))
- `project` (Set of Object) Project information (see [below for nested schema](#nestedatt--project))
- `service_token_connection` (Set of Object) Service Token Connection Type Information (see [below for nested schema](#nestedatt--service_token_connection))
- `state` (String) Service token state; ACTIVE, INACTIVE, EXPIRED, DELETED
- `type` (String) Service Token Type; VC_TOKEN,EPL_TOKEN

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

Read-Only:

- `account_name` (String)
- `account_number` (Number)
- `global_cust_id` (String)
- `global_org_id` (String)
- `global_organization_name` (String)
- `org_id` (Number)
- `organization_name` (String)
- `ucm_id` (String)


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

Read-Only:

- `created_by` (String)
- `created_by_email` (String)
- `created_by_full_name` (String)
- `created_date_time` (String)
- `deleted_by` (String)
- `deleted_by_email` (String)
- `deleted_by_full_name` (String)
- `deleted_date_time` (String)
- `updated_by` (String)
- `updated_by_email` (String)
- `updated_by_full_name` (String)
- `updated_date_time` (String)


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

Read-Only:

- `emails` (List of String)
- `send_interval` (String)
- `type` (String)


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

Read-Only:

- `href` (String)
- `project_id` (String)


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

Read-Only:

- `a_side` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--a_side))
- `allow_custom_bandwidth` (Boolean)
- `allow_remote_connection` (Boolean)
- `bandwidth_limit` (Number)
- `supported_bandwidths` (List of Number)
- `type` (String)
- `uuid` (String)
- `z_side` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--z_side))

<a id="nestedobjatt--service_token_connection--a_side"></a>
### Nested Schema for `service_token_connection.a_side`

Read-Only:

- `access_point_selectors` (List of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--a_side--access_point_selectors))

<a id="nestedobjatt--service_token_connection--a_side--access_point_selectors"></a>
### Nested Schema for `service_token_connection.a_side.access_point_selectors`

Read-Only:

- `interface` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--a_side--access_point_selectors--interface))
- `link_protocol` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--a_side--access_point_selectors--link_protocol))
- `network` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--a_side--access_point_selectors--network))
- `port` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--a_side--access_point_selectors--port))
- `type` (String)
- `virtual_device` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--a_side--access_point_selectors--virtual_device))

<a id="nestedobjatt--service_token_connection--a_side--access_point_selectors--interface"></a>
### Nested Schema for `service_token_connection.a_side.access_point_selectors.interface`

Read-Only:

- `id` (Number)
- `type` (String)
- `uuid` (String)


<a id="nestedobjatt--service_token_connection--a_side--access_point_selectors--link_protocol"></a>
### Nested Schema for `service_token_connection.a_side.access_point_selectors.link_protocol`

Read-Only:

- `type` (String)
- `vlan_c_tag` (Number)
- `vlan_s_tag` (Number)
- `vlan_tag` (Number)


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

Read-Only:

- `href` (String)
- `location` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--a_side--access_point_selectors--network--location))
- `name` (String)
- `scope` (String)
- `type` (String)
- `uuid` (String)

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

Read-Only:

- `ibx` (String)
- `metro_code` (String)
- `metro_name` (String)
- `region` (String)



<a id="nestedobjatt--service_token_connection--a_side--access_point_selectors--port"></a>
### Nested Schema for `service_token_connection.a_side.access_point_selectors.port`

Read-Only:

- `account_name` (String)
- `bandwidth` (Number)
- `cvp_id` (Number)
- `encapsulation_protocol_type` (String)
- `href` (String)
- `location` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--a_side--access_point_selectors--port--location))
- `port_name` (String)
- `priority` (String)
- `type` (String)
- `uuid` (String)

<a id="nestedobjatt--service_token_connection--a_side--access_point_selectors--port--location"></a>
### Nested Schema for `service_token_connection.a_side.access_point_selectors.port.location`

Read-Only:

- `ibx` (String)
- `metro_code` (String)
- `metro_name` (String)
- `region` (String)



<a id="nestedobjatt--service_token_connection--a_side--access_point_selectors--virtual_device"></a>
### Nested Schema for `service_token_connection.a_side.access_point_selectors.virtual_device`

Read-Only:

- `cluster` (String)
- `href` (String)
- `name` (String)
- `type` (String)
- `uuid` (String)




<a id="nestedobjatt--service_token_connection--z_side"></a>
### Nested Schema for `service_token_connection.z_side`

Read-Only:

- `access_point_selectors` (List of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--z_side--access_point_selectors))

<a id="nestedobjatt--service_token_connection--z_side--access_point_selectors"></a>
### Nested Schema for `service_token_connection.z_side.access_point_selectors`

Read-Only:

- `interface` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--z_side--access_point_selectors--interface))
- `link_protocol` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--z_side--access_point_selectors--link_protocol))
- `network` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--z_side--access_point_selectors--network))
- `port` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--z_side--access_point_selectors--port))
- `type` (String)
- `virtual_device` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--z_side--access_point_selectors--virtual_device))

<a id="nestedobjatt--service_token_connection--z_side--access_point_selectors--interface"></a>
### Nested Schema for `service_token_connection.z_side.access_point_selectors.interface`

Read-Only:

- `id` (Number)
- `type` (String)
- `uuid` (String)


<a id="nestedobjatt--service_token_connection--z_side--access_point_selectors--link_protocol"></a>
### Nested Schema for `service_token_connection.z_side.access_point_selectors.link_protocol`

Read-Only:

- `type` (String)
- `vlan_c_tag` (Number)
- `vlan_s_tag` (Number)
- `vlan_tag` (Number)


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

Read-Only:

- `href` (String)
- `location` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--z_side--access_point_selectors--network--location))
- `name` (String)
- `scope` (String)
- `type` (String)
- `uuid` (String)

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

Read-Only:

- `ibx` (String)
- `metro_code` (String)
- `metro_name` (String)
- `region` (String)



<a id="nestedobjatt--service_token_connection--z_side--access_point_selectors--port"></a>
### Nested Schema for `service_token_connection.z_side.access_point_selectors.port`

Read-Only:

- `account_name` (String)
- `bandwidth` (Number)
- `cvp_id` (Number)
- `encapsulation_protocol_type` (String)
- `href` (String)
- `location` (Set of Object) (see [below for nested schema](#nestedobjatt--service_token_connection--z_side--access_point_selectors--port--location))
- `port_name` (String)
- `priority` (String)
- `type` (String)
- `uuid` (String)

<a id="nestedobjatt--service_token_connection--z_side--access_point_selectors--port--location"></a>
### Nested Schema for `service_token_connection.z_side.access_point_selectors.port.location`

Read-Only:

- `ibx` (String)
- `metro_code` (String)
- `metro_name` (String)
- `region` (String)



<a id="nestedobjatt--service_token_connection--z_side--access_point_selectors--virtual_device"></a>
### Nested Schema for `service_token_connection.z_side.access_point_selectors.virtual_device`

Read-Only:

- `cluster` (String)
- `href` (String)
- `name` (String)
- `type` (String)
- `uuid` (String)
Loading
Loading