Skip to main content

equinix_fabric_ports (Data Source)

Fabric V4 API compatible data resource that allow user to fetch ports by name or uuid

Additional documentation:

Example Usage

data "equinix_fabric_ports" "ports_data_name" {
filters {
name = "<name_of_port||port_prefix>"
}
}


output "id" {
value = data.equinix_fabric_port.ports_data_name.data.0.id
}

output "name" {
value = data.equinix_fabric_port.ports_data_name.data.0.name
}

output "state" {
value = data.equinix_fabric_port.ports_data_name.data.0.state
}

output "account_name" {
value = data.equinix_fabric_port.ports_data_name.data.0.account.0.account_name
}

output "type" {
value = data.equinix_fabric_port.ports_data_name.data.0.type
}

output "bandwidth" {
value = data.equinix_fabric_port.ports_data_name.data.0.bandwidth
}

output "used_bandwidth" {
value = data.equinix_fabric_port.ports_data_name.data.0.used_bandwidth
}

output "encapsulation_type" {
value = data.equinix_fabric_port.ports_data_name.data.0.encapsulation.0.type
}

output "ibx" {
value = data.equinix_fabric_port.ports_data_name.data.0.location.0.ibx
}

output "metro_code" {
value = data.equinix_fabric_port.ports_data_name.data.0.location.0.metro_code
}

output "metro_name" {
value = data.equinix_fabric_port.ports_data_name.data.0.location.0.metro_name
}

output "region" {
value = data.equinix_fabric_port.ports_data_name.data.0.location.0.region
}

output "device_redundancy_enabled" {
value = data.equinix_fabric_port.ports_data_name.data.0.device.0.redundancy.0.enabled
}

output "device_redundancy_priority" {
value = data.equinix_fabric_port.ports_data_name.data.0.device.0.redundancy.0.priority
}

Schema

Optional

  • filter (Block List) List of filter objects for SearchPorts API. Each filter must have property, operator, and value. (see below for nested schema)
  • filters (Block Set, Max: 1, Deprecated) (Deprecated) Use 'filter' instead. (see below for nested schema)

Read-Only

Nested Schema for filter

Required:

  • operator (String) Operator (e.g. =, !=, in, etc.)
  • property (String) Property path (e.g. /name, /uuid, /metroCode, etc.)
  • value (String) Value to filter by.

Nested Schema for filters

Required:

  • name (String) Query Parameter to Get Ports By Name

Nested Schema for data

Read-Only:

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.device

Read-Only:

Nested Schema for data.device.redundancy

Read-Only:

  • enabled (Boolean)
  • group (String)
  • priority (String)

Nested Schema for data.encapsulation

Read-Only:

  • tag_protocol_id (String)
  • type (String)

Nested Schema for data.location

Read-Only:

  • ibx (String)
  • metro_code (String)
  • metro_name (String)
  • region (String)

Nested Schema for data.operation

Read-Only:

  • connection_count (Number)
  • op_status_changed_at (String)
  • operational_status (String)

Nested Schema for data.redundancy

Read-Only:

  • enabled (Boolean)
  • group (String)
  • priority (String)
Was this page helpful?