equinix_fabric_connection(数据源)
兼容 Fabric V4 API 的数据资源,允许用户获取给定 UUID 的连接。
补充文件:
- 入门指南:https://docs.equinix.com/api-catalog/fabricv4/
- API:https://docs.equinix.com/api-catalog/fabricv4/#tag/Connections
用法示例
data "equinix_fabric_connection" "connection_data_name" {
uuid = "<uuid_of_connection>"
}
output "id" {
value = data.equinix_fabric_connection.connection_data_name.id
}
output "name" {
value = data.equinix_fabric_connection.connection_data_name.bandwidth
}
output "account_number" {
value = [for account in data.equinix_fabric_connection.connection_data_name.account: account.account_number]
}
output "bandwidth" {
value = data.equinix_fabric_connection.connection_data_name.bandwidth
}
output "project_id" {
value = [for project in data.equinix_fabric_connection.connection_data_name.project: project.project_id]
}
output "redundancy_group" {
value = [for redundancy in data.equinix_fabric_connection.connection_data_name.redundancy: redundancy.group]
}
output "redundancy_priority" {
value = [for redundancy in data.equinix_fabric_connection.connection_data_name.redundancy: redundancy.priority]
}
output "state" {
value = data.equinix_fabric_connection.connection_data_name.state
}
output "type" {
value = data.equinix_fabric_connection.connection_data_name.type
}
# Same for z_side just use z_side instead of a_side
output "access_point_type" {
value = [for aside in data.equinix_fabric_connection.connection_data_name.a_side:
[for access in aside.access_point: access.type]]
}
# Same for z_side just use z_side instead of a_side
output "access_point_link_protocol_type" {
value = [for aside in data.equinix_fabric_connection.connection_data_name.a_side:
[for access in aside.access_point:
[for protocol in access.link_protocol: protocol.type]]]
}
# Same for z_side just use z_side instead of a_side
output "access_point_link_protocol_vlan_tag" {
value = [for aside in data.equinix_fabric_connection.connection_data_name.a_side:
[for access in aside.access_point:
[for protocol in access.link_protocol: protocol.vlan_tag]]]
}
# Same for z_side just use z_side instead of a_side
output "access_point_link_protocol_vlan_c_tag" {
value = [for aside in data.equinix_fabric_connection.connection_data_name.a_side:
[for access in aside.access_point:
[for protocol in access.link_protocol: protocol.vlan_c_tag]]]
}
# Same for z_side just use z_side instead of a_side
output "access_point_link_protocol_vlan_s_tag" {
value = [for aside in data.equinix_fabric_connection.connection_data_name.a_side:
[for access in aside.access_point:
[for protocol in access.link_protocol: protocol.vlan_s_tag]]]
}
# Same for z_side just use z_side instead of a_side
output "access_point_provider_connection_id" {
value = [for aside in data.equinix_fabric_connection.connection_data_name.a_side:
[for access in aside.access_point: access.provider_connection_id]]
}
模式
必填
uuid(字符串)由Equinix分配的连接标识符
只读
a_side(对象集合)多段连接的请求者或客户端连接配置对象(有关嵌套架构,请参阅下文)account(一组对象)与此连接关联的客户账户信息(有关嵌套架构,请参阅下文)additional_info(字符串地图列表)连接附加信息bandwidth(数量)以Mbps为单位的连接带宽change_log(一组对象)捕获连接生命周期更改信息(有关嵌套架构,请参阅下文)description(字符串)客户提供的连接描述direction(字符串)从请求者的角度来看连接方向geo_scope(字符串)地理边界类型href(字符串)连接URI信息id(字符串)此资源的ID。is_remote(布尔)连接属性源自接入点位置name(字符串)连接名称。由字母数字组成的24个字符字符字符串,只能包含连字符和下划线notifications(对象列表)连接配置或状态更改通知的首选项(嵌套架构参见下方)operation(对象集合)连接类型特定的运营数据(有关嵌套架构,请参阅下文)order(一组对象)订单详情(有关嵌套架构,请参阅下文)project(对象集合)项目信息(有关嵌套架构,请参阅下文)redundancy(对象集合)连接冗余配置(仅适用于Azure连接)(有关嵌套架构,请参阅下文)state(字符串)连接整体状态type(字符串)定义连接类型,如EVPL_VC,EPL_VC,IPWAN_VC,IP_VC,ACCESS_EPL_VC,EVPLAN_VC,EPLAN_VC,EIA _VC,IA_VC,EC_VCz_side(对象集合)多网段连接的目标或提供商端连接配置对象(有关嵌套架构,请参阅下文)
的嵌套架构a_side
只读:
access_point(对象集合)(有关嵌套架构,请参阅下文)additional_info(对象列表)(有关嵌套架构,请参阅下文)service_token(对象集合)(有关嵌套架构,请参阅下文)
的嵌套架构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(对象集合)(有关嵌套架构,请参阅下文)
的嵌套架构a_side.access_point.account
只读:
account_name(字符串)account_number(编号)global_cust_id(字符串)global_org_id(字符串)global_organization_name(字符串)org_id(编号)organization_name(字符串)ucm_id(字符串)
的嵌套架构a_side.access_point.gateway
只读:
href(字符串)uuid(字符串)
的嵌套架构a_side.access_point.interface
只读:
id(编号)type(字符串)uuid(字符串)
的嵌套架构a_side.access_point.link_protocol
只读:
type(字符串)vlan_c_tag(编号)vlan_s_tag(编号)vlan_tag(编号)
的嵌套架构a_side.access_point.location
只读:
ibx(字符串)metro_code(字符串)metro_name(字符串)region(字符串)
的嵌套架构a_side.access_point.network
只读:
href(字符串)uuid(字符串)
的嵌套架构a_side.access_point.port
只读:
的嵌套架构a_side.access_point.port.redundancy
只读:
enabled(布尔型)group(字符串)priority(字符串)
的嵌套架构a_side.access_point.profile
只读:
access_point_type_configs(对象列表)(有关嵌套架构,请参阅下文)description(字符串)href(字符串)name(字符串)type(字符串)uuid(字符串)
的嵌套架构a_side.access_point.profile.access_point_type_configs
只读:
type(字符串)uuid(字符串)
的嵌套架构a_side.access_point.router
只读:
href(字符串)uuid(字符串)
的嵌套架构a_side.access_point.virtual_device
只读:
href(字符串)name(字符串)type(字符串)uuid(字符串)
的嵌套架构a_side.additional_info
只读:
key(字符串)value(字符串)
的嵌套架构a_side.service_token
只读:
description(字符串)href(字符串)type(字符串)uuid(字符串)
的嵌套架构account
只读:
account_name(字符串)account_number(编号)global_cust_id(字符串)global_org_id(字符串)global_organization_name(字符串)org_id(编号)organization_name(字符串)ucm_id(字符串)
的嵌套架构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(字符串)
的嵌套架构notifications
只读:
emails(字符串列表)send_interval(字符串)type(字符串)
的嵌套架构operation
只读:
的嵌套架构operation.errors
只读:
additional_info(对象列表)(有关嵌套架构,请参阅下文)correlation_id(字符串)details(字符串)error_code(字符串)error_message(字符串)help(字符串)
的嵌套架构operation.errors.additional_info
只读:
property(字符串)reason(字符串)
的嵌套架构order
只读:
billing_tier(字符串)order_id(字符串)order_number(字符串)purchase_order_number(字符串)term_length(编号)
的嵌套架构project
只读:
href(字符串)project_id(字符串)
的嵌套架构redundancy
只读:
group(字符串)priority(字符串)
的嵌套架构z_side
只读:
access_point(对象集合)(有关嵌套架构,请参阅下文)additional_info(对象列表)(有关嵌套架构,请参阅下文)service_token(对象集合)(有关嵌套架构,请参阅下文)
的嵌套架构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(对象集合)(有关嵌套架构,请参阅下文)
的嵌套架构z_side.access_point.account
只读:
account_name(字符串)account_number(编号)global_cust_id(字符串)global_org_id(字符串)global_organization_name(字符串)org_id(编号)organization_name(字符串)ucm_id(字符串)
的嵌套架构z_side.access_point.gateway
只读:
href(字符串)uuid(字符串)
的嵌套架构z_side.access_point.interface
只读:
id(编号)type(字符串)uuid(字符串)
的嵌套架构z_side.access_point.link_protocol
只读:
type(字符串)vlan_c_tag(编号)vlan_s_tag(编号)vlan_tag(编号)
的嵌套架构z_side.access_point.location
只读:
ibx(字符串)metro_code(字符串)metro_name(字符串)region(字符串)
的嵌套架构z_side.access_point.network
只读:
href(字符串)uuid(字符串)
的嵌套架构z_side.access_point.port
只读:
的嵌套架构z_side.access_point.port.redundancy
只读:
enabled(布尔型)group(字符串)priority(字符串)
的嵌套架构z_side.access_point.profile
只读:
access_point_type_configs(对象列表)(有关嵌套架构,请参阅下文)description(字符串)href(字符串)name(字符串)type(字符串)uuid(字符串)
的嵌套架构z_side.access_point.profile.access_point_type_configs
只读:
type(字符串)uuid(字符串)
的嵌套架构z_side.access_point.router
只读:
href(字符串)uuid(字符串)
的嵌套架构z_side.access_point.virtual_device
只读:
href(字符串)name(字符串)type(字符串)uuid(字符串)
的嵌套架构z_side.additional_info
只读:
key(字符串)value(字符串)
的嵌套架构 z_side.service_token
只读:
description(字符串)href(字符串)type(字符串)uuid(字符串)