# equinix\_fabric\_service\_tokens(データソース) ユーザーが指定された検索データセットのサービストークンをフェッチすることを可能にするAPI互換ファブリックV4データリソース 追加ドキュメント * はじめに: * API: ## 使用例 ``` 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 } ``` ## スキーマ ### 必須 * `filter` (ブロックリスト、最小値: 1、最大値: 10) データソース検索リクエストのフィルター (入れ子になったスキーマは以下を参照]\(#nestedblock--filter)) ### オプション * `pagination` (ブロックセット、最大: 1) データソース検索リクエストのページネーションの詳細 (入れ子になったスキーマは以下を参照]\(#nestedblock--pagination)) ### 読み取り専用 * `data` (オブジェクトのリスト) サービス・トークンのリスト (入れ子になったスキーマは以下を参照]\(#nestedatt--data)) * `id` (文字列) このリソースの ID。 []() ### `filter`の入れ子スキーマ 必須 * `operator` (文字列) filter プロパティで使用可能な演算子。以下のいずれかを指定で きます:\[" =", "!=", "\[not] like", "\[not] in", "ilike" ]。 * `property` (文字列) 要求を フ ィ ル タ し たい API 応答プ ロパテ ィ 。以下のいずれかを指定します:"/type", "/name", "/project/projectId", "/uuid", "/state" のいずれかです。 * `values` (文字列の リ ス ト ) デー タ 検索を フ ィ ル タ す る ためにプ ロパテ ィ + オペレー タ の組み合わせを適用 し たい値。 []() ### `pagination`の入れ子スキーマ オプション * `limit` (数) ページ ご と に要求 さ せたい要素の数。数値は 1 以上 100 以下の間でなければな り ません。デ フ ォル ト は 20 です。 * `offset` (数値) ページ化要求のページオ フ セ ッ ト 。最初の要素の イ ンデ ッ ク ス。デ フ ォル ト は 0。 * `total` (Number) 返された要素の総数。 読み取り専用: * `next` (String) レスポンスの最後の項目からの相対 URL。 * `previous` (String) レスポンスの最初の項目からの相対 URL。 []() ### `data`の入れ子スキーマ 読み取り専用: * `account` (オブジェクトのセット) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--account)) * `change_log` (オブジェクトの集合) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--change\_log)) * `description` (文字列) * `expiration_date_time` (文字列) * `href` (文字列) * `issuer_side` (文字列) * `name` (文字列) * `notifications` (オブジェクトのセット) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--notifications)) * `project` (オブジェクトの集合) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--project)) * `service_token_connection` (オブジェクトのセット) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--service\_token\_connection)) * `state` (文字列) * `type` (文字列) * `uuid` (文字列) []() ### `data.account`の入れ子スキーマ 読み取り専用: * `account_name` (文字列) * `account_number` (番号) * `global_cust_id` (文字列) * `global_org_id` (文字列) * `global_organization_name` (文字列) * `org_id` (番号) * `organization_name` (文字列) * `ucm_id` (文字列) []() ### `data.change_log`の入れ子スキーマ 読み取り専用: * `created_by` (文字列) * `created_by_email` (文字列) * `created_by_full_name` (文字列) * `created_date_time` (文字列) * `deleted_by` (文字列) * `deleted_by_email` (文字列) * `deleted_by_full_name` (文字列) * `deleted_date_time` (文字列) * `updated_by` (文字列) * `updated_by_email` (文字列) * `updated_by_full_name` (文字列) * `updated_date_time` (文字列) []() ### `data.notifications`の入れ子スキーマ 読み取り専用: * `emails` (文字列のリスト) * `send_interval` (文字列) * `type` (文字列) []() ### `data.project`の入れ子スキーマ 読み取り専用: * `href` (文字列) * `project_id` (文字列) []() ### `data.service_token_connection`の入れ子スキーマ 読み取り専用: * `a_side` (オブジェクトのセット) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--service\_token\_connection--a\_side)) * `allow_custom_bandwidth` (ブール値) * `allow_remote_connection` (ブール値) * `bandwidth_limit` (番号) * `supported_bandwidths` (番号のリスト) * `type` (文字列) * `uuid` (文字列) * `z_side` (オブジェクトのセット) (入れ子になったスキーマは下記参照)(#nestedobjatt--data--service\_token\_connection--z\_side)) []() ### `data.service_token_connection.a_side`の入れ子スキーマ 読み取り専用: * `access_point_selectors` (オブジェクトのリスト) (入れ子になったスキーマは下記参照)(#nestedobjatt--data--service\_token\_connection--a\_side--access\_point\_selectors)) []() ### `data.service_token_connection.a_side.access_point_selectors`の入れ子スキーマ 読み取り専用: * `interface` (オブジェクトのセット) (入れ子になったスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--a\_side--access\_point\_selectors--interface)) * `link_protocol` (オブジェクトのセット) (入れ子になったスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--a\_side--access\_point\_selectors--link\_protocol)) * `network` (オブジェクトのセット) (入れ子になったスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--a\_side--access\_point\_selectors--network)) * `port` (オブジェクトのセット) (入れ子になったスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--a\_side--access\_point\_selectors--port)) * `type` (文字列) * `virtual_device` (オブジェクトのセット) (入れ子になったスキーマは下記を参照)(#nestedobjatt--data--service\_token\_connection--a\_side--access\_point\_selectors--virtual\_device)) []() ### `data.service_token_connection.a_side.access_point_selectors.interface`の入れ子スキーマ 読み取り専用: * `id` (番号) * `type` (文字列) * `uuid` (文字列) []() ### `data.service_token_connection.a_side.access_point_selectors.link_protocol`の入れ子スキーマ 読み取り専用: * `type` (文字列) * `vlan_c_tag` (番号) * `vlan_s_tag` (番号) * `vlan_tag` (番号) []() ### `data.service_token_connection.a_side.access_point_selectors.network`の入れ子スキーマ 読み取り専用: * `href` (文字列) * `location` (オブジェクトのセット) (入れ子になったスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--a\_side--access\_point\_selectors--network--location)) * `name` (文字列) * `scope` (文字列) * `type` (文字列) * `uuid` (文字列) []() ### `data.service_token_connection.a_side.access_point_selectors.network.location`の入れ子スキーマ 読み取り専用: * `ibx` (文字列) * `metro_code` (文字列) * `metro_name` (文字列) * `region` (文字列) []() ### `data.service_token_connection.a_side.access_point_selectors.port`の入れ子スキーマ 読み取り専用: * `account_name` (文字列) * `bandwidth` (番号) * `cvp_id` (番号) * `encapsulation_protocol_type` (文字列) * `href` (文字列) * `location` (オブジェクトのセット) (入れ子になったスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--a\_side--access\_point\_selectors--port--location)) * `port_name` (文字列) * `priority` (文字列) * `type` (文字列) * `uuid` (文字列) []() ### `data.service_token_connection.a_side.access_point_selectors.port.location`の入れ子スキーマ 読み取り専用: * `ibx` (文字列) * `metro_code` (文字列) * `metro_name` (文字列) * `region` (文字列) []() ### `data.service_token_connection.a_side.access_point_selectors.virtual_device`の入れ子スキーマ 読み取り専用: * `cluster` (文字列) * `href` (文字列) * `name` (文字列) * `type` (文字列) * `uuid` (文字列) []() ### `data.service_token_connection.z_side`の入れ子スキーマ 読み取り専用: * `access_point_selectors` (オブジェクトのリスト) (入れ子になったスキーマは下記を参照)(#nestedobjatt--data--service\_token\_connection--z\_side--access\_point\_selectors)) []() ### `data.service_token_connection.z_side.access_point_selectors`の入れ子スキーマ 読み取り専用: * `interface` (オブジェクトのセット) (入れ子になったスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--z\_side--access\_point\_selectors--interface)) * `link_protocol` (オブジェクトのセット) (入れ子になったスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--z\_side--access\_point\_selectors--link\_protocol)) * `network` (オブジェクトのセット) (入れ子になったスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--z\_side--access\_point\_selectors--network)) * `port` (オブジェクトのセット) (入れ子になったスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--z\_side--access\_point\_selectors--port)) * `type` (文字列) * `virtual_device` (オブジェクトのセット) (ネストされたスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--z\_side--access\_point\_selectors--virtual\_device)) []() ### `data.service_token_connection.z_side.access_point_selectors.interface`の入れ子スキーマ 読み取り専用: * `id` (番号) * `type` (文字列) * `uuid` (文字列) []() ### `data.service_token_connection.z_side.access_point_selectors.link_protocol`の入れ子スキーマ 読み取り専用: * `type` (文字列) * `vlan_c_tag` (番号) * `vlan_s_tag` (番号) * `vlan_tag` (番号) []() ### `data.service_token_connection.z_side.access_point_selectors.network`の入れ子スキーマ 読み取り専用: * `href` (文字列) * `location` (オブジェクトのセット) (入れ子になったスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--z\_side--access\_point\_selectors--network--location)) * `name` (文字列) * `scope` (文字列) * `type` (文字列) * `uuid` (文字列) []() ### `data.service_token_connection.z_side.access_point_selectors.network.location`の入れ子スキーマ 読み取り専用: * `ibx` (文字列) * `metro_code` (文字列) * `metro_name` (文字列) * `region` (文字列) []() ### `data.service_token_connection.z_side.access_point_selectors.port`の入れ子スキーマ 読み取り専用: * `account_name` (文字列) * `bandwidth` (番号) * `cvp_id` (番号) * `encapsulation_protocol_type` (文字列) * `href` (文字列) * `location` (オブジェクトのセット) (入れ子になったスキーマは以下を参照)(#nestedobjatt--data--service\_token\_connection--z\_side--access\_point\_selectors--port--location)) * `port_name` (文字列) * `priority` (文字列) * `type` (文字列) * `uuid` (文字列) []() ### `data.service_token_connection.z_side.access_point_selectors.port.location`の入れ子スキーマ 読み取り専用: * `ibx` (文字列) * `metro_code` (文字列) * `metro_name` (文字列) * `region` (文字列) []() ### `data.service_token_connection.z_side.access_point_selectors.virtual_device`の入れ子スキーマ 読み取り専用: * `cluster` (文字列) * `href` (文字列) * `name` (文字列) * `type` (文字列) * `uuid` (文字列)