equinix_fabric_connections (Data Source)
Fabric V4 API compatible data resource that allow user to fetch connection for a given UUID
Additional documentation:
- Getting Started: https://docs.equinix.com/api-catalog/fabricv4/
- API: https://docs.equinix.com/api-catalog/fabricv4/#tag/Connections
Example Usage
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
}
Schema
Required
filter(Block List, Min: 1, Max: 10) Filters for the Data Source Search Request (see below for nested schema)outer_operator(String) Determines if the filter list will be grouped by AND or by OR. One of [AND, OR]
Optional
pagination(Block Set, Max: 1) Pagination details for the Data Source Search Request (see below for nested schema)sort(Block List) Filters for the Data Source Search Request (see below for nested schema)
Read-Only
data(List of Object) List of Cloud Routers (see below for nested schema)id(String) The ID of this resource.
Nested Schema for filter
Required:
operator(String) Operators to use on your filtered field with the values given. One of [ =, !=, >, >=, <, <=, BETWEEN, NOT BETWEEN, LIKE, NOT LIKE, IN, NOT IN, IS NOT NULL, IS NULL]property(String) Possible field names to use on filters. One of [/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(List of String) The values that you want to apply the property+operator combination to in order to filter your data search
Optional:
group(String) Optional custom id parameter to assign this filter to an inner AND or OR group. Group id must be prefixed with AND_ or OR_. Ensure intended grouped elements have the same given id. Ungrouped filters will be placed in the filter list group by themselves.
Nested Schema for pagination
Optional:
limit(Number) Number of elements to be requested per page. Number must be between 1 and 100. Default is 20offset(Number) The page offset for the pagination request. Index of the first element. Default is 0.
Nested Schema for sort
Optional:
direction(String) The sorting direction. Can be one of: [DESC, ASC], Defaults to DESCproperty(String) The property name to use in sorting. One of [/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]. Defaults to /changeLog/updatedDateTime
Nested Schema for data
Read-Only:
a_side(Set of Object) (see below for nested schema)account(Set of Object) (see below for nested schema)additional_info(List of Map of String)bandwidth(Number)change_log(Set of Object) (see below for nested schema)description(String)direction(String)href(String)is_remote(Boolean)name(String)notifications(List of Object) (see below for nested schema)operation(Set of Object) (see below for nested schema)order(Set of Object) (see below for nested schema)project(Set of Object) (see below for nested schema)redundancy(Set of Object) (see below for nested schema)state(String)type(String)uuid(String)z_side(Set of Object) (see below for nested schema)
Nested Schema for data.a_side
Read-Only:
access_point(Set of Object) (see below for nested schema)additional_info(List of Object) (see below for nested schema)service_token(Set of Object) (see below for nested schema)
Nested Schema for data.a_side.access_point
Read-Only:
account(Set of Object) (see below for nested schema)authentication_key(String)gateway(Set of Object) (see below for nested schema)interface(Set of Object) (see below for nested schema)link_protocol(Set of Object) (see below for nested schema)location(Set of Object) (see below for nested schema)network(Set of Object) (see below for nested schema)peering_type(String)port(Set of Object) (see below for nested schema)profile(Set of Object) (see below for nested schema)provider_connection_id(String)role(String)router(Set of Object) (see below for nested schema)seller_region(String)type(String)virtual_device(Set of Object) (see below for nested schema)
Nested Schema for data.a_side.access_point.account
Read-Only:
account_name(String)account_number(Number)global_cust_id(String)global_org_id(String)global_organization_name(String)org_id(Number)organization_name(String)ucm_id(String)
Nested Schema for data.a_side.access_point.gateway
Read-Only:
href(String)uuid(String)
Nested Schema for data.a_side.access_point.interface
Read-Only:
id(Number)type(String)uuid(String)
Nested Schema for data.a_side.access_point.link_protocol
Read-Only:
type(String)vlan_c_tag(Number)vlan_s_tag(Number)vlan_tag(Number)
Nested Schema for data.a_side.access_point.location
Read-Only:
ibx(String)metro_code(String)metro_name(String)region(String)
Nested Schema for data.a_side.access_point.network
Read-Only:
href(String)uuid(String)
Nested Schema for data.a_side.access_point.port
Read-Only:
href(String)name(String)redundancy(Set of Object) (see below for nested schema)uuid(String)
Nested Schema for data.a_side.access_point.port.redundancy
Read-Only:
enabled(Boolean)group(String)priority(String)
Nested Schema for data.a_side.access_point.profile
Read-Only:
access_point_type_configs(List of Object) (see below for nested schema)description(String)href(String)name(String)type(String)uuid(String)
Nested Schema for data.a_side.access_point.profile.access_point_type_configs
Read-Only:
type(String)uuid(String)
Nested Schema for data.a_side.access_point.router
Read-Only:
href(String)uuid(String)
Nested Schema for data.a_side.access_point.virtual_device
Read-Only:
href(String)name(String)type(String)uuid(String)
Nested Schema for data.a_side.additional_info
Read-Only:
key(String)value(String)
Nested Schema for data.a_side.service_token
Read-Only:
description(String)href(String)type(String)uuid(String)
Nested Schema for data.account
Read-Only:
account_name(String)account_number(Number)global_cust_id(String)global_org_id(String)global_organization_name(String)org_id(Number)organization_name(String)ucm_id(String)
Nested Schema for data.change_log
Read-Only:
created_by(String)created_by_email(String)created_by_full_name(String)created_date_time(String)deleted_by(String)deleted_by_email(String)deleted_by_full_name(String)deleted_date_time(String)updated_by(String)updated_by_email(String)updated_by_full_name(String)updated_date_time(String)
Nested Schema for data.notifications
Read-Only:
emails(List of String)send_interval(String)type(String)
Nested Schema for data.operation
Read-Only:
equinix_status(String)errors(List of Object) (see below for nested schema)provider_status(String)
Nested Schema for data.operation.errors
Read-Only:
additional_info(List of Object) (see below for nested schema)correlation_id(String)details(String)error_code(String)error_message(String)help(String)
Nested Schema for data.operation.errors.additional_info
Read-Only:
property(String)reason(String)
Nested Schema for data.order
Read-Only:
billing_tier(String)order_id(String)order_number(String)purchase_order_number(String)term_length(Number)
Nested Schema for data.project
Read-Only:
href(String)project_id(String)
Nested Schema for data.redundancy
Read-Only:
group(String)priority(String)
Nested Schema for data.z_side
Read-Only:
access_point(Set of Object) (see below for nested schema)additional_info(List of Object) (see below for nested schema)service_token(Set of Object) (see below for nested schema)
Nested Schema for data.z_side.access_point
Read-Only:
account(Set of Object) (see below for nested schema)authentication_key(String)gateway(Set of Object) (see below for nested schema)interface(Set of Object) (see below for nested schema)link_protocol(Set of Object) (see below for nested schema)location(Set of Object) (see below for nested schema)network(Set of Object) (see below for nested schema)peering_type(String)port(Set of Object) (see below for nested schema)profile(Set of Object) (see below for nested schema)provider_connection_id(String)role(String)router(Set of Object) (see below for nested schema)seller_region(String)type(String)virtual_device(Set of Object) (see below for nested schema)
Nested Schema for data.z_side.access_point.account
Read-Only:
account_name(String)account_number(Number)global_cust_id(String)global_org_id(String)global_organization_name(String)org_id(Number)organization_name(String)ucm_id(String)
Nested Schema for data.z_side.access_point.gateway
Read-Only:
href(String)uuid(String)
Nested Schema for data.z_side.access_point.interface
Read-Only:
id(Number)type(String)uuid(String)
Nested Schema for data.z_side.access_point.link_protocol
Read-Only:
type(String)vlan_c_tag(Number)vlan_s_tag(Number)vlan_tag(Number)
Nested Schema for data.z_side.access_point.location
Read-Only:
ibx(String)metro_code(String)metro_name(String)region(String)
Nested Schema for data.z_side.access_point.network
Read-Only:
href(String)uuid(String)
Nested Schema for data.z_side.access_point.port
Read-Only:
href(String)name(String)redundancy(Set of Object) (see below for nested schema)uuid(String)
Nested Schema for data.z_side.access_point.port.redundancy
Read-Only:
enabled(Boolean)group(String)priority(String)
Nested Schema for data.z_side.access_point.profile
Read-Only:
access_point_type_configs(List of Object) (see below for nested schema)description(String)href(String)name(String)type(String)uuid(String)
Nested Schema for data.z_side.access_point.profile.access_point_type_configs
Read-Only:
type(String)uuid(String)
Nested Schema for data.z_side.access_point.router
Read-Only:
href(String)uuid(String)
Nested Schema for data.z_side.access_point.virtual_device
Read-Only:
href(String)name(String)type(String)uuid(String)
Nested Schema for data.z_side.additional_info
Read-Only:
key(String)value(String)
Nested Schema for data.z_side.service_token
Read-Only:
description(String)href(String)type(String)uuid(String)