Skip to main content

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:

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

Read-Only

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 20
  • offset (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 DESC
  • property (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:

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)
Was this page helpful?