Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: sdwan:index/getRoutePolicyDefinition:getRoutePolicyDefinition
arguments:
# arguments dictionary
The 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:
- Default
Action string - Default action, either
accept
orreject
- 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<Get
Route Policy Definition Sequence> - List of ACL sequences
- Type string
- Type
- Version int
- The version of the object
- Default
Action string - Default action, either
accept
orreject
- Description string
- The description of the policy definition
- Id string
- The id of the object
- Name string
- The name of the policy definition
- Sequences
[]Get
Route Policy Definition Sequence - List of ACL sequences
- Type string
- Type
- Version int
- The version of the object
- default
Action String - Default action, either
accept
orreject
- 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<Get
Route Policy Definition Sequence> - List of ACL sequences
- type String
- Type
- version Integer
- The version of the object
- default
Action string - Default action, either
accept
orreject
- description string
- The description of the policy definition
- id string
- The id of the object
- name string
- The name of the policy definition
- sequences
Get
Route Policy Definition Sequence[] - List of ACL sequences
- type string
- Type
- version number
- The version of the object
- default_
action str - Default action, either
accept
orreject
- 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[Get
Route Policy Definition Sequence] - List of ACL sequences
- type str
- Type
- version int
- The version of the object
- default
Action String - Default action, either
accept
orreject
- 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
- Action
Entries List<GetRoute Policy Definition Sequence Action Entry> - List of action entries
- Base
Action string - Base action, either
accept
orreject
- Id int
- Sequence ID
- Ip
Type string - IP version, either
ipv4
oripv6
- Match
Entries List<GetRoute Policy Definition Sequence Match Entry> - List of match entries
- Name string
- Sequence name
- Action
Entries []GetRoute Policy Definition Sequence Action Entry - List of action entries
- Base
Action string - Base action, either
accept
orreject
- Id int
- Sequence ID
- Ip
Type string - IP version, either
ipv4
oripv6
- Match
Entries []GetRoute Policy Definition Sequence Match Entry - List of match entries
- Name string
- Sequence name
- action
Entries List<GetRoute Policy Definition Sequence Action Entry> - List of action entries
- base
Action String - Base action, either
accept
orreject
- id Integer
- Sequence ID
- ip
Type String - IP version, either
ipv4
oripv6
- match
Entries List<GetRoute Policy Definition Sequence Match Entry> - List of match entries
- name String
- Sequence name
- action
Entries GetRoute Policy Definition Sequence Action Entry[] - List of action entries
- base
Action string - Base action, either
accept
orreject
- id number
- Sequence ID
- ip
Type string - IP version, either
ipv4
oripv6
- match
Entries 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
accept
orreject
- id int
- Sequence ID
- ip_
type str - IP version, either
ipv4
oripv6
- match_
entries Sequence[GetRoute Policy Definition Sequence Match Entry] - List of match entries
- name str
- Sequence name
- action
Entries List<Property Map> - List of action entries
- base
Action String - Base action, either
accept
orreject
- id Number
- Sequence ID
- ip
Type String - IP version, either
ipv4
oripv6
- match
Entries List<Property Map> - List of match entries
- name String
- Sequence name
GetRoutePolicyDefinitionSequenceActionEntry
- Aggregator int
- Aggregator
- Aggregator
Ip stringAddress - IP address
- As
Path stringExclude - Space separated list of ASN to exclude
- As
Path stringPrepend - Space separated list of ASN to prepend
- Atomic
Aggregate bool - Atomic aggregate
- Community string
- Community value, e.g.
1000:10000
orinternet
orlocal-AS
- Community
Additive bool - Community additive
- Local
Preference int - Local preference
- Metric int
- Metric
- Metric
Type string - Metric type
- Next
Hop string - Next hop IP
- Omp
Tag int - OMP tag
- Origin string
- Origin
- Originator string
- Originator IP
- Ospf
Tag int - OSPF tag
- Type string
- Type of action entry
- Weight int
- Weight
- Aggregator int
- Aggregator
- Aggregator
Ip stringAddress - IP address
- As
Path stringExclude - Space separated list of ASN to exclude
- As
Path stringPrepend - Space separated list of ASN to prepend
- Atomic
Aggregate bool - Atomic aggregate
- Community string
- Community value, e.g.
1000:10000
orinternet
orlocal-AS
- Community
Additive bool - Community additive
- Local
Preference int - Local preference
- Metric int
- Metric
- Metric
Type string - Metric type
- Next
Hop string - Next hop IP
- Omp
Tag int - OMP tag
- Origin string
- Origin
- Originator string
- Originator IP
- Ospf
Tag int - OSPF tag
- Type string
- Type of action entry
- Weight int
- Weight
- aggregator Integer
- Aggregator
- aggregator
Ip StringAddress - IP address
- as
Path StringExclude - Space separated list of ASN to exclude
- as
Path StringPrepend - Space separated list of ASN to prepend
- atomic
Aggregate Boolean - Atomic aggregate
- community String
- Community value, e.g.
1000:10000
orinternet
orlocal-AS
- community
Additive Boolean - Community additive
- local
Preference Integer - Local preference
- metric Integer
- Metric
- metric
Type String - Metric type
- next
Hop String - Next hop IP
- omp
Tag Integer - OMP tag
- origin String
- Origin
- originator String
- Originator IP
- ospf
Tag Integer - OSPF tag
- type String
- Type of action entry
- weight Integer
- Weight
- aggregator number
- Aggregator
- aggregator
Ip stringAddress - IP address
- as
Path stringExclude - Space separated list of ASN to exclude
- as
Path stringPrepend - Space separated list of ASN to prepend
- atomic
Aggregate boolean - Atomic aggregate
- community string
- Community value, e.g.
1000:10000
orinternet
orlocal-AS
- community
Additive boolean - Community additive
- local
Preference number - Local preference
- metric number
- Metric
- metric
Type string - Metric type
- next
Hop string - Next hop IP
- omp
Tag number - OMP tag
- origin string
- Origin
- originator string
- Originator IP
- ospf
Tag 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:10000
orinternet
orlocal-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
- aggregator
Ip StringAddress - IP address
- as
Path StringExclude - Space separated list of ASN to exclude
- as
Path StringPrepend - Space separated list of ASN to prepend
- atomic
Aggregate Boolean - Atomic aggregate
- community String
- Community value, e.g.
1000:10000
orinternet
orlocal-AS
- community
Additive Boolean - Community additive
- local
Preference Number - Local preference
- metric Number
- Metric
- metric
Type String - Metric type
- next
Hop String - Next hop IP
- omp
Tag Number - OMP tag
- origin String
- Origin
- originator String
- Originator IP
- ospf
Tag Number - OSPF tag
- type String
- Type of action entry
- weight Number
- Weight
GetRoutePolicyDefinitionSequenceMatchEntry
- As
Path stringList Id - AS path list ID
- As
Path intList Version - AS path list version
- Community
List List<string>Ids - Community list IDs
- Community
List stringMatch Flag - Community list match flag
- Community
List List<string>Versions - Community list versions
- Expanded
Community stringList Id - Expanded community list ID
- Expanded
Community intList Version - Expanded community list version
- Extended
Community stringList Id - Extended community list ID
- Extended
Community intList Version - Extended community list version
- Local
Preference int - Local preference
- Metric int
- Metric
- Next
Hop stringPrefix List Id - Next hop prefix list ID
- Next
Hop intPrefix List Version - Next hop prefix list version
- Omp
Tag int - OMP tag
- Origin string
- Origin
- Ospf
Tag int - OSPF tag
- Peer string
- Peer IP
- Prefix
List stringId - Prefix list ID
- Prefix
List intVersion - Prefix list version
- Type string
- Type of match entry
- As
Path stringList Id - AS path list ID
- As
Path intList Version - AS path list version
- Community
List []stringIds - Community list IDs
- Community
List stringMatch Flag - Community list match flag
- Community
List []stringVersions - Community list versions
- Expanded
Community stringList Id - Expanded community list ID
- Expanded
Community intList Version - Expanded community list version
- Extended
Community stringList Id - Extended community list ID
- Extended
Community intList Version - Extended community list version
- Local
Preference int - Local preference
- Metric int
- Metric
- Next
Hop stringPrefix List Id - Next hop prefix list ID
- Next
Hop intPrefix List Version - Next hop prefix list version
- Omp
Tag int - OMP tag
- Origin string
- Origin
- Ospf
Tag int - OSPF tag
- Peer string
- Peer IP
- Prefix
List stringId - Prefix list ID
- Prefix
List intVersion - Prefix list version
- Type string
- Type of match entry
- as
Path StringList Id - AS path list ID
- as
Path IntegerList Version - AS path list version
- community
List List<String>Ids - Community list IDs
- community
List StringMatch Flag - Community list match flag
- community
List List<String>Versions - Community list versions
- expanded
Community StringList Id - Expanded community list ID
- expanded
Community IntegerList Version - Expanded community list version
- extended
Community StringList Id - Extended community list ID
- extended
Community IntegerList Version - Extended community list version
- local
Preference Integer - Local preference
- metric Integer
- Metric
- next
Hop StringPrefix List Id - Next hop prefix list ID
- next
Hop IntegerPrefix List Version - Next hop prefix list version
- omp
Tag Integer - OMP tag
- origin String
- Origin
- ospf
Tag Integer - OSPF tag
- peer String
- Peer IP
- prefix
List StringId - Prefix list ID
- prefix
List IntegerVersion - Prefix list version
- type String
- Type of match entry
- as
Path stringList Id - AS path list ID
- as
Path numberList Version - AS path list version
- community
List string[]Ids - Community list IDs
- community
List stringMatch Flag - Community list match flag
- community
List string[]Versions - Community list versions
- expanded
Community stringList Id - Expanded community list ID
- expanded
Community numberList Version - Expanded community list version
- extended
Community stringList Id - Extended community list ID
- extended
Community numberList Version - Extended community list version
- local
Preference number - Local preference
- metric number
- Metric
- next
Hop stringPrefix List Id - Next hop prefix list ID
- next
Hop numberPrefix List Version - Next hop prefix list version
- omp
Tag number - OMP tag
- origin string
- Origin
- ospf
Tag number - OSPF tag
- peer string
- Peer IP
- prefix
List stringId - Prefix list ID
- prefix
List 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
- as
Path StringList Id - AS path list ID
- as
Path NumberList Version - AS path list version
- community
List List<String>Ids - Community list IDs
- community
List StringMatch Flag - Community list match flag
- community
List List<String>Versions - Community list versions
- expanded
Community StringList Id - Expanded community list ID
- expanded
Community NumberList Version - Expanded community list version
- extended
Community StringList Id - Extended community list ID
- extended
Community NumberList Version - Extended community list version
- local
Preference Number - Local preference
- metric Number
- Metric
- next
Hop StringPrefix List Id - Next hop prefix list ID
- next
Hop NumberPrefix List Version - Next hop prefix list version
- omp
Tag Number - OMP tag
- origin String
- Origin
- ospf
Tag Number - OSPF tag
- peer String
- Peer IP
- prefix
List StringId - Prefix list ID
- prefix
List 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
sdwan
Terraform Provider.