Cisco Catalyst SD-WAN v0.3.0 published on Friday, Mar 28, 2025 by Pulumi
sdwan.getRoutePolicyDefinition
Explore with Pulumi AI
This data source can read the Route Policy Definition .
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdwan from "@pulumi/sdwan";
const example = sdwan.getRoutePolicyDefinition({
    id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
});
import pulumi
import pulumi_sdwan as sdwan
example = sdwan.get_route_policy_definition(id="f6b2c44c-693c-4763-b010-895aa3d236bd")
package main
import (
	"github.com/pulumi/pulumi-sdwan/sdk/go/sdwan"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sdwan.LookupRoutePolicyDefinition(ctx, &sdwan.LookupRoutePolicyDefinitionArgs{
			Id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sdwan = Pulumi.Sdwan;
return await Deployment.RunAsync(() => 
{
    var example = Sdwan.GetRoutePolicyDefinition.Invoke(new()
    {
        Id = "f6b2c44c-693c-4763-b010-895aa3d236bd",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdwan.SdwanFunctions;
import com.pulumi.sdwan.inputs.GetRoutePolicyDefinitionArgs;
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 example = SdwanFunctions.getRoutePolicyDefinition(GetRoutePolicyDefinitionArgs.builder()
            .id("f6b2c44c-693c-4763-b010-895aa3d236bd")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: sdwan:getRoutePolicyDefinition
      arguments:
        id: f6b2c44c-693c-4763-b010-895aa3d236bd
Using getRoutePolicyDefinition
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 getRoutePolicyDefinition(args: GetRoutePolicyDefinitionArgs, opts?: InvokeOptions): Promise<GetRoutePolicyDefinitionResult>
function getRoutePolicyDefinitionOutput(args: GetRoutePolicyDefinitionOutputArgs, opts?: InvokeOptions): Output<GetRoutePolicyDefinitionResult>def get_route_policy_definition(id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetRoutePolicyDefinitionResult
def get_route_policy_definition_output(id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetRoutePolicyDefinitionResult]func LookupRoutePolicyDefinition(ctx *Context, args *LookupRoutePolicyDefinitionArgs, opts ...InvokeOption) (*LookupRoutePolicyDefinitionResult, error)
func LookupRoutePolicyDefinitionOutput(ctx *Context, args *LookupRoutePolicyDefinitionOutputArgs, opts ...InvokeOption) LookupRoutePolicyDefinitionResultOutput> Note: This function is named LookupRoutePolicyDefinition in the Go SDK.
public static class GetRoutePolicyDefinition 
{
    public static Task<GetRoutePolicyDefinitionResult> InvokeAsync(GetRoutePolicyDefinitionArgs args, InvokeOptions? opts = null)
    public static Output<GetRoutePolicyDefinitionResult> Invoke(GetRoutePolicyDefinitionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRoutePolicyDefinitionResult> getRoutePolicyDefinition(GetRoutePolicyDefinitionArgs args, InvokeOptions options)
public static Output<GetRoutePolicyDefinitionResult> getRoutePolicyDefinition(GetRoutePolicyDefinitionArgs args, InvokeOptions options)
fn::invoke:
  function: sdwan:index/getRoutePolicyDefinition:getRoutePolicyDefinition
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- The id of the object
- Id string
- The id of the object
- id String
- The id of the object
- id string
- The id of the object
- id str
- The id of the object
- id String
- The id of the object
getRoutePolicyDefinition Result
The following output properties are available:
- DefaultAction string
- Default action, either acceptorreject
- Description string
- The description of the policy definition
- Id string
- The id of the object
- Name string
- The name of the policy definition
- Sequences
List<GetRoute Policy Definition Sequence> 
- List of ACL sequences
- Type string
- Type
- Version int
- The version of the object
- DefaultAction string
- Default action, either acceptorreject
- Description string
- The description of the policy definition
- Id string
- The id of the object
- Name string
- The name of the policy definition
- Sequences
[]GetRoute Policy Definition Sequence 
- List of ACL sequences
- Type string
- Type
- Version int
- The version of the object
- defaultAction String
- Default action, either acceptorreject
- description String
- The description of the policy definition
- id String
- The id of the object
- name String
- The name of the policy definition
- sequences
List<GetRoute Policy Definition Sequence> 
- List of ACL sequences
- type String
- Type
- version Integer
- The version of the object
- defaultAction string
- Default action, either acceptorreject
- description string
- The description of the policy definition
- id string
- The id of the object
- name string
- The name of the policy definition
- sequences
GetRoute Policy Definition Sequence[] 
- List of ACL sequences
- type string
- Type
- version number
- The version of the object
- default_action str
- Default action, either acceptorreject
- description str
- The description of the policy definition
- id str
- The id of the object
- name str
- The name of the policy definition
- sequences
Sequence[GetRoute Policy Definition Sequence] 
- List of ACL sequences
- type str
- Type
- version int
- The version of the object
- defaultAction String
- Default action, either acceptorreject
- description String
- The description of the policy definition
- id String
- The id of the object
- name String
- The name of the policy definition
- sequences List<Property Map>
- List of ACL sequences
- type String
- Type
- version Number
- The version of the object
Supporting Types
GetRoutePolicyDefinitionSequence    
- ActionEntries List<GetRoute Policy Definition Sequence Action Entry> 
- List of action entries
- BaseAction string
- Base action, either acceptorreject
- Id int
- Sequence ID
- IpType string
- IP version, either ipv4oripv6
- MatchEntries List<GetRoute Policy Definition Sequence Match Entry> 
- List of match entries
- Name string
- Sequence name
- ActionEntries []GetRoute Policy Definition Sequence Action Entry 
- List of action entries
- BaseAction string
- Base action, either acceptorreject
- Id int
- Sequence ID
- IpType string
- IP version, either ipv4oripv6
- MatchEntries []GetRoute Policy Definition Sequence Match Entry 
- List of match entries
- Name string
- Sequence name
- actionEntries List<GetRoute Policy Definition Sequence Action Entry> 
- List of action entries
- baseAction String
- Base action, either acceptorreject
- id Integer
- Sequence ID
- ipType String
- IP version, either ipv4oripv6
- matchEntries List<GetRoute Policy Definition Sequence Match Entry> 
- List of match entries
- name String
- Sequence name
- actionEntries GetRoute Policy Definition Sequence Action Entry[] 
- List of action entries
- baseAction string
- Base action, either acceptorreject
- id number
- Sequence ID
- ipType string
- IP version, either ipv4oripv6
- matchEntries GetRoute Policy Definition Sequence Match Entry[] 
- List of match entries
- name string
- Sequence name
- action_entries Sequence[GetRoute Policy Definition Sequence Action Entry] 
- List of action entries
- base_action str
- Base action, either acceptorreject
- id int
- Sequence ID
- ip_type str
- IP version, either ipv4oripv6
- match_entries Sequence[GetRoute Policy Definition Sequence Match Entry] 
- List of match entries
- name str
- Sequence name
- actionEntries List<Property Map>
- List of action entries
- baseAction String
- Base action, either acceptorreject
- id Number
- Sequence ID
- ipType String
- IP version, either ipv4oripv6
- matchEntries List<Property Map>
- List of match entries
- name String
- Sequence name
GetRoutePolicyDefinitionSequenceActionEntry      
- Aggregator int
- Aggregator
- AggregatorIp stringAddress 
- IP address
- AsPath stringExclude 
- Space separated list of ASN to exclude
- AsPath stringPrepend 
- Space separated list of ASN to prepend
- AtomicAggregate bool
- Atomic aggregate
- Community string
- Community value, e.g. 1000:10000orinternetorlocal-AS
- CommunityAdditive bool
- Community additive
- LocalPreference int
- Local preference
- Metric int
- Metric
- MetricType string
- Metric type
- NextHop string
- Next hop IP
- OmpTag int
- OMP tag
- Origin string
- Origin
- Originator string
- Originator IP
- OspfTag int
- OSPF tag
- Type string
- Type of action entry
- Weight int
- Weight
- Aggregator int
- Aggregator
- AggregatorIp stringAddress 
- IP address
- AsPath stringExclude 
- Space separated list of ASN to exclude
- AsPath stringPrepend 
- Space separated list of ASN to prepend
- AtomicAggregate bool
- Atomic aggregate
- Community string
- Community value, e.g. 1000:10000orinternetorlocal-AS
- CommunityAdditive bool
- Community additive
- LocalPreference int
- Local preference
- Metric int
- Metric
- MetricType string
- Metric type
- NextHop string
- Next hop IP
- OmpTag int
- OMP tag
- Origin string
- Origin
- Originator string
- Originator IP
- OspfTag int
- OSPF tag
- Type string
- Type of action entry
- Weight int
- Weight
- aggregator Integer
- Aggregator
- aggregatorIp StringAddress 
- IP address
- asPath StringExclude 
- Space separated list of ASN to exclude
- asPath StringPrepend 
- Space separated list of ASN to prepend
- atomicAggregate Boolean
- Atomic aggregate
- community String
- Community value, e.g. 1000:10000orinternetorlocal-AS
- communityAdditive Boolean
- Community additive
- localPreference Integer
- Local preference
- metric Integer
- Metric
- metricType String
- Metric type
- nextHop String
- Next hop IP
- ompTag Integer
- OMP tag
- origin String
- Origin
- originator String
- Originator IP
- ospfTag Integer
- OSPF tag
- type String
- Type of action entry
- weight Integer
- Weight
- aggregator number
- Aggregator
- aggregatorIp stringAddress 
- IP address
- asPath stringExclude 
- Space separated list of ASN to exclude
- asPath stringPrepend 
- Space separated list of ASN to prepend
- atomicAggregate boolean
- Atomic aggregate
- community string
- Community value, e.g. 1000:10000orinternetorlocal-AS
- communityAdditive boolean
- Community additive
- localPreference number
- Local preference
- metric number
- Metric
- metricType string
- Metric type
- nextHop string
- Next hop IP
- ompTag number
- OMP tag
- origin string
- Origin
- originator string
- Originator IP
- ospfTag number
- OSPF tag
- type string
- Type of action entry
- weight number
- Weight
- aggregator int
- Aggregator
- aggregator_ip_ straddress 
- IP address
- as_path_ strexclude 
- Space separated list of ASN to exclude
- as_path_ strprepend 
- Space separated list of ASN to prepend
- atomic_aggregate bool
- Atomic aggregate
- community str
- Community value, e.g. 1000:10000orinternetorlocal-AS
- community_additive bool
- Community additive
- local_preference int
- Local preference
- metric int
- Metric
- metric_type str
- Metric type
- next_hop str
- Next hop IP
- omp_tag int
- OMP tag
- origin str
- Origin
- originator str
- Originator IP
- ospf_tag int
- OSPF tag
- type str
- Type of action entry
- weight int
- Weight
- aggregator Number
- Aggregator
- aggregatorIp StringAddress 
- IP address
- asPath StringExclude 
- Space separated list of ASN to exclude
- asPath StringPrepend 
- Space separated list of ASN to prepend
- atomicAggregate Boolean
- Atomic aggregate
- community String
- Community value, e.g. 1000:10000orinternetorlocal-AS
- communityAdditive Boolean
- Community additive
- localPreference Number
- Local preference
- metric Number
- Metric
- metricType String
- Metric type
- nextHop String
- Next hop IP
- ompTag Number
- OMP tag
- origin String
- Origin
- originator String
- Originator IP
- ospfTag Number
- OSPF tag
- type String
- Type of action entry
- weight Number
- Weight
GetRoutePolicyDefinitionSequenceMatchEntry      
- AsPath stringList Id 
- AS path list ID
- AsPath intList Version 
- AS path list version
- CommunityList List<string>Ids 
- Community list IDs
- CommunityList stringMatch Flag 
- Community list match flag
- CommunityList List<string>Versions 
- Community list versions
- ExpandedCommunity stringList Id 
- Expanded community list ID
- ExpandedCommunity intList Version 
- Expanded community list version
- ExtendedCommunity stringList Id 
- Extended community list ID
- ExtendedCommunity intList Version 
- Extended community list version
- LocalPreference int
- Local preference
- Metric int
- Metric
- NextHop stringPrefix List Id 
- Next hop prefix list ID
- NextHop intPrefix List Version 
- Next hop prefix list version
- OmpTag int
- OMP tag
- Origin string
- Origin
- OspfTag int
- OSPF tag
- Peer string
- Peer IP
- PrefixList stringId 
- Prefix list ID
- PrefixList intVersion 
- Prefix list version
- Type string
- Type of match entry
- AsPath stringList Id 
- AS path list ID
- AsPath intList Version 
- AS path list version
- CommunityList []stringIds 
- Community list IDs
- CommunityList stringMatch Flag 
- Community list match flag
- CommunityList []stringVersions 
- Community list versions
- ExpandedCommunity stringList Id 
- Expanded community list ID
- ExpandedCommunity intList Version 
- Expanded community list version
- ExtendedCommunity stringList Id 
- Extended community list ID
- ExtendedCommunity intList Version 
- Extended community list version
- LocalPreference int
- Local preference
- Metric int
- Metric
- NextHop stringPrefix List Id 
- Next hop prefix list ID
- NextHop intPrefix List Version 
- Next hop prefix list version
- OmpTag int
- OMP tag
- Origin string
- Origin
- OspfTag int
- OSPF tag
- Peer string
- Peer IP
- PrefixList stringId 
- Prefix list ID
- PrefixList intVersion 
- Prefix list version
- Type string
- Type of match entry
- asPath StringList Id 
- AS path list ID
- asPath IntegerList Version 
- AS path list version
- communityList List<String>Ids 
- Community list IDs
- communityList StringMatch Flag 
- Community list match flag
- communityList List<String>Versions 
- Community list versions
- expandedCommunity StringList Id 
- Expanded community list ID
- expandedCommunity IntegerList Version 
- Expanded community list version
- extendedCommunity StringList Id 
- Extended community list ID
- extendedCommunity IntegerList Version 
- Extended community list version
- localPreference Integer
- Local preference
- metric Integer
- Metric
- nextHop StringPrefix List Id 
- Next hop prefix list ID
- nextHop IntegerPrefix List Version 
- Next hop prefix list version
- ompTag Integer
- OMP tag
- origin String
- Origin
- ospfTag Integer
- OSPF tag
- peer String
- Peer IP
- prefixList StringId 
- Prefix list ID
- prefixList IntegerVersion 
- Prefix list version
- type String
- Type of match entry
- asPath stringList Id 
- AS path list ID
- asPath numberList Version 
- AS path list version
- communityList string[]Ids 
- Community list IDs
- communityList stringMatch Flag 
- Community list match flag
- communityList string[]Versions 
- Community list versions
- expandedCommunity stringList Id 
- Expanded community list ID
- expandedCommunity numberList Version 
- Expanded community list version
- extendedCommunity stringList Id 
- Extended community list ID
- extendedCommunity numberList Version 
- Extended community list version
- localPreference number
- Local preference
- metric number
- Metric
- nextHop stringPrefix List Id 
- Next hop prefix list ID
- nextHop numberPrefix List Version 
- Next hop prefix list version
- ompTag number
- OMP tag
- origin string
- Origin
- ospfTag number
- OSPF tag
- peer string
- Peer IP
- prefixList stringId 
- Prefix list ID
- prefixList numberVersion 
- Prefix list version
- type string
- Type of match entry
- as_path_ strlist_ id 
- AS path list ID
- as_path_ intlist_ version 
- AS path list version
- community_list_ Sequence[str]ids 
- Community list IDs
- community_list_ strmatch_ flag 
- Community list match flag
- community_list_ Sequence[str]versions 
- Community list versions
- expanded_community_ strlist_ id 
- Expanded community list ID
- expanded_community_ intlist_ version 
- Expanded community list version
- extended_community_ strlist_ id 
- Extended community list ID
- extended_community_ intlist_ version 
- Extended community list version
- local_preference int
- Local preference
- metric int
- Metric
- next_hop_ strprefix_ list_ id 
- Next hop prefix list ID
- next_hop_ intprefix_ list_ version 
- Next hop prefix list version
- omp_tag int
- OMP tag
- origin str
- Origin
- ospf_tag int
- OSPF tag
- peer str
- Peer IP
- prefix_list_ strid 
- Prefix list ID
- prefix_list_ intversion 
- Prefix list version
- type str
- Type of match entry
- asPath StringList Id 
- AS path list ID
- asPath NumberList Version 
- AS path list version
- communityList List<String>Ids 
- Community list IDs
- communityList StringMatch Flag 
- Community list match flag
- communityList List<String>Versions 
- Community list versions
- expandedCommunity StringList Id 
- Expanded community list ID
- expandedCommunity NumberList Version 
- Expanded community list version
- extendedCommunity StringList Id 
- Extended community list ID
- extendedCommunity NumberList Version 
- Extended community list version
- localPreference Number
- Local preference
- metric Number
- Metric
- nextHop StringPrefix List Id 
- Next hop prefix list ID
- nextHop NumberPrefix List Version 
- Next hop prefix list version
- ompTag Number
- OMP tag
- origin String
- Origin
- ospfTag Number
- OSPF tag
- peer String
- Peer IP
- prefixList StringId 
- Prefix list ID
- prefixList NumberVersion 
- Prefix list version
- type String
- Type of match entry
Package Details
- Repository
- sdwan pulumi/pulumi-sdwan
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the sdwanTerraform Provider.
