# equinix\_fabric\_service\_profiles (Data Source)
Fabric V4 API compatible data resource that allow user to fetch Service Profile by name filter criteria
Additional documentation:
* Getting Started:
* API:
## Example Usage[](#example-usage "Direct link to Example Usage")
```
data "equinix_fabric_service_profiles" "test" {
and_filters = true
filter {
property = "/type"
operator = "="
values = ["L2_PROFILE"]
}
filter {
property = "/name"
operator = "="
values = ["SP_ResourceCreation_PFCR"]
}
pagination {
offset = 0
limit = 5
}
sort {
direction = "ASC"
property = "/name"
}
}
output "number_of_returned_service_profiles" {
value = length(data.equinix_fabric_service_profiles.test.data)
}
output "first_service_profile_name" {
value = data.equinix_fabric_service_profiles.test.data.0.name
}
output "first_service_profile_uuid" {
value = data.equinix_fabric_service_profiles.test.data.0.uuid
}
output "first_service_profile_description" {
value = data.equinix_fabric_service_profiles.test.data.0.description
}
output "first_service_profile_state" {
value = data.equinix_fabric_service_profiles.test.data.0.state
}
output "first_service_profile_visibility" {
value = data.equinix_fabric_service_profiles.test.data.0.visibility
}
output "first_service_profile_metros_code" {
value = data.equinix_fabric_service_profiles.test.data.0.metros.0.code
}
output "first_service_profile_metros_name" {
value = data.equinix_fabric_service_profiles.test.data.0.metros.0.name
}
output "first_service_profile_metros_display_name" {
value = data.equinix_fabric_service_profiles.test.data.0.metros.0.display_name
}
output "first_service_profile_type" {
value = data.equinix_fabric_service_profiles.test.data.0.type
}
```
## Schema[](#schema "Direct link to Schema")
### Required[](#required "Direct link to Required")
* `filter` (Block List, Min: 1, Max: 10) Filters for the Data Source Search Request (If and\_filters is not set to true you cannot provide more than one filter block) (see [below for nested schema](#nestedblock--filter))
### Optional[](#optional "Direct link to Optional")
* `and_filters` (Boolean) Optional boolean flag to indicate if the filters will be AND'd together. Defaults to false
* `pagination` (Block Set, Max: 1) Pagination details for the Data Source Search Request (see [below for nested schema](#nestedblock--pagination))
* `sort` (Block List) Filters for the Data Source Search Request (see [below for nested schema](#nestedblock--sort))
* `view_point` (String) flips view between buyer and seller representation. Available values : aSide, zSide. Default value : aSide
### Read-Only[](#read-only "Direct link to Read-Only")
* `data` (List of Object) List of Service Profiles (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) Operators to use on your filtered field with the values given. One of \[=]
* `property` (String) Property to apply operator and values to. One of \[/name /uuid /state /metros/code /visibility /type /project/projectId]
* `values` (List of String) The values that you want to apply the property+operator combination to in order to filter your data search
[]()
### Nested Schema for `pagination`[](#nested-schema-for-pagination "Direct link to nested-schema-for-pagination")
Optional:
* `limit` (Number) Number of elements to be requested per page. Number must be between 1 and 100. Default is 20
* `offset` (Number) The page offset for the pagination request. Index of the first element. Default is 0.
[]()
### Nested Schema for `sort`[](#nested-schema-for-sort "Direct link to nested-schema-for-sort")
Optional:
* `direction` (String) The sorting direction. Can be one of: \[DESC, ASC], Defaults to DESC
* `property` (String) The property name to use in sorting. One of \[/name /uuid /state /location/metroCode /location/metroName /package/code /changeLog/createdDateTime /changeLog/updatedDateTime]. Defaults to /changeLog/updatedDateTime
[]()
### Nested Schema for `data`[](#nested-schema-for-data "Direct link to nested-schema-for-data")
Read-Only:
* `access_point_type_configs` (List of Object) (see [below for nested schema](#nestedobjatt--data--access_point_type_configs))
* `account` (Set of Object) (see [below for nested schema](#nestedobjatt--data--account))
* `allowed_emails` (List of String)
* `change_log` (Set of Object) (see [below for nested schema](#nestedobjatt--data--change_log))
* `custom_fields` (List of Object) (see [below for nested schema](#nestedobjatt--data--custom_fields))
* `description` (String)
* `href` (String)
* `marketing_info` (Set of Object) (see [below for nested schema](#nestedobjatt--data--marketing_info))
* `metros` (List of Object) (see [below for nested schema](#nestedobjatt--data--metros))
* `name` (String)
* `notifications` (List of Object) (see [below for nested schema](#nestedobjatt--data--notifications))
* `ports` (List of Object) (see [below for nested schema](#nestedobjatt--data--ports))
* `project` (Set of Object) (see [below for nested schema](#nestedobjatt--data--project))
* `self_profile` (Boolean)
* `state` (String)
* `tags` (List of String)
* `type` (String)
* `uuid` (String)
* `view_point` (String)
* `virtual_devices` (List of Object) (see [below for nested schema](#nestedobjatt--data--virtual_devices))
* `visibility` (String)
[]()
### Nested Schema for `data.access_point_type_configs`[](#nested-schema-for-dataaccess_point_type_configs "Direct link to nested-schema-for-dataaccess_point_type_configs")
Read-Only:
* `allow_bandwidth_auto_approval` (Boolean)
* `allow_bandwidth_upgrade` (Boolean)
* `allow_custom_bandwidth` (Boolean)
* `allow_remote_connections` (Boolean)
* `api_config` (Set of Object) (see [below for nested schema](#nestedobjatt--data--access_point_type_configs--api_config))
* `authentication_key` (Set of Object) (see [below for nested schema](#nestedobjatt--data--access_point_type_configs--authentication_key))
* `bandwidth_alert_threshold` (Number)
* `connection_label` (String)
* `connection_redundancy_required` (Boolean)
* `enable_auto_generate_service_key` (Boolean)
* `link_protocol_config` (Set of Object) (see [below for nested schema](#nestedobjatt--data--access_point_type_configs--link_protocol_config))
* `selective_redundancy` (Boolean)
* `supported_bandwidths` (List of Number)
* `type` (String)
* `uuid` (String)
[]()
### Nested Schema for `data.access_point_type_configs.api_config`[](#nested-schema-for-dataaccess_point_type_configsapi_config "Direct link to nested-schema-for-dataaccess_point_type_configsapi_config")
Read-Only:
* `allow_over_subscription` (Boolean)
* `api_available` (Boolean)
* `bandwidth_from_api` (Boolean)
* `equinix_managed_port` (Boolean)
* `equinix_managed_vlan` (Boolean)
* `integration_id` (String)
* `over_subscription_limit` (Number)
[]()
### Nested Schema for `data.access_point_type_configs.authentication_key`[](#nested-schema-for-dataaccess_point_type_configsauthentication_key "Direct link to nested-schema-for-dataaccess_point_type_configsauthentication_key")
Read-Only:
* `description` (String)
* `label` (String)
* `required` (Boolean)
[]()
### Nested Schema for `data.access_point_type_configs.link_protocol_config`[](#nested-schema-for-dataaccess_point_type_configslink_protocol_config "Direct link to nested-schema-for-dataaccess_point_type_configslink_protocol_config")
Read-Only:
* `encapsulation` (String)
* `encapsulation_strategy` (String)
* `reuse_vlan_s_tag` (Boolean)
[]()
### 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.custom_fields`[](#nested-schema-for-datacustom_fields "Direct link to nested-schema-for-datacustom_fields")
Read-Only:
* `capture_in_email` (Boolean)
* `data_type` (String)
* `description` (String)
* `label` (String)
* `options` (List of String)
* `required` (Boolean)
[]()
### Nested Schema for `data.marketing_info`[](#nested-schema-for-datamarketing_info "Direct link to nested-schema-for-datamarketing_info")
Read-Only:
* `logo` (String)
* `process_step` (List of Object) (see [below for nested schema](#nestedobjatt--data--marketing_info--process_step))
* `promotion` (Boolean)
[]()
### Nested Schema for `data.marketing_info.process_step`[](#nested-schema-for-datamarketing_infoprocess_step "Direct link to nested-schema-for-datamarketing_infoprocess_step")
Read-Only:
* `description` (String)
* `sub_title` (String)
* `title` (String)
[]()
### Nested Schema for `data.metros`[](#nested-schema-for-datametros "Direct link to nested-schema-for-datametros")
Read-Only:
* `code` (String)
* `display_name` (String)
* `ibxs` (List of String)
* `in_trail` (Boolean)
* `name` (String)
* `seller_regions` (Map of String)
[]()
### Nested Schema for `data.notifications`[](#nested-schema-for-datanotifications "Direct link to nested-schema-for-datanotifications")
Read-Only:
* `emails` (List of String)
* `send_interval` (String)
* `type` (String)
[]()
### Nested Schema for `data.ports`[](#nested-schema-for-dataports "Direct link to nested-schema-for-dataports")
Read-Only:
* `cross_connect_id` (String)
* `location` (Set of Object) (see [below for nested schema](#nestedobjatt--data--ports--location))
* `seller_region` (String)
* `seller_region_description` (String)
* `type` (String)
* `uuid` (String)
[]()
### Nested Schema for `data.ports.location`[](#nested-schema-for-dataportslocation "Direct link to nested-schema-for-dataportslocation")
Read-Only:
* `ibx` (String)
* `metro_code` (String)
* `metro_name` (String)
* `region` (String)
[]()
### Nested Schema for `data.project`[](#nested-schema-for-dataproject "Direct link to nested-schema-for-dataproject")
Read-Only:
* `href` (String)
* `project_id` (String)
[]()
### Nested Schema for `data.virtual_devices`[](#nested-schema-for-datavirtual_devices "Direct link to nested-schema-for-datavirtual_devices")
Read-Only:
* `interface_uuid` (String)
* `location` (Set of Object) (see [below for nested schema](#nestedobjatt--data--virtual_devices--location))
* `type` (String)
* `uuid` (String)
[]()
### Nested Schema for `data.virtual_devices.location`[](#nested-schema-for-datavirtual_deviceslocation "Direct link to nested-schema-for-datavirtual_deviceslocation")
Read-Only:
* `ibx` (String)
* `metro_code` (String)
* `metro_name` (String)
* `region` (String)