Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi
sdwan.getRewriteRulePolicyDefinition
Explore with Pulumi AI
This data source can read the Rewrite Rule Policy Definition .
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdwan from "@pulumi/sdwan";
const example = sdwan.getRewriteRulePolicyDefinition({
id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
});
import pulumi
import pulumi_sdwan as sdwan
example = sdwan.get_rewrite_rule_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.LookupRewriteRulePolicyDefinition(ctx, &sdwan.LookupRewriteRulePolicyDefinitionArgs{
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.GetRewriteRulePolicyDefinition.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.GetRewriteRulePolicyDefinitionArgs;
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.getRewriteRulePolicyDefinition(GetRewriteRulePolicyDefinitionArgs.builder()
.id("f6b2c44c-693c-4763-b010-895aa3d236bd")
.build());
}
}
variables:
example:
fn::invoke:
Function: sdwan:getRewriteRulePolicyDefinition
Arguments:
id: f6b2c44c-693c-4763-b010-895aa3d236bd
Using getRewriteRulePolicyDefinition
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 getRewriteRulePolicyDefinition(args: GetRewriteRulePolicyDefinitionArgs, opts?: InvokeOptions): Promise<GetRewriteRulePolicyDefinitionResult>
function getRewriteRulePolicyDefinitionOutput(args: GetRewriteRulePolicyDefinitionOutputArgs, opts?: InvokeOptions): Output<GetRewriteRulePolicyDefinitionResult>
def get_rewrite_rule_policy_definition(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRewriteRulePolicyDefinitionResult
def get_rewrite_rule_policy_definition_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRewriteRulePolicyDefinitionResult]
func LookupRewriteRulePolicyDefinition(ctx *Context, args *LookupRewriteRulePolicyDefinitionArgs, opts ...InvokeOption) (*LookupRewriteRulePolicyDefinitionResult, error)
func LookupRewriteRulePolicyDefinitionOutput(ctx *Context, args *LookupRewriteRulePolicyDefinitionOutputArgs, opts ...InvokeOption) LookupRewriteRulePolicyDefinitionResultOutput
> Note: This function is named LookupRewriteRulePolicyDefinition
in the Go SDK.
public static class GetRewriteRulePolicyDefinition
{
public static Task<GetRewriteRulePolicyDefinitionResult> InvokeAsync(GetRewriteRulePolicyDefinitionArgs args, InvokeOptions? opts = null)
public static Output<GetRewriteRulePolicyDefinitionResult> Invoke(GetRewriteRulePolicyDefinitionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRewriteRulePolicyDefinitionResult> getRewriteRulePolicyDefinition(GetRewriteRulePolicyDefinitionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: sdwan:index/getRewriteRulePolicyDefinition:getRewriteRulePolicyDefinition
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
getRewriteRulePolicyDefinition Result
The following output properties are available:
- Description string
- The description of the policy definition
- Id string
- The id of the object
- Name string
- The name of the policy definition
- Rules
List<Get
Rewrite Rule Policy Definition Rule> - List of rules
- Type string
- Type
- Version int
- The version of the object
- Description string
- The description of the policy definition
- Id string
- The id of the object
- Name string
- The name of the policy definition
- Rules
[]Get
Rewrite Rule Policy Definition Rule - List of rules
- Type string
- Type
- Version int
- The version of the object
- description String
- The description of the policy definition
- id String
- The id of the object
- name String
- The name of the policy definition
- rules
List<Get
Rewrite Rule Policy Definition Rule> - List of rules
- type String
- Type
- version Integer
- The version of the object
- description string
- The description of the policy definition
- id string
- The id of the object
- name string
- The name of the policy definition
- rules
Get
Rewrite Rule Policy Definition Rule[] - List of rules
- type string
- Type
- version number
- The version of the object
- description str
- The description of the policy definition
- id str
- The id of the object
- name str
- The name of the policy definition
- rules
Sequence[Get
Rewrite Rule Policy Definition Rule] - List of rules
- type str
- Type
- version int
- The version of the object
- description String
- The description of the policy definition
- id String
- The id of the object
- name String
- The name of the policy definition
- rules List<Property Map>
- List of rules
- type String
- Type
- version Number
- The version of the object
Supporting Types
GetRewriteRulePolicyDefinitionRule
- Class
Map stringId - Class map ID
- Class
Map intVersion - Class map version
- Dscp int
- DSCP
- Layer2Cos int
- Layer2 CoS
- Priority string
- Priority
- Class
Map stringId - Class map ID
- Class
Map intVersion - Class map version
- Dscp int
- DSCP
- Layer2Cos int
- Layer2 CoS
- Priority string
- Priority
- class
Map StringId - Class map ID
- class
Map IntegerVersion - Class map version
- dscp Integer
- DSCP
- layer2Cos Integer
- Layer2 CoS
- priority String
- Priority
- class
Map stringId - Class map ID
- class
Map numberVersion - Class map version
- dscp number
- DSCP
- layer2Cos number
- Layer2 CoS
- priority string
- Priority
- class_
map_ strid - Class map ID
- class_
map_ intversion - Class map version
- dscp int
- DSCP
- layer2_
cos int - Layer2 CoS
- priority str
- Priority
- class
Map StringId - Class map ID
- class
Map NumberVersion - Class map version
- dscp Number
- DSCP
- layer2Cos Number
- Layer2 CoS
- priority String
- Priority
Package Details
- Repository
- sdwan pulumi/pulumi-sdwan
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sdwan
Terraform Provider.