1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. getPolicyMap
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.getPolicyMap

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This data source can read the Policy Map configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetPolicyMap.Invoke(new()
        {
            Name = "dot1x_policy",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iosxe.LookupPolicyMap(ctx, &iosxe.LookupPolicyMapArgs{
    			Name: "dot1x_policy",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.iosxe.IosxeFunctions;
    import com.pulumi.iosxe.inputs.GetPolicyMapArgs;
    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 = IosxeFunctions.getPolicyMap(GetPolicyMapArgs.builder()
                .name("dot1x_policy")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_policy_map(name="dot1x_policy")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getPolicyMap({
        name: "dot1x_policy",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getPolicyMap
          Arguments:
            name: dot1x_policy
    

    Using getPolicyMap

    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 getPolicyMap(args: GetPolicyMapArgs, opts?: InvokeOptions): Promise<GetPolicyMapResult>
    function getPolicyMapOutput(args: GetPolicyMapOutputArgs, opts?: InvokeOptions): Output<GetPolicyMapResult>
    def get_policy_map(device: Optional[str] = None,
                       name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPolicyMapResult
    def get_policy_map_output(device: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetPolicyMapResult]
    func LookupPolicyMap(ctx *Context, args *LookupPolicyMapArgs, opts ...InvokeOption) (*LookupPolicyMapResult, error)
    func LookupPolicyMapOutput(ctx *Context, args *LookupPolicyMapOutputArgs, opts ...InvokeOption) LookupPolicyMapResultOutput

    > Note: This function is named LookupPolicyMap in the Go SDK.

    public static class GetPolicyMap 
    {
        public static Task<GetPolicyMapResult> InvokeAsync(GetPolicyMapArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyMapResult> Invoke(GetPolicyMapInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPolicyMapResult> getPolicyMap(GetPolicyMapArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: iosxe:index/getPolicyMap:getPolicyMap
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the policy map
    Device string
    A device name from the provider configuration.
    Name string
    Name of the policy map
    Device string
    A device name from the provider configuration.
    name String
    Name of the policy map
    device String
    A device name from the provider configuration.
    name string
    Name of the policy map
    device string
    A device name from the provider configuration.
    name str
    Name of the policy map
    device str
    A device name from the provider configuration.
    name String
    Name of the policy map
    device String
    A device name from the provider configuration.

    getPolicyMap Result

    The following output properties are available:

    Id string
    The path of the retrieved object.
    Name string
    Name of the policy map
    Subscriber bool
    Domain name of the policy map
    Type string
    type of the policy-map
    Device string
    A device name from the provider configuration.
    Id string
    The path of the retrieved object.
    Name string
    Name of the policy map
    Subscriber bool
    Domain name of the policy map
    Type string
    type of the policy-map
    Device string
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    name String
    Name of the policy map
    subscriber Boolean
    Domain name of the policy map
    type String
    type of the policy-map
    device String
    A device name from the provider configuration.
    id string
    The path of the retrieved object.
    name string
    Name of the policy map
    subscriber boolean
    Domain name of the policy map
    type string
    type of the policy-map
    device string
    A device name from the provider configuration.
    id str
    The path of the retrieved object.
    name str
    Name of the policy map
    subscriber bool
    Domain name of the policy map
    type str
    type of the policy-map
    device str
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    name String
    Name of the policy map
    subscriber Boolean
    Domain name of the policy map
    type String
    type of the policy-map
    device String
    A device name from the provider configuration.

    Package Details

    Repository
    iosxe lbrlabs/pulumi-iosxe
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the iosxe Terraform Provider.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs