equinix_fabric_route_filters (Data Source)
Fabric V4 API compatible data resource that allow user to fetch route filter for a given search data set
Additional Documentation:
- Getting Started: https://docs.equinix.com/fabric-cloud-router/bgp/fcr-route-filters/
- API: https://docs.equinix.com/api-catalog/fabricv4/#tag/Route-Filters
Example Usage
data "equinix_fabric_route_filters" "rf_policies" {
filter {
property = "/type"
operator = "="
values = ["BGP_IPv4_PREFIX_FILTER"]
}
filter {
property = "/state"
operator = "="
values = ["PROVISIONED"]
}
filter {
property = "/project/projectId"
operator = "="
values = ["<project_id>"]
}
pagination {
offset = 0
limit = 5
total = 25
}
sort {
direction = "ASC"
property = "/name"
}
}
output "first_rf_uuid" {
value = data.equinix_fabric_route_filters.rf_policies.data.0.uuid
}
output "type" {
value = data.equinix_fabric_route_filters.rf_policies.data.0.type
}
output "state" {
value = data.equinix_fabric_route_filters.rf_policies.data.0.state
}
output "not_matched_rule_action" {
value = data.equinix_fabric_route_filters.rf_policies.data.0.not_matched_rule_action
}
output "connections_count" {
value = data.equinix_fabric_route_filters.rf_policies.data.0.connections_count
}
output "rules_count" {
value = data.equinix_fabric_route_filters.rf_policies.data.0.rules_count
}
Schema
Required
filter(Block List, Min: 1, Max: 10) Filters for the Data Source Search Request. Maximum of 8 total filters. (see below for nested schema)
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 Route Filters (see below for nested schema)id(String) The ID of this resource.
Nested Schema for filter
Required:
operator(String) Possible operators to use on the filter property. Can be one of the following: [ "=", "!=", "[NOT] LIKE", "[NOT] IN", "ILIKE" ]property(String) The API response property which you want to filter your request on. Can be one of the following: "/type", "/name", "/project/projectId", "/uuid", "/state"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
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.total(Number) Total number of elements returned.
Read-Only:
next(String) URL relative to the last item in the response.previous(String) URL relative to the first item in the response.
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. Can be one of the following: [/type, /uuid, /name, /project/projectId, /state, /notMatchedRuleAction, /connectionsCount, /changeLog/createdDateTime, /changeLog/updatedDateTime], Defaults to /changeLog/updatedDateTime
Nested Schema for data
Read-Only:
change(Set of Object) (see below for nested schema)change_log(Set of Object) (see below for nested schema)connections_count(Number)description(String)href(String)name(String)not_matched_rule_action(String)project(Set of Object) (see below for nested schema)rules_count(Number)state(String)type(String)uuid(String)
Nested Schema for data.change
Read-Only:
href(String)type(String)uuid(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.project
Read-Only:
href(String)project_id(String)