# equinix\_fabric\_ports (Data Source) Fabric V4 API compatible data resource that allow user to fetch ports by name or uuid Additional documentation: * Getting Started: * API: ## Example Usage[​](#example-usage "Direct link to Example Usage") ``` data "equinix_fabric_ports" "ports_data_name" { filters { name = "" } } 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[​](#schema "Direct link to Schema") ### Optional[​](#optional "Direct link to Optional") * `filter` (Block List) List of filter objects for SearchPorts API. Each filter must have property, operator, and value. (see [below for nested schema](#nestedblock--filter)) * `filters` (Block Set, Max: 1, Deprecated) (Deprecated) Use 'filter' instead. (see [below for nested schema](#nestedblock--filters)) ### Read-Only[​](#read-only "Direct link to Read-Only") * `data` (List of Object) List of Ports (see [below for nested schema](#nestedatt--data)) * `id` (String) The ID of this resource. []() ### Nested Schema for `filter`[​](#nested-schema-for-filter "Direct link to 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`[​](#nested-schema-for-filters "Direct link to nested-schema-for-filters") Required: * `name` (String) Query Parameter to Get Ports By Name []() ### Nested Schema for `data`[​](#nested-schema-for-data "Direct link to nested-schema-for-data") Read-Only: * `account` (Set of Object) (see [below for nested schema](#nestedobjatt--data--account)) * `available_bandwidth` (Number) * `bandwidth` (Number) * `change_log` (Set of Object) (see [below for nested schema](#nestedobjatt--data--change_log)) * `description` (String) * `device` (Set of Object) (see [below for nested schema](#nestedobjatt--data--device)) * `encapsulation` (Set of Object) (see [below for nested schema](#nestedobjatt--data--encapsulation)) * `href` (String) * `lag_enabled` (Boolean) * `location` (Set of Object) (see [below for nested schema](#nestedobjatt--data--location)) * `name` (String) * `operation` (Set of Object) (see [below for nested schema](#nestedobjatt--data--operation)) * `redundancy` (Set of Object) (see [below for nested schema](#nestedobjatt--data--redundancy)) * `service_type` (String) * `state` (String) * `type` (String) * `used_bandwidth` (Number) * `uuid` (String) []() ### Nested Schema for `data.account`[​](#nested-schema-for-dataaccount "Direct link to nested-schema-for-dataaccount") 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`[​](#nested-schema-for-datachange_log "Direct link to nested-schema-for-datachange_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`[​](#nested-schema-for-datadevice "Direct link to nested-schema-for-datadevice") Read-Only: * `name` (String) * `redundancy` (Set of Object) (see [below for nested schema](#nestedobjatt--data--device--redundancy)) []() ### Nested Schema for `data.device.redundancy`[​](#nested-schema-for-datadeviceredundancy "Direct link to nested-schema-for-datadeviceredundancy") Read-Only: * `enabled` (Boolean) * `group` (String) * `priority` (String) []() ### Nested Schema for `data.encapsulation`[​](#nested-schema-for-dataencapsulation "Direct link to nested-schema-for-dataencapsulation") Read-Only: * `tag_protocol_id` (String) * `type` (String) []() ### Nested Schema for `data.location`[​](#nested-schema-for-datalocation "Direct link to nested-schema-for-datalocation") Read-Only: * `ibx` (String) * `metro_code` (String) * `metro_name` (String) * `region` (String) []() ### Nested Schema for `data.operation`[​](#nested-schema-for-dataoperation "Direct link to nested-schema-for-dataoperation") Read-Only: * `connection_count` (Number) * `op_status_changed_at` (String) * `operational_status` (String) []() ### Nested Schema for `data.redundancy`[​](#nested-schema-for-dataredundancy "Direct link to nested-schema-for-dataredundancy") Read-Only: * `enabled` (Boolean) * `group` (String) * `priority` (String)