Equinix v0.21.0 published on Friday, Feb 28, 2025 by Equinix
equinix.fabric.getRouteFilter
Explore with Pulumi AI
Fabric V4 API compatible data resource that allow user to fetch route filter for a given UUID
Additional Documentation:
- Getting Started: https://docs.equinix.com/en-us/Content/Interconnection/FCR/FCR-route-filters.htm
- API: https://developer.equinix.com/dev-docs/fabric/api-reference/fabric-v4-apis#route-filters
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as equinix from "@pulumi/equinix";
const rfPolicy = equinix.fabric.getRouteFilter({
    uuid: "<uuid_of_route_filter",
});
export const id = rfPolicy.then(rfPolicy => rfPolicy.id);
export const type = rfPolicy.then(rfPolicy => rfPolicy.type);
export const state = rfPolicy.then(rfPolicy => rfPolicy.state);
export const notMatchedRulesAction = rfPolicy.then(rfPolicy => rfPolicy.notMatchedRuleAction);
export const connectionsCount = rfPolicy.then(rfPolicy => rfPolicy.connectionsCount);
export const rulesCount = rfPolicy.then(rfPolicy => rfPolicy.rulesCount);
import pulumi
import pulumi_equinix as equinix
rf_policy = equinix.fabric.get_route_filter(uuid="<uuid_of_route_filter")
pulumi.export("id", rf_policy.id)
pulumi.export("type", rf_policy.type)
pulumi.export("state", rf_policy.state)
pulumi.export("notMatchedRulesAction", rf_policy.not_matched_rule_action)
pulumi.export("connectionsCount", rf_policy.connections_count)
pulumi.export("rulesCount", rf_policy.rules_count)
package main
import (
	"github.com/equinix/pulumi-equinix/sdk/go/equinix/fabric"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		rfPolicy, err := fabric.LookupRouteFilter(ctx, &fabric.LookupRouteFilterArgs{
			Uuid: "<uuid_of_route_filter",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", rfPolicy.Id)
		ctx.Export("type", rfPolicy.Type)
		ctx.Export("state", rfPolicy.State)
		ctx.Export("notMatchedRulesAction", rfPolicy.NotMatchedRuleAction)
		ctx.Export("connectionsCount", rfPolicy.ConnectionsCount)
		ctx.Export("rulesCount", rfPolicy.RulesCount)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Equinix = Pulumi.Equinix;
return await Deployment.RunAsync(() => 
{
    var rfPolicy = Equinix.Fabric.GetRouteFilter.Invoke(new()
    {
        Uuid = "<uuid_of_route_filter",
    });
    return new Dictionary<string, object?>
    {
        ["id"] = rfPolicy.Apply(getRouteFilterResult => getRouteFilterResult.Id),
        ["type"] = rfPolicy.Apply(getRouteFilterResult => getRouteFilterResult.Type),
        ["state"] = rfPolicy.Apply(getRouteFilterResult => getRouteFilterResult.State),
        ["notMatchedRulesAction"] = rfPolicy.Apply(getRouteFilterResult => getRouteFilterResult.NotMatchedRuleAction),
        ["connectionsCount"] = rfPolicy.Apply(getRouteFilterResult => getRouteFilterResult.ConnectionsCount),
        ["rulesCount"] = rfPolicy.Apply(getRouteFilterResult => getRouteFilterResult.RulesCount),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.equinix.fabric.FabricFunctions;
import com.pulumi.equinix.fabric.inputs.GetRouteFilterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var rfPolicy = FabricFunctions.getRouteFilter(GetRouteFilterArgs.builder()
            .uuid("<uuid_of_route_filter")
            .build());
        ctx.export("id", rfPolicy.applyValue(getRouteFilterResult -> getRouteFilterResult.id()));
        ctx.export("type", rfPolicy.applyValue(getRouteFilterResult -> getRouteFilterResult.type()));
        ctx.export("state", rfPolicy.applyValue(getRouteFilterResult -> getRouteFilterResult.state()));
        ctx.export("notMatchedRulesAction", rfPolicy.applyValue(getRouteFilterResult -> getRouteFilterResult.notMatchedRuleAction()));
        ctx.export("connectionsCount", rfPolicy.applyValue(getRouteFilterResult -> getRouteFilterResult.connectionsCount()));
        ctx.export("rulesCount", rfPolicy.applyValue(getRouteFilterResult -> getRouteFilterResult.rulesCount()));
    }
}
variables:
  rfPolicy:
    fn::invoke:
      Function: equinix:fabric:getRouteFilter
      Arguments:
        uuid: <uuid_of_route_filter
outputs:
  id: ${rfPolicy.id}
  type: ${rfPolicy.type}
  state: ${rfPolicy.state}
  notMatchedRulesAction: ${rfPolicy.notMatchedRuleAction}
  connectionsCount: ${rfPolicy.connectionsCount}
  rulesCount: ${rfPolicy.rulesCount}
Using getRouteFilter
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRouteFilter(args: GetRouteFilterArgs, opts?: InvokeOptions): Promise<GetRouteFilterResult>
function getRouteFilterOutput(args: GetRouteFilterOutputArgs, opts?: InvokeOptions): Output<GetRouteFilterResult>def get_route_filter(uuid: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetRouteFilterResult
def get_route_filter_output(uuid: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetRouteFilterResult]func LookupRouteFilter(ctx *Context, args *LookupRouteFilterArgs, opts ...InvokeOption) (*LookupRouteFilterResult, error)
func LookupRouteFilterOutput(ctx *Context, args *LookupRouteFilterOutputArgs, opts ...InvokeOption) LookupRouteFilterResultOutput> Note: This function is named LookupRouteFilter in the Go SDK.
public static class GetRouteFilter 
{
    public static Task<GetRouteFilterResult> InvokeAsync(GetRouteFilterArgs args, InvokeOptions? opts = null)
    public static Output<GetRouteFilterResult> Invoke(GetRouteFilterInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRouteFilterResult> getRouteFilter(GetRouteFilterArgs args, InvokeOptions options)
public static Output<GetRouteFilterResult> getRouteFilter(GetRouteFilterArgs args, InvokeOptions options)
fn::invoke:
  function: equinix:fabric/getRouteFilter:getRouteFilter
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Uuid string
- Equinix Assigned ID for Route Filter
- Uuid string
- Equinix Assigned ID for Route Filter
- uuid String
- Equinix Assigned ID for Route Filter
- uuid string
- Equinix Assigned ID for Route Filter
- uuid str
- Equinix Assigned ID for Route Filter
- uuid String
- Equinix Assigned ID for Route Filter
getRouteFilter Result
The following output properties are available:
- ChangeLogs List<GetRoute Filter Change Log> 
- Changes
List<GetRoute Filter Change> 
- An object with the details of the previous change applied on the Route Filter
- ConnectionsCount int
- The number of Fabric Connections that this Route Filter is attached to
- Description string
- Optional description to add to the Route Filter you will be creating
- Href string
- Route filter URI
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the Route Filter
- NotMatched stringRule Action 
- The action that will be taken on ip ranges that don't match the rules present within the Route Filter
- Projects
List<GetRoute Filter Project> 
- The Project object that contains project_id and href that is related to the Fabric Project containing connections the Route Filter can be attached to
- RulesCount int
- The number of Route Filter Rules attached to this Route Filter
- State string
- State of the Route Filter in its lifecycle
- Type string
- Route Filter Type. One of [ "BGPIPv4PREFIXFILTER", "BGPIPv6PREFIXFILTER" ]
- Uuid string
- Equinix Assigned ID for Route Filter
- ChangeLogs []GetRoute Filter Change Log 
- Changes
[]GetRoute Filter Change 
- An object with the details of the previous change applied on the Route Filter
- ConnectionsCount int
- The number of Fabric Connections that this Route Filter is attached to
- Description string
- Optional description to add to the Route Filter you will be creating
- Href string
- Route filter URI
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the Route Filter
- NotMatched stringRule Action 
- The action that will be taken on ip ranges that don't match the rules present within the Route Filter
- Projects
[]GetRoute Filter Project 
- The Project object that contains project_id and href that is related to the Fabric Project containing connections the Route Filter can be attached to
- RulesCount int
- The number of Route Filter Rules attached to this Route Filter
- State string
- State of the Route Filter in its lifecycle
- Type string
- Route Filter Type. One of [ "BGPIPv4PREFIXFILTER", "BGPIPv6PREFIXFILTER" ]
- Uuid string
- Equinix Assigned ID for Route Filter
- changeLogs List<GetRoute Filter Change Log> 
- changes
List<GetRoute Filter Change> 
- An object with the details of the previous change applied on the Route Filter
- connectionsCount Integer
- The number of Fabric Connections that this Route Filter is attached to
- description String
- Optional description to add to the Route Filter you will be creating
- href String
- Route filter URI
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the Route Filter
- notMatched StringRule Action 
- The action that will be taken on ip ranges that don't match the rules present within the Route Filter
- projects
List<GetRoute Filter Project> 
- The Project object that contains project_id and href that is related to the Fabric Project containing connections the Route Filter can be attached to
- rulesCount Integer
- The number of Route Filter Rules attached to this Route Filter
- state String
- State of the Route Filter in its lifecycle
- type String
- Route Filter Type. One of [ "BGPIPv4PREFIXFILTER", "BGPIPv6PREFIXFILTER" ]
- uuid String
- Equinix Assigned ID for Route Filter
- changeLogs GetRoute Filter Change Log[] 
- changes
GetRoute Filter Change[] 
- An object with the details of the previous change applied on the Route Filter
- connectionsCount number
- The number of Fabric Connections that this Route Filter is attached to
- description string
- Optional description to add to the Route Filter you will be creating
- href string
- Route filter URI
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the Route Filter
- notMatched stringRule Action 
- The action that will be taken on ip ranges that don't match the rules present within the Route Filter
- projects
GetRoute Filter Project[] 
- The Project object that contains project_id and href that is related to the Fabric Project containing connections the Route Filter can be attached to
- rulesCount number
- The number of Route Filter Rules attached to this Route Filter
- state string
- State of the Route Filter in its lifecycle
- type string
- Route Filter Type. One of [ "BGPIPv4PREFIXFILTER", "BGPIPv6PREFIXFILTER" ]
- uuid string
- Equinix Assigned ID for Route Filter
- change_logs Sequence[GetRoute Filter Change Log] 
- changes
Sequence[GetRoute Filter Change] 
- An object with the details of the previous change applied on the Route Filter
- connections_count int
- The number of Fabric Connections that this Route Filter is attached to
- description str
- Optional description to add to the Route Filter you will be creating
- href str
- Route filter URI
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the Route Filter
- not_matched_ strrule_ action 
- The action that will be taken on ip ranges that don't match the rules present within the Route Filter
- projects
Sequence[GetRoute Filter Project] 
- The Project object that contains project_id and href that is related to the Fabric Project containing connections the Route Filter can be attached to
- rules_count int
- The number of Route Filter Rules attached to this Route Filter
- state str
- State of the Route Filter in its lifecycle
- type str
- Route Filter Type. One of [ "BGPIPv4PREFIXFILTER", "BGPIPv6PREFIXFILTER" ]
- uuid str
- Equinix Assigned ID for Route Filter
- changeLogs List<Property Map>
- changes List<Property Map>
- An object with the details of the previous change applied on the Route Filter
- connectionsCount Number
- The number of Fabric Connections that this Route Filter is attached to
- description String
- Optional description to add to the Route Filter you will be creating
- href String
- Route filter URI
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the Route Filter
- notMatched StringRule Action 
- The action that will be taken on ip ranges that don't match the rules present within the Route Filter
- projects List<Property Map>
- The Project object that contains project_id and href that is related to the Fabric Project containing connections the Route Filter can be attached to
- rulesCount Number
- The number of Route Filter Rules attached to this Route Filter
- state String
- State of the Route Filter in its lifecycle
- type String
- Route Filter Type. One of [ "BGPIPv4PREFIXFILTER", "BGPIPv6PREFIXFILTER" ]
- uuid String
- Equinix Assigned ID for Route Filter
Supporting Types
GetRouteFilterChange   
- Href string
- The URI of the previous Route Filter Change
- Type string
- Type of change. One of [ "BGP_IPv4_PREFIX_FILTER_UPDATE","BGP_IPv4_PREFIX_FILTER_CREATION","BGP_IPv4_PREFIX_FILTER_DELETION","BGP_IPv6_PREFIX_FILTER_UPDATE","BGP_IPv6_PREFIX_FILTER_CREATION","BGP_IPv6_PREFIX_FILTER_DELETION" ]
- Uuid string
- Unique identifier for the previous change
- Href string
- The URI of the previous Route Filter Change
- Type string
- Type of change. One of [ "BGP_IPv4_PREFIX_FILTER_UPDATE","BGP_IPv4_PREFIX_FILTER_CREATION","BGP_IPv4_PREFIX_FILTER_DELETION","BGP_IPv6_PREFIX_FILTER_UPDATE","BGP_IPv6_PREFIX_FILTER_CREATION","BGP_IPv6_PREFIX_FILTER_DELETION" ]
- Uuid string
- Unique identifier for the previous change
- href String
- The URI of the previous Route Filter Change
- type String
- Type of change. One of [ "BGP_IPv4_PREFIX_FILTER_UPDATE","BGP_IPv4_PREFIX_FILTER_CREATION","BGP_IPv4_PREFIX_FILTER_DELETION","BGP_IPv6_PREFIX_FILTER_UPDATE","BGP_IPv6_PREFIX_FILTER_CREATION","BGP_IPv6_PREFIX_FILTER_DELETION" ]
- uuid String
- Unique identifier for the previous change
- href string
- The URI of the previous Route Filter Change
- type string
- Type of change. One of [ "BGP_IPv4_PREFIX_FILTER_UPDATE","BGP_IPv4_PREFIX_FILTER_CREATION","BGP_IPv4_PREFIX_FILTER_DELETION","BGP_IPv6_PREFIX_FILTER_UPDATE","BGP_IPv6_PREFIX_FILTER_CREATION","BGP_IPv6_PREFIX_FILTER_DELETION" ]
- uuid string
- Unique identifier for the previous change
- href str
- The URI of the previous Route Filter Change
- type str
- Type of change. One of [ "BGP_IPv4_PREFIX_FILTER_UPDATE","BGP_IPv4_PREFIX_FILTER_CREATION","BGP_IPv4_PREFIX_FILTER_DELETION","BGP_IPv6_PREFIX_FILTER_UPDATE","BGP_IPv6_PREFIX_FILTER_CREATION","BGP_IPv6_PREFIX_FILTER_DELETION" ]
- uuid str
- Unique identifier for the previous change
- href String
- The URI of the previous Route Filter Change
- type String
- Type of change. One of [ "BGP_IPv4_PREFIX_FILTER_UPDATE","BGP_IPv4_PREFIX_FILTER_CREATION","BGP_IPv4_PREFIX_FILTER_DELETION","BGP_IPv6_PREFIX_FILTER_UPDATE","BGP_IPv6_PREFIX_FILTER_CREATION","BGP_IPv6_PREFIX_FILTER_DELETION" ]
- uuid String
- Unique identifier for the previous change
GetRouteFilterChangeLog    
- CreatedBy string
- Created by User Key
- CreatedBy stringEmail 
- Created by User Email Address
- CreatedBy stringFull Name 
- Created by User Full Name
- CreatedDate stringTime 
- Created by Date and Time
- DeletedBy string
- Deleted by User Key
- DeletedBy stringEmail 
- Deleted by User Email Address
- DeletedBy stringFull Name 
- Deleted by User Full Name
- DeletedDate stringTime 
- Deleted by Date and Time
- UpdatedBy string
- Updated by User Key
- UpdatedBy stringEmail 
- Updated by User Email Address
- UpdatedBy stringFull Name 
- Updated by User Full Name
- UpdatedDate stringTime 
- Updated by Date and Time
- CreatedBy string
- Created by User Key
- CreatedBy stringEmail 
- Created by User Email Address
- CreatedBy stringFull Name 
- Created by User Full Name
- CreatedDate stringTime 
- Created by Date and Time
- DeletedBy string
- Deleted by User Key
- DeletedBy stringEmail 
- Deleted by User Email Address
- DeletedBy stringFull Name 
- Deleted by User Full Name
- DeletedDate stringTime 
- Deleted by Date and Time
- UpdatedBy string
- Updated by User Key
- UpdatedBy stringEmail 
- Updated by User Email Address
- UpdatedBy stringFull Name 
- Updated by User Full Name
- UpdatedDate stringTime 
- Updated by Date and Time
- createdBy String
- Created by User Key
- createdBy StringEmail 
- Created by User Email Address
- createdBy StringFull Name 
- Created by User Full Name
- createdDate StringTime 
- Created by Date and Time
- deletedBy String
- Deleted by User Key
- deletedBy StringEmail 
- Deleted by User Email Address
- deletedBy StringFull Name 
- Deleted by User Full Name
- deletedDate StringTime 
- Deleted by Date and Time
- updatedBy String
- Updated by User Key
- updatedBy StringEmail 
- Updated by User Email Address
- updatedBy StringFull Name 
- Updated by User Full Name
- updatedDate StringTime 
- Updated by Date and Time
- createdBy string
- Created by User Key
- createdBy stringEmail 
- Created by User Email Address
- createdBy stringFull Name 
- Created by User Full Name
- createdDate stringTime 
- Created by Date and Time
- deletedBy string
- Deleted by User Key
- deletedBy stringEmail 
- Deleted by User Email Address
- deletedBy stringFull Name 
- Deleted by User Full Name
- deletedDate stringTime 
- Deleted by Date and Time
- updatedBy string
- Updated by User Key
- updatedBy stringEmail 
- Updated by User Email Address
- updatedBy stringFull Name 
- Updated by User Full Name
- updatedDate stringTime 
- Updated by Date and Time
- created_by str
- Created by User Key
- created_by_ stremail 
- Created by User Email Address
- created_by_ strfull_ name 
- Created by User Full Name
- created_date_ strtime 
- Created by Date and Time
- deleted_by str
- Deleted by User Key
- deleted_by_ stremail 
- Deleted by User Email Address
- deleted_by_ strfull_ name 
- Deleted by User Full Name
- deleted_date_ strtime 
- Deleted by Date and Time
- updated_by str
- Updated by User Key
- updated_by_ stremail 
- Updated by User Email Address
- updated_by_ strfull_ name 
- Updated by User Full Name
- updated_date_ strtime 
- Updated by Date and Time
- createdBy String
- Created by User Key
- createdBy StringEmail 
- Created by User Email Address
- createdBy StringFull Name 
- Created by User Full Name
- createdDate StringTime 
- Created by Date and Time
- deletedBy String
- Deleted by User Key
- deletedBy StringEmail 
- Deleted by User Email Address
- deletedBy StringFull Name 
- Deleted by User Full Name
- deletedDate StringTime 
- Deleted by Date and Time
- updatedBy String
- Updated by User Key
- updatedBy StringEmail 
- Updated by User Email Address
- updatedBy StringFull Name 
- Updated by User Full Name
- updatedDate StringTime 
- Updated by Date and Time
GetRouteFilterProject   
- href str
- URI of the Fabric Project
- project_id str
- Project id associated with Fabric Project
Package Details
- Repository
- equinix equinix/pulumi-equinix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the equinixTerraform Provider.
