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
必需的:
operator(字符串)筛选器属性上可能使用的运算符。可以是以下值之一:["=","!=","[不]喜欢","[不]在","ilike"]property(string)要根据其筛选请求的API响应属性。可以是以下值之一:"/type","/name","/project/projectId","/uuuid","/state"values(字符串列表)要应用属性+运算符组合以筛选数据搜索的值
的嵌套架构pagination
可选:
limit(数量)每页请求的元素数量。数字必须介于1和100之间。默认值为20offset分页请求的页面偏移量。第一个元素的索引。默认值为0。
只读:
next(字符串)相对于响应中最后一个项目的URL。previous(字符串)相对于响应中第一个项目的URL。total(数量)返回的元素总数。
的嵌套架构sort
可选:
direction(字符串)排序方向。可以是以下之一:[DESC,ASC],默认为DESCproperty(string)排序中使用的属性名称。可以是以下值之一:/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(字符串)