equinix_fabric_route_filters(数据源)
Fabric V4 API 兼容的数据资源,允许用户获取给定搜索数据集的路由过滤器。
补充文件:
- 入门指南:https://docs.equinix.com/fabric-cloud-router/bgp/fcr-route-filters/
- API:https://docs.equinix.com/api-catalog/fabricv4/#tag/Route-Filters
用法示例
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
}
模式
需要
filter(阻止列表,最小值:1,最大值:10)数据源搜索请求的筛选器。最多可设置 8 个筛选器。(嵌套架构请参见下方)
可选
只读
data(对象列表)路由过滤器列表(有关嵌套模式,请参见下文)id(字符串)此资源的 ID。
filter 的嵌套模式
必需的:
operator(字符串)可用于筛选属性的运算符。可以是以下运算符之一:[ "=", "!=", "[NOT] LIKE", "[NOT] IN", "ILIKE" ]property(字符串)用于筛选请求的 API 响应属性。可以是以下值之一:"/type", "/name", "/project/projectId", "/uuid", "/state"values(字符串列表)要应用属性+运算符组合以筛选数据搜索的值
pagination 的嵌套模式
选修的:
limit(数字)每页请求的元素数量。数字必须介于 1 和 100 之间。默认值为 20。offset(数字)分页请求的页面偏移量。第一个元素的索引。默认值为 0。total(数字)返回的元素总数。
只读:
next(字符串)相对于响应中最后一个项目的 URL。previous(字符串)相对于响应中第一个项目的 URL。
sort 的嵌套模式
选修的:
direction(字符串)排序方向。可以是以下值之一:[DESC, ASC],默认为 DESC。property(字符串)用于排序的属性名称。可以是以下值之一:[/type, /uuid, /name, /project/projectId, /state, /notMatchedRuleAction, /connectionsCount, /changeLog/createdDateTime, /changeLog/updatedDateTime],默认为 /changeLog/updatedDateTime
data 的嵌套模式
只读:
change(对象集合)(有关嵌套模式,请参见下文)change_log(对象集合)(有关嵌套模式,请参见下文)connections_count(数字)description(字符串)href(字符串)name(字符串)not_matched_rule_action(字符串)project(对象集合)(有关嵌套模式,请参见下文)rules_count(数字)state(字符串)type(字符串)uuid(字符串)
data.change 的嵌套模式
只读:
href(字符串)type(字符串)uuid(字符串)
data.change_log 的嵌套模式
只读:
created_by(字符串)created_by_email(字符串)created_by_full_name(字符串)created_date_time(字符串)deleted_by(字符串)deleted_by_email(字符串)deleted_by_full_name(字符串)deleted_date_time(字符串)updated_by(字符串)updated_by_email(字符串)updated_by_full_name(字符串)updated_date_time(字符串)
data.project 的嵌套模式
只读:
href(字符串)project_id(字符串)