# equinix\_fabric\_cloud\_routers（データソース）

カスタム検索条件に一致する Fabric Cloud Router をフェッチできる Fabric V4 API 互換データ・リソース

追加ドキュメント

* はじめに： <https://docs.equinix.com/fabric-cloud-router/>
* API: <https://docs.equinix.com/api-catalog/fabricv4/#tag/Cloud-Routers>

## 使用例[​](#使用例 "Direct link to 使用例")

```
data "equinix_fabric_cloud_routers" "test" {

  filter {

    property = "/name"

    operator = "="

    values 	 = ["Test_PFCR"]

  }

  filter {

    property = "/location/metroCode"

    operator = "="

    values   = ["SV"]

  }

  filter {

    property = "/package/code"

    operator = "="

    values = ["STANDARD"]

    or = true

  }

  filter {

    property = "/state"

    operator = "="

    values = ["ACTIVE"]

    or = true

  }

  pagination {

    offset = 5

    limit = 3

  }

  sort {

    direction = "ASC"

    property = "/name"

  }

}



output "number_of_returned_fcrs" {

  value = length(data.equinix_fabric_cloud_routers.test.data)

}



output "first_fcr_name" {

  value = data.equinix_fabric_cloud_routers.test.data.0.name

}



output "first_fcr_state" {

  value = data.equinix_fabric_cloud_routers.test.data.0.state

}



output "first_fcr_uuid" {

  value = data.equinix_fabric_cloud_routers.test.data.0.uuid

}



output "first_fcr_type" {

  value = data.equinix_fabric_cloud_routers.test.data.0.type

}



output "first_fcr_package_code" {

  value = one(data.equinix_fabric_cloud_routers.test.data.0.package).code

}



output "first_fcr_equinix_asn" {

  value = data.equinix_fabric_cloud_routers.test.data.0.equinix_asn

}



output "first_fcr_location_region" {

  value = one(data.equinix_fabric_cloud_routers.test.data.0.location).region

}



output "first_fcr_location_metro_name" {

  value = one(data.equinix_fabric_cloud_routers.test.data.0.location).metro_name

}



output "first_fcr_location_metro_code" {

  value = one(data.equinix_fabric_cloud_routers.test.data.0.location).metro_code

}



output "first_fcr_project_id" {

  value = one(data.equinix_fabric_cloud_routers.test.data.0.project).project_id

}



output "first_fcr_account_number" {

  value = one(data.equinix_fabric_cloud_routers.test.data.0.account).account_number

}
```

<!-- -->

## スキーマ[​](#スキーマ "Direct link to スキーマ")

### 必須[​](#必須 "Direct link to 必須")

* `filter` （ブロックリスト、最小：1、最大：10） データソース検索要求のフィルター。合計最大 8 つのフィルター。(ネストされたスキーマは以下を参照]\(#nestedblock--filter))

### オプション[​](#オプション "Direct link to オプション")

* `pagination` (ブロックセット、最大: 1) データソース検索リクエストのページネーションの詳細 (入れ子になったスキーマは以下を参照]\(#nestedblock--pagination))
* `sort` (ブロックリスト) データソース検索リクエストのフィルタ (入れ子になったスキーマは以下を参照]\(#nestedblock--sort))

### 読み取り専用[​](#読み取り専用 "Direct link to 読み取り専用")

* `data` (オブジェクトのリスト) クラウドルーターのリスト (入れ子になったスキーマは以下を参照)(#nestedatt--data)
* `id` （文字列） このリソースの ID。

[]()

### `filter`の入れ子スキーマ[​](#filterの入れ子スキーマ "Direct link to filterの入れ子スキーマ")

必須

* `operator` （文字列） filter プロパティで使用可能な演算子。以下のいずれかを指定で きます：\[=-等しい、 != -等しくない、 > - より大きい、 >= - 以上、 < - より小さい、 <= - 以下、 \[NOT] BETWEEN - （等しくない） between、 \[NOT] LIKE - （等しくない） like、 \[NOT] IN - （等しくない） in。
* `property` （文字列） 要求を フ ィ ル タ し たい API 応答プ ロパテ ィ 。以下のいずれかを指定します："/project/projectId", "/name", "/uuid", "/state", "/location/metroCode", "/location/metroName", "/package/code", "/\*"
* `values` （文字列の リ ス ト ） デー タ 検索を フ ィ ル タ す る ためにプ ロパテ ィ ＋ オペレー タ の組み合わせを適用 し たい値。

オプション

* `or` （論理値） こ の フ ィ ル タ を OR グループに含めるかど う かを示す論理フラグ。OR グルー プは 1 つだけで、 最大 3 個の フ ィ ル タ を持つ こ と がで き ます。OR グルー プは、 8 個の可能な フ ィ ル タ の う ちの 1 個 と し てのみ カ ウ ン ト さ れます

[]()

### `pagination`の入れ子スキーマ[​](#paginationの入れ子スキーマ "Direct link to paginationの入れ子スキーマ")

オプション

* `limit` （数） ページ ご と に要求 さ せたい要素の数。数値は 1 以上 100 以下の間でなければな り ません。デ フ ォル ト は 20 です。
* `offset` （数値） ページ化要求のページオ フ セ ッ ト 。最初の要素の イ ンデ ッ ク ス。デ フ ォル ト は 0。

[]()

### `sort`の入れ子スキーマ[​](#sortの入れ子スキーマ "Direct link to sortの入れ子スキーマ")

オプション

* `direction` （文字列） 並べ替え方向。以下のいずれか：\[DESC, ASC] のいずれか。 デ フ ォル ト は DESC です。
* `property` （文字列） 並べ替えで使いたいプ ロパテ ィ 名。以下のいずれかを指定で きます：\[name, /uuid, /state, /location/metroCode, /location/metroName, /package/code, /changeLog/createdDateTime, /changeLog/updatedDateTime], デフォルトは /changeLog/updatedDateTime です。

[]()

### `data`の入れ子スキーマ[​](#dataの入れ子スキーマ "Direct link to dataの入れ子スキーマ")

読み取り専用：

* `account` (オブジェクトのセット) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--account))
* `change_log` (オブジェクトの集合) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--change\_log))
* `connections_count` (番号)
* `description` (文字列)
* `equinix_asn` (番号)
* `href` (文字列)
* `location` (オブジェクトの集合) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--location))
* `marketplace_subscription` (オブジェクトのセット) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--marketplace\_subscription))
* `name` (文字列)
* `notifications` (オブジェクトのリスト) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--notifications))
* `order` (オブジェクトの集合) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--order))
* `package` (オブジェクトの集合) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--package))
* `project` (オブジェクトの集合) (入れ子になったスキーマは以下を参照]\(#nestedobjatt--data--project))
* `state` (文字列)
* `type` (文字列)
* `uuid` (文字列)

[]()

### `data.account`の入れ子スキーマ[​](#dataaccountの入れ子スキーマ "Direct link to dataaccountの入れ子スキーマ")

読み取り専用：

* `account_number` (番号)

[]()

### `data.change_log`の入れ子スキーマ[​](#datachange_logの入れ子スキーマ "Direct link to datachange_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.location`の入れ子スキーマ[​](#datalocationの入れ子スキーマ "Direct link to datalocationの入れ子スキーマ")

読み取り専用：

* `ibx` (文字列)
* `metro_code` (文字列)
* `metro_name` (文字列)
* `region` (文字列)

[]()

### `data.marketplace_subscription`の入れ子スキーマ[​](#datamarketplace_subscriptionの入れ子スキーマ "Direct link to datamarketplace_subscriptionの入れ子スキーマ")

読み取り専用：

* `type` (文字列)
* `uuid` (文字列)

[]()

### `data.notifications`の入れ子スキーマ[​](#datanotificationsの入れ子スキーマ "Direct link to datanotificationsの入れ子スキーマ")

読み取り専用：

* `emails` (文字列のリスト)
* `send_interval` (文字列)
* `type` (文字列)

[]()

### `data.order`の入れ子スキーマ[​](#dataorderの入れ子スキーマ "Direct link to dataorderの入れ子スキーマ")

読み取り専用：

* `billing_tier` (文字列)
* `order_id` (文字列)
* `order_number` (文字列)
* `purchase_order_number` (文字列)
* `term_length` (番号)

[]()

### `data.package`の入れ子スキーマ[​](#datapackageの入れ子スキーマ "Direct link to datapackageの入れ子スキーマ")

読み取り専用：

* `code` (文字列)

[]()

### `data.project`の入れ子スキーマ[​](#dataprojectの入れ子スキーマ "Direct link to dataprojectの入れ子スキーマ")

読み取り専用：

* `href` (文字列)
* `project_id` (文字列)
