# equinix\_fabric\_service\_tokens (Data Source) Fabric V4 API compatible data resource that allow user to fetch service token for a given search data set Additional documentation: * Getting Started: * API: ## Example Usage[​](#example-usage "Direct link to Example Usage") ``` data "equinix_fabric_service_tokens" "service-tokens" { filter { property = "/type" operator = "=" values = "EVPL_VC" } filter { property = "/state" operator = "=" values = ["INACTIVE"] } pagination { offset = 0 limit = 5 total = 25 } } output "number_of_returned_service_tokens" { value = length(data.equinix_fabric_service_tokens.service-tokens.data) } output "first_service_token_id" { value = data.equinix_fabric_service_tokens.service-tokens.data.0.id } output "first_service_token_type" { value = data.equinix_fabric_service_tokens.service-tokens.data.0.type } output "first_service_token_expiration_date_time" { value = data.equinix_fabric_service_tokens.service-tokens.data.0.expiration_date_time } output "first_service_token_supported_bandwidths" { value = data.equinix_fabric_service_tokens.service-tokens.data.0.service_token_connection.0.supported_bandwidths } output "first_service_token_virtual_device_type" { value = data.equinix_fabric_service_tokens.service-tokens.data.0.service_token_connection.0.z_side.0.access_point_selectors.0.virtual_device.0.type } output "first_service_token_virtual_device_uuid" { value = data.equinix_fabric_service_tokens.service-tokens.data.0.service_token_connection.0.z_side.0.access_point_selectors.0.virtual_device.0.uuid } output "first_service_token_interface_type" { value = data.equinix_fabric_service_tokens.service-tokens.data.0.service_token_connection.0.z_side.0.access_point_selectors.0.interface.0.type } output "first_service_token_interface_uuid" { value = data.equinix_fabric_service_tokens.service-tokens.data.0.service_token_connection.0.z_side.0.access_point_selectors.0.interface.0.id } ``` ## Schema[​](#schema "Direct link to Schema") ### Required[​](#required "Direct link to Required") * `filter` (Block List, Min: 1, Max: 10) Filters for the Data Source Search Request (see [below for nested schema](#nestedblock--filter)) ### Optional[​](#optional "Direct link to Optional") * `pagination` (Block Set, Max: 1) Pagination details for the Data Source Search Request (see [below for nested schema](#nestedblock--pagination)) ### Read-Only[​](#read-only "Direct link to Read-Only") * `data` (List of Object) List of Service Tokens (see [below for nested schema](#nestedatt--data)) * `id` (String) The ID of this resource. []() ### Nested Schema for `filter`[​](#nested-schema-for-filter "Direct link to nested-schema-for-filter") Required: * `operator` (String) Possible operators to use on the filter property. Can be one of the following: \[ "=", "!=", "\[NOT] LIKE", "\[NOT] IN", "ILIKE" ] * `property` (String) The API response property which you want to filter your request on. Can be one of the following: "/type", "/name", "/project/projectId", "/uuid", "/state" * `values` (List of String) The values that you want to apply the property+operator combination to in order to filter your data search []() ### Nested Schema for `pagination`[​](#nested-schema-for-pagination "Direct link to nested-schema-for-pagination") Optional: * `limit` (Number) Number of elements to be requested per page. Number must be between 1 and 100. Default is 20 * `offset` (Number) The page offset for the pagination request. Index of the first element. Default is 0. * `total` (Number) Total number of elements returned. Read-Only: * `next` (String) URL relative to the last item in the response. * `previous` (String) URL relative to the first item in the response. []() ### Nested Schema for `data`[​](#nested-schema-for-data "Direct link to nested-schema-for-data") Read-Only: * `account` (Set of Object) (see [below for nested schema](#nestedobjatt--data--account)) * `change_log` (Set of Object) (see [below for nested schema](#nestedobjatt--data--change_log)) * `description` (String) * `expiration_date_time` (String) * `href` (String) * `issuer_side` (String) * `name` (String) * `notifications` (Set of Object) (see [below for nested schema](#nestedobjatt--data--notifications)) * `project` (Set of Object) (see [below for nested schema](#nestedobjatt--data--project)) * `service_token_connection` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection)) * `state` (String) * `type` (String) * `uuid` (String) []() ### Nested Schema for `data.account`[​](#nested-schema-for-dataaccount "Direct link to nested-schema-for-dataaccount") 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) []() ### Nested Schema for `data.change_log`[​](#nested-schema-for-datachange_log "Direct link to nested-schema-for-datachange_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) []() ### Nested Schema for `data.notifications`[​](#nested-schema-for-datanotifications "Direct link to nested-schema-for-datanotifications") Read-Only: * `emails` (List of String) * `send_interval` (String) * `type` (String) []() ### Nested Schema for `data.project`[​](#nested-schema-for-dataproject "Direct link to nested-schema-for-dataproject") Read-Only: * `href` (String) * `project_id` (String) []() ### Nested Schema for `data.service_token_connection`[​](#nested-schema-for-dataservice_token_connection "Direct link to nested-schema-for-dataservice_token_connection") Read-Only: * `a_side` (Set of Object) (see [below for nested schema](#nestedobjatt--data--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--data--service_token_connection--z_side)) []() ### Nested Schema for `data.service_token_connection.a_side`[​](#nested-schema-for-dataservice_token_connectiona_side "Direct link to nested-schema-for-dataservice_token_connectiona_side") Read-Only: * `access_point_selectors` (List of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--a_side--access_point_selectors)) []() ### Nested Schema for `data.service_token_connection.a_side.access_point_selectors`[​](#nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectors "Direct link to nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectors") Read-Only: * `interface` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--a_side--access_point_selectors--interface)) * `link_protocol` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--a_side--access_point_selectors--link_protocol)) * `network` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--a_side--access_point_selectors--network)) * `port` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--a_side--access_point_selectors--port)) * `type` (String) * `virtual_device` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--a_side--access_point_selectors--virtual_device)) []() ### Nested Schema for `data.service_token_connection.a_side.access_point_selectors.interface`[​](#nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorsinterface "Direct link to nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorsinterface") Read-Only: * `id` (Number) * `type` (String) * `uuid` (String) []() ### Nested Schema for `data.service_token_connection.a_side.access_point_selectors.link_protocol`[​](#nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorslink_protocol "Direct link to nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorslink_protocol") Read-Only: * `type` (String) * `vlan_c_tag` (Number) * `vlan_s_tag` (Number) * `vlan_tag` (Number) []() ### Nested Schema for `data.service_token_connection.a_side.access_point_selectors.network`[​](#nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorsnetwork "Direct link to nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorsnetwork") Read-Only: * `href` (String) * `location` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--a_side--access_point_selectors--network--location)) * `name` (String) * `scope` (String) * `type` (String) * `uuid` (String) []() ### Nested Schema for `data.service_token_connection.a_side.access_point_selectors.network.location`[​](#nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorsnetworklocation "Direct link to nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorsnetworklocation") Read-Only: * `ibx` (String) * `metro_code` (String) * `metro_name` (String) * `region` (String) []() ### Nested Schema for `data.service_token_connection.a_side.access_point_selectors.port`[​](#nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorsport "Direct link to nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorsport") 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--data--service_token_connection--a_side--access_point_selectors--port--location)) * `port_name` (String) * `priority` (String) * `type` (String) * `uuid` (String) []() ### Nested Schema for `data.service_token_connection.a_side.access_point_selectors.port.location`[​](#nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorsportlocation "Direct link to nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorsportlocation") Read-Only: * `ibx` (String) * `metro_code` (String) * `metro_name` (String) * `region` (String) []() ### Nested Schema for `data.service_token_connection.a_side.access_point_selectors.virtual_device`[​](#nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorsvirtual_device "Direct link to nested-schema-for-dataservice_token_connectiona_sideaccess_point_selectorsvirtual_device") Read-Only: * `cluster` (String) * `href` (String) * `name` (String) * `type` (String) * `uuid` (String) []() ### Nested Schema for `data.service_token_connection.z_side`[​](#nested-schema-for-dataservice_token_connectionz_side "Direct link to nested-schema-for-dataservice_token_connectionz_side") Read-Only: * `access_point_selectors` (List of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--z_side--access_point_selectors)) []() ### Nested Schema for `data.service_token_connection.z_side.access_point_selectors`[​](#nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectors "Direct link to nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectors") Read-Only: * `interface` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--z_side--access_point_selectors--interface)) * `link_protocol` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--z_side--access_point_selectors--link_protocol)) * `network` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--z_side--access_point_selectors--network)) * `port` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--z_side--access_point_selectors--port)) * `type` (String) * `virtual_device` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--z_side--access_point_selectors--virtual_device)) []() ### Nested Schema for `data.service_token_connection.z_side.access_point_selectors.interface`[​](#nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorsinterface "Direct link to nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorsinterface") Read-Only: * `id` (Number) * `type` (String) * `uuid` (String) []() ### Nested Schema for `data.service_token_connection.z_side.access_point_selectors.link_protocol`[​](#nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorslink_protocol "Direct link to nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorslink_protocol") Read-Only: * `type` (String) * `vlan_c_tag` (Number) * `vlan_s_tag` (Number) * `vlan_tag` (Number) []() ### Nested Schema for `data.service_token_connection.z_side.access_point_selectors.network`[​](#nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorsnetwork "Direct link to nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorsnetwork") Read-Only: * `href` (String) * `location` (Set of Object) (see [below for nested schema](#nestedobjatt--data--service_token_connection--z_side--access_point_selectors--network--location)) * `name` (String) * `scope` (String) * `type` (String) * `uuid` (String) []() ### Nested Schema for `data.service_token_connection.z_side.access_point_selectors.network.location`[​](#nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorsnetworklocation "Direct link to nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorsnetworklocation") Read-Only: * `ibx` (String) * `metro_code` (String) * `metro_name` (String) * `region` (String) []() ### Nested Schema for `data.service_token_connection.z_side.access_point_selectors.port`[​](#nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorsport "Direct link to nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorsport") 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--data--service_token_connection--z_side--access_point_selectors--port--location)) * `port_name` (String) * `priority` (String) * `type` (String) * `uuid` (String) []() ### Nested Schema for `data.service_token_connection.z_side.access_point_selectors.port.location`[​](#nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorsportlocation "Direct link to nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorsportlocation") Read-Only: * `ibx` (String) * `metro_code` (String) * `metro_name` (String) * `region` (String) []() ### Nested Schema for `data.service_token_connection.z_side.access_point_selectors.virtual_device`[​](#nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorsvirtual_device "Direct link to nested-schema-for-dataservice_token_connectionz_sideaccess_point_selectorsvirtual_device") Read-Only: * `cluster` (String) * `href` (String) * `name` (String) * `type` (String) * `uuid` (String)