跳至内容

equinix_fabric_networks(数据源)

兼容 Fabric V4 API 的数据资源,允许用户获取给定 UUID 的 Fabric 网络信息。

补充文件:

用法示例

data "equinix_fabric_networks" "test" {
outer_operator = "AND"
filter {
property = "/type"
operator = "="
values = ["IPWAN"]
}
filter {
property = "/name"
operator = "="
values = ["Tf_Network_PFCR"]
}
filter {
group = "OR_group1"
property = "/operation/equinixStatus"
operator = "="
values = ["PROVISIONED"]
}
filter {
group = "OR_group1"
property = "/operation/equinixStatus"
operator = "LIKE"
values = ["DEPROVISIONED"]
}
pagination {
offset = 0
limit = 5
}
sort {
direction = "ASC"
property = "/name"
}
}

output "number_of_returned_networks" {
value = length(data.equinix_fabric_networks.test.data)
}

output "first_network_name" {
value = data.equinix_fabric_networks.test.data.0.name
}

output "first_network_connections_count" {
value = data.equinix_fabric_networks.test.data.0.connections_count
}

output "first_network_scope" {
value = data.equinix_fabric_networks.test.data.0.scope
}

output "first_network_type" {
value = data.equinix_fabric_networks.test.data.0.type
}

output "first_network_location_region" {
value = one(data.equinix_fabric_networks.test.data.0.location).region
}

output "first_network_project_id" {
value = one(data.equinix_fabric_networks.test.data.0.project).project_id
}

模式

需要

  • filter(阻止列表,最小值:1,最大值:10)数据源搜索请求的过滤器(有关嵌套架构,请参见下文
  • outer_operator(字符串)确定筛选列表是按 AND 还是 OR 分组。取值范围为 [AND, OR]。

可选

  • pagination(块集,最大值:1)数据源搜索请求的分页详细信息(有关嵌套架构,请参见下文
  • sort(阻止列表)数据源搜索请求的过滤器(有关嵌套架构,请参见下文

只读

  • data(对象列表)云路由器列表(嵌套模式见下文)
  • id(字符串)此资源的 ID。

filter 的嵌套模式

必需的:

  • operator(字符串)运算符,用于对已筛选字段应用给定值。运算符包括 [ =, !=, >, >=, <, <=, BETWEEN, NOT BETWEEN, LIKE, NOT LIKE, ILIKE, NOT ILIKE, IN, NOT IN]
  • property(字符串)可用于筛选的字段名称。可以是以下之一:[/name /uuid /scope /type /operation/equinixStatus /location/region /project/projectId /account/globalCustId /account/orgId /deletedDate /_*]
  • values(字符串列表)要应用属性+运算符组合以筛选数据搜索的值

选修的:

  • group(字符串)可选的自定义 ID 参数,用于将此筛选器分配给内部的 AND 或 OR 组。组 ID 必须以 AND_ 或 OR_ 为前缀。请确保目标分组元素具有相同的给定 ID。未分组的筛选器将单独放置在筛选器列表组中。

pagination 的嵌套模式

选修的:

  • limit(数字)每页请求的元素数量。数字必须介于 1 和 100 之间。默认值为 20。
  • offset(数字)分页请求的页面偏移量。第一个元素的索引。默认值为 0。

sort 的嵌套模式

选修的:

  • direction(字符串)排序方向。可以是以下值之一:[DESC, ASC],默认为 DESC。
  • property(字符串)用于排序的属性名称。取值范围为 [/name /uuid /scope /operation/equinixStatus /location/region /changeLog/createdDateTime /changeLog/updatedDateTime]。默认为 /changeLog/updatedDateTime。

data 的嵌套模式

只读:

  • change(对象集合)(有关嵌套模式,请参见下文
  • change_log(对象集合)(有关嵌套模式,请参见下文
  • connections_count(数字)
  • href(字符串)
  • location(对象集合)(有关嵌套模式,请参见下文
  • name(字符串)
  • notifications(对象列表)(有关嵌套模式,请参见下方
  • operation(对象集合)(有关嵌套模式,请参见下文
  • project(对象集合)(有关嵌套模式,请参见下文
  • scope(字符串)
  • state(字符串)
  • type(字符串)
  • uuid(字符串)

data.change 的嵌套模式

只读:

  • href(字符串)
  • type(字符串)
  • uuid(字符串)

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.location 的嵌套模式

只读:

  • ibx(字符串)
  • metro_code(字符串)
  • metro_name(字符串)
  • region(字符串)

data.notifications 的嵌套模式

只读:

  • emails(字符串列表)
  • send_interval(字符串)
  • type(字符串)

data.operation 的嵌套模式

只读:

  • equinix_status(字符串)

data.project 的嵌套模式

只读:

  • project_id(字符串)
此页面有帮助吗?