跳至内容

equinix_fabric_connections(数据源)

兼容 Fabric V4 API 的数据资源,允许用户获取给定 UUID 的连接。

补充文件:

用法示例

data "equinix_fabric_connections" "test" {
outer_operator = "AND"
filter {
property = "/name"
operator = "LIKE"
values = ["PNFV"]
}
filter {
property = "/aSide/accessPoint/location/metroCode"
operator = "="
values = ["SY"]
}
filter {
group = "OR_group1"
property = "/redundancy/priority"
operator = "="
values = ["PRIMARY"]
}
filter {
group = "OR_group1"
property = "/redundancy/priority"
operator = "="
values = ["SECONDARY"]
}
pagination {
offset = 0
limit = 5
}
sort {
direction = "ASC"
property = "/name"
}
}

output "number_of_returned_connections" {
value = length(data.equinix_fabric_connections.test.data)
}

output "first_connection_name" {
value = data.equinix_fabric_connections.test.data.0.name
}

output "first_connection_uuid" {
value = data.equinix_fabric_connections.test.data.0.uuid
}

output "first_connection_bandwidth" {
value = data.equinix_fabric_connections.test.data.0.bandwidth
}

output "first_connection_type" {
value = data.equinix_fabric_connections.test.data.0.type
}

output "first_connection_redundancy_priority" {
value = one(data.equinix_fabric_connections.test.data.0.redundancy).priority
}

output "first_connection_purchase_order_number" {
value = one(data.equinix_fabric_connections.test.data.0.order).purchase_order_number
}

output "first_connection_aSide_type" {
value = one(one(data.equinix_fabric_connections.test.data.0.a_side).access_point).type
}

output "first_connection_aSide_link_protocol_type" {
value = one(one(one(data.equinix_fabric_connections.test.data.0.a_side).access_point).link_protocol).type
}

output "first_connection_aSide_link_protocol_vlan_tag" {
value = one(one(one(data.equinix_fabric_connections.test.data.0.a_side).access_point).link_protocol).vlan_tag
}

output "first_connection_aSide_location_metro_code" {
value = one(one(one(data.equinix_fabric_connections.test.data.0.a_side).access_point).location).metro_code
}

output "first_connection_zSide_type" {
value = one(one(data.equinix_fabric_connections.test.data.0.z_side).access_point).type
}

output "first_connection_zSide_link_protocol_type" {
value = one(one(one(data.equinix_fabric_connections.test.data.0.z_side).access_point).link_protocol).type
}

output "first_connection_zSide_link_protocol_vlan_tag" {
value = one(one(one(data.equinix_fabric_connections.test.data.0.z_side).access_point).link_protocol).vlan_tag
}

output "first_connection_zSide_location_metro_code" {
value = one(one(one(data.equinix_fabric_connections.test.data.0.z_side).access_point).location).metro_code
}

模式

需要

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

可选

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

只读

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

filter 的嵌套模式

必需的:

  • operator(字符串)运算符,用于对已筛选字段应用给定值。运算符包括 [ =, !=, >, >=, <, <=, BETWEEN, NOT BETWEEN, LIKE, NOT LIKE, IN, NOT IN, IS NOT NULL, IS NULL]
  • property(字符串)可用于筛选的字段名称。 [/isRemote /name /uuid /type /geoScope /account/orgId /aSide/accessPoint/account/accountName /aSide/accessPoint/account/accountNumber /aSide/accessPoint/router/uuid /aSide/accessPoint/linkProtocol/vlanCTag /aSide/accessPoint/linkProtocol/vlanSTag /aSide/accessPoint/linkProtocol/vlanTagMin /aSide/accessPoint/linkProtocol/vlanTagMax /aSide/accessPoint/location/metroCode /aSide/accessPoint/location/metroName /aSide/accessPoint/name /aSide/accessPoint/port/uuid /aSide/accessPoint/port/name /aSide/accessPoint/type /aSide/accessPoint/virtualDevice/name /aSide/accessPoint/virtualDevice/uuid /aSide/serviceToken/uuid /change/status /operation/equinixStatus /operation/providerStatus /project/projectId /redundancy/group /redundancy/priority /zSide/accessPoint/account/accountName /zSide/accessPoint/authenticationKey /zSide/accessPoint/linkProtocol/vlanCTag /zSide/accessPoint/linkProtocol/vlanSTag /zSide/accessPoint/linkProtocol/vlanTagMin /zSide/accessPoint/linkProtocol/vlanTagMax /zSide/accessPoint/location/metroCode /zSide/accessPoint/location/metroName /zSide/accessPoint/name /zSide/accessPoint/port/uuid /zSide/accessPoint/network/uuid /zSide/accessPoint/port/name /zSide/accessPoint/profile/uuid /zSide/accessPoint/type /zSide/accessPoint/role /zSide/accessPoint/virtualDevice/name /zSide/accessPoint/virtualDevice/uuid /zSide/serviceToken/uuid /zSide/internetAccess/uuid]
  • values(字符串列表)要应用属性+运算符组合以筛选数据搜索的值

选修的:

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

pagination 的嵌套模式

选修的:

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

sort 的嵌套模式

选修的:

  • direction(字符串)排序方向。可以是以下值之一:[DESC, ASC],默认为 DESC。
  • property(字符串)排序时要使用的属性名称。 [/name /direction /aSide/accessPoint/name /aSide/accessPoint/type /aSide/accessPoint/account/accountName /aSide/accessPoint/location/metroName /aSide/accessPoint/location/metroCode /aSide/accessPoint/linkProtocol/vlanCTag /aSide/accessPoint/linkProtocol/vlanSTag /zSide/accessPoint/name /zSide/accessPoint/type /zSide/accessPoint/role /zSide/accessPoint/account/accountName /zSide/accessPoint/location/metroName /zSide/accessPoint/location/metroCode /zSide/accessPoint/linkProtocol/vlanCTag /zSide/accessPoint/linkProtocol/vlanSTag /zSide/accessPoint/authenticationKey /bandwidth /geoScope /uuid /changeLog/createdDateTime /changeLog/updatedDateTime] /operation/equinixStatus /operation/providerStatus /redundancy/priority]。默认值为 /changeLog/updatedDateTime

data 的嵌套模式

只读:

  • a_side(对象集合)(有关嵌套模式,请参见下文
  • account(对象集合)(有关嵌套模式,请参见下文
  • additional_info(字符串映射列表)
  • bandwidth(数字)
  • change_log(对象集合)(有关嵌套模式,请参见下文
  • description(字符串)
  • direction(字符串)
  • href(字符串)
  • is_remote(布尔值)
  • name(字符串)
  • notifications(对象列表)(有关嵌套模式,请参见下方
  • operation(对象集合)(有关嵌套模式,请参见下文
  • order(对象集合)(有关嵌套模式,请参见下文
  • project(对象集合)(有关嵌套模式,请参见下文
  • redundancy(对象集合)(有关嵌套模式,请参见下文
  • state(字符串)
  • type(字符串)
  • uuid(字符串)
  • z_side(对象集合)(有关嵌套模式,请参见下文

data.a_side 的嵌套模式

只读:

  • access_point(对象集合)(有关嵌套模式,请参见下文
  • additional_info(对象列表)(有关嵌套模式,请参见下方
  • service_token(对象集合)(有关嵌套模式,请参见下文

data.a_side.access_point 的嵌套模式

只读:

  • account(对象集合)(有关嵌套模式,请参见下文
  • authentication_key(字符串)
  • gateway(对象集合)(有关嵌套模式,请参见下文
  • interface(对象集合)(有关嵌套模式,请参见下文
  • link_protocol(对象集合)(有关嵌套模式,请参见下文
  • location(对象集合)(有关嵌套模式,请参见下文
  • network(对象集合)(有关嵌套模式,请参见下文
  • peering_type(字符串)
  • port(对象集合)(有关嵌套模式,请参见下文
  • profile(对象集合)(有关嵌套模式,请参见下文
  • provider_connection_id(字符串)
  • role(字符串)
  • router(对象集合)(有关嵌套模式,请参见下方
  • seller_region(字符串)
  • type(字符串)
  • virtual_device(对象集合)(有关嵌套模式,请参见下文

data.a_side.access_point.account 的嵌套模式

只读:

  • account_name(字符串)
  • account_number(数字)
  • global_cust_id(字符串)
  • global_org_id(字符串)
  • global_organization_name(字符串)
  • org_id(数字)
  • organization_name(字符串)
  • ucm_id(字符串)

data.a_side.access_point.gateway 的嵌套模式

只读:

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

data.a_side.access_point.interface 的嵌套模式

只读:

  • id(数字)
  • type(字符串)
  • uuid(字符串)

只读:

  • type(字符串)
  • vlan_c_tag(数字)
  • vlan_s_tag(数字)
  • vlan_tag(数字)

data.a_side.access_point.location 的嵌套模式

只读:

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

data.a_side.access_point.network 的嵌套模式

只读:

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

data.a_side.access_point.port 的嵌套模式

只读:

  • href(字符串)
  • name(字符串)
  • redundancy(对象集)(有关嵌套模式,请参见下文
  • uuid(字符串)

data.a_side.access_point.port.redundancy 的嵌套模式

只读:

  • enabled(布尔值)
  • group(字符串)
  • priority(字符串)

data.a_side.access_point.profile 的嵌套模式

只读:

  • access_point_type_configs(对象列表)(有关嵌套模式,请参见下方
  • description(字符串)
  • href(字符串)
  • name(字符串)
  • type(字符串)
  • uuid(字符串)

data.a_side.access_point.profile.access_point_type_configs 的嵌套模式

只读:

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

data.a_side.access_point.router 的嵌套模式

只读:

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

data.a_side.access_point.virtual_device 的嵌套模式

只读:

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

data.a_side.additional_info 的嵌套模式

只读:

  • key(字符串)
  • value(字符串)

data.a_side.service_token 的嵌套模式

只读:

  • description(字符串)
  • href(字符串)
  • 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.operation 的嵌套模式

只读:

  • equinix_status(字符串)
  • errors(对象列表)(有关嵌套模式,请参见下方
  • provider_status(字符串)

data.operation.errors 的嵌套模式

只读:

  • additional_info(对象列表)(有关嵌套模式,请参见下方
  • correlation_id(字符串)
  • details(字符串)
  • error_code(字符串)
  • error_message(字符串)
  • help(字符串)

data.operation.errors.additional_info 的嵌套模式

只读:

  • property(字符串)
  • reason(字符串)

data.order 的嵌套模式

只读:

  • billing_tier(字符串)
  • order_id(字符串)
  • order_number(字符串)
  • purchase_order_number(字符串)
  • term_length(数字)

data.project 的嵌套模式

只读:

  • href(字符串)
  • project_id(字符串)

data.redundancy 的嵌套模式

只读:

  • group(字符串)
  • priority(字符串)

data.z_side 的嵌套模式

只读:

  • access_point(对象集合)(有关嵌套模式,请参见下文
  • additional_info(对象列表)(有关嵌套模式,请参见下文
  • service_token(对象集合)(有关嵌套模式,请参见下文

data.z_side.access_point 的嵌套模式

只读:

  • account(对象集合)(有关嵌套模式,请参见下文
  • authentication_key(字符串)
  • gateway(对象集合)(有关嵌套模式,请参见下文
  • interface(对象集合)(有关嵌套模式,请参见下文
  • link_protocol(对象集合)(有关嵌套模式,请参见下文
  • location(对象集合)(有关嵌套模式,请参见下文
  • network(对象集合)(有关嵌套模式,请参见下文
  • peering_type(字符串)
  • port(对象集合)(有关嵌套模式,请参见下文
  • profile(对象集合)(有关嵌套模式,请参见下文
  • provider_connection_id(字符串)
  • role(字符串)
  • router(对象集合)(有关嵌套模式,请参见下方
  • seller_region(字符串)
  • type(字符串)
  • virtual_device(对象集)(有关嵌套模式,请参见下文

data.z_side.access_point.account 的嵌套模式

只读:

  • account_name(字符串)
  • account_number(数字)
  • global_cust_id(字符串)
  • global_org_id(字符串)
  • global_organization_name(字符串)
  • org_id(数字)
  • organization_name(字符串)
  • ucm_id(字符串)

data.z_side.access_point.gateway 的嵌套模式

只读:

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

data.z_side.access_point.interface 的嵌套模式

只读:

  • id(数字)
  • type(字符串)
  • uuid(字符串)

只读:

  • type(字符串)
  • vlan_c_tag(数字)
  • vlan_s_tag(数字)
  • vlan_tag(数字)

data.z_side.access_point.location 的嵌套模式

只读:

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

data.z_side.access_point.network 的嵌套模式

只读:

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

data.z_side.access_point.port 的嵌套模式

只读:

  • href(字符串)
  • name(字符串)
  • redundancy(对象集)(有关嵌套模式,请参见下文
  • uuid(字符串)

data.z_side.access_point.port.redundancy 的嵌套模式

只读:

  • enabled(布尔值)
  • group(字符串)
  • priority(字符串)

data.z_side.access_point.profile 的嵌套模式

只读:

  • access_point_type_configs(对象列表)(有关嵌套模式,请参见下方
  • description(字符串)
  • href(字符串)
  • name(字符串)
  • type(字符串)
  • uuid(字符串)

data.z_side.access_point.profile.access_point_type_configs 的嵌套模式

只读:

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

data.z_side.access_point.router 的嵌套模式

只读:

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

data.z_side.access_point.virtual_device 的嵌套模式

只读:

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

data.z_side.additional_info 的嵌套模式

只读:

  • key(字符串)
  • value(字符串)

data.z_side.service_token 的嵌套模式

只读:

  • description(字符串)
  • href(字符串)
  • type(字符串)
  • uuid(字符串)
此页面有帮助吗?