equinix_fabric_connections(数据源)
兼容 Fabric V4 API 的数据资源,允许用户获取给定 UUID 的连接。
补充文件:
- 入门指南:https://docs.equinix.com/api-catalog/fabricv4/
- API:https://docs.equinix.com/api-catalog/fabricv4/#tag/Connections
用法示例
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
必需的:
operator(字符串)运算符,用于筛选字段及给定值。[=,!=,>=,>=,<中的一个,<=,介于之间,不介于之间,喜欢,不喜欢,IN,NOT IN,IS NOT IN,IS NULL]property(字符串)筛选器上可能使用的字段名称。/isRemote /name /uuuid /type /geoScope /account/orgID /aside/accspoint/accountNumber /aside/accspoint/account/accountNumber /aside/router/uuuid /aside/linkProtocol/vlanTagMin /aside/accspoint/vlanTagMaxvalues(字符串列表)要应用属性+运算符组合以筛选数据搜索的值
可选:
group(字符串)可选的自定义ID参数,将此筛选器分配给内部AND或组。组ID必须使用和_或OR_作为前缀。确保预定分组元素具有相同的给定ID未分组的筛选器将单独放置在筛选器列表组中。
的嵌套架构pagination
可选:
limit(数量)每页请求的元素数量。数字必须介于1和100之间。默认值为20offset分页请求的页面偏移量。第一个元素的索引。默认值为0。
的嵌套架构sort
可选:
direction(字符串)排序方向。可以是以下之一:[DESC,ASC],默认为DESCproperty(string)排序中使用的属性名称。/name /Direction /aside//accspoint/name /aside/accspoint/type /aside/accspoint/account/accountName /aside/accspoint/location/metroName /aside/accspoint/linkProtocol/vlanCtag /aside/accspoint/linkProtocol/linkProtocol/vlanCtag默认为/ChangeLog/updatedDateTime
的嵌套架构data
只读:
a_side(对象集合)(有关嵌套架构,请参阅下文)account(对象集合)(有关嵌套架构,请参阅下文)additional_info(字符串地图列表)bandwidth(编号)change_log(对象集合)(有关嵌套架构,请参阅下文)description(字符串)direction(字符串)geo_scope(字符串)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(字符串)
的嵌套架构data.a_side.access_point.link_protocol
只读:
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
只读:
的嵌套架构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
只读:
的嵌套架构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(字符串)
的嵌套架构data.z_side.access_point.link_protocol
只读:
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
只读:
的嵌套架构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(字符串)