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

iosxe.getPolicyMapEvent

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 Event configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetPolicyMapEvent.Invoke(new()
        {
            EventType = "authentication-success",
            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.LookupPolicyMapEvent(ctx, &iosxe.LookupPolicyMapEventArgs{
    			EventType: "authentication-success",
    			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.GetPolicyMapEventArgs;
    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.getPolicyMapEvent(GetPolicyMapEventArgs.builder()
                .eventType("authentication-success")
                .name("dot1x_policy")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_policy_map_event(event_type="authentication-success",
        name="dot1x_policy")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getPolicyMapEvent({
        eventType: "authentication-success",
        name: "dot1x_policy",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getPolicyMapEvent
          Arguments:
            eventType: authentication-success
            name: dot1x_policy
    

    Using getPolicyMapEvent

    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 getPolicyMapEvent(args: GetPolicyMapEventArgs, opts?: InvokeOptions): Promise<GetPolicyMapEventResult>
    function getPolicyMapEventOutput(args: GetPolicyMapEventOutputArgs, opts?: InvokeOptions): Output<GetPolicyMapEventResult>
    def get_policy_map_event(device: Optional[str] = None,
                             event_type: Optional[str] = None,
                             name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetPolicyMapEventResult
    def get_policy_map_event_output(device: Optional[pulumi.Input[str]] = None,
                             event_type: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetPolicyMapEventResult]
    func LookupPolicyMapEvent(ctx *Context, args *LookupPolicyMapEventArgs, opts ...InvokeOption) (*LookupPolicyMapEventResult, error)
    func LookupPolicyMapEventOutput(ctx *Context, args *LookupPolicyMapEventOutputArgs, opts ...InvokeOption) LookupPolicyMapEventResultOutput

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

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

    The following arguments are supported:

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

    getPolicyMapEvent Result

    The following output properties are available:

    ClassNumbers List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetPolicyMapEventClassNumber>
    class number, 1 for 1st class, 2 for 2nd...
    EventType string
    Id string
    The path of the retrieved object.
    MatchType string
    Name string
    Name of the policy map
    Device string
    A device name from the provider configuration.
    ClassNumbers []GetPolicyMapEventClassNumber
    class number, 1 for 1st class, 2 for 2nd...
    EventType string
    Id string
    The path of the retrieved object.
    MatchType string
    Name string
    Name of the policy map
    Device string
    A device name from the provider configuration.
    classNumbers List<GetPolicyMapEventClassNumber>
    class number, 1 for 1st class, 2 for 2nd...
    eventType String
    id String
    The path of the retrieved object.
    matchType String
    name String
    Name of the policy map
    device String
    A device name from the provider configuration.
    classNumbers GetPolicyMapEventClassNumber[]
    class number, 1 for 1st class, 2 for 2nd...
    eventType string
    id string
    The path of the retrieved object.
    matchType string
    name string
    Name of the policy map
    device string
    A device name from the provider configuration.
    class_numbers Sequence[GetPolicyMapEventClassNumber]
    class number, 1 for 1st class, 2 for 2nd...
    event_type str
    id str
    The path of the retrieved object.
    match_type str
    name str
    Name of the policy map
    device str
    A device name from the provider configuration.
    classNumbers List<Property Map>
    class number, 1 for 1st class, 2 for 2nd...
    eventType String
    id String
    The path of the retrieved object.
    matchType String
    name String
    Name of the policy map
    device String
    A device name from the provider configuration.

    Supporting Types

    GetPolicyMapEventClassNumber

    ActionNumbers List<Lbrlabs.PulumiPackage.Iosxe.Inputs.GetPolicyMapEventClassNumberActionNumber>
    action number, 1 for 1st class, 2 for 2nd...
    Class string
    The class type this control policy-map triggers upon
    ExecutionType string
    Number int
    ActionNumbers []GetPolicyMapEventClassNumberActionNumber
    action number, 1 for 1st class, 2 for 2nd...
    Class string
    The class type this control policy-map triggers upon
    ExecutionType string
    Number int
    actionNumbers List<GetPolicyMapEventClassNumberActionNumber>
    action number, 1 for 1st class, 2 for 2nd...
    class_ String
    The class type this control policy-map triggers upon
    executionType String
    number Integer
    actionNumbers GetPolicyMapEventClassNumberActionNumber[]
    action number, 1 for 1st class, 2 for 2nd...
    class string
    The class type this control policy-map triggers upon
    executionType string
    number number
    action_numbers Sequence[GetPolicyMapEventClassNumberActionNumber]
    action number, 1 for 1st class, 2 for 2nd...
    class_ str
    The class type this control policy-map triggers upon
    execution_type str
    number int
    actionNumbers List<Property Map>
    action number, 1 for 1st class, 2 for 2nd...
    class String
    The class type this control policy-map triggers upon
    executionType String
    number Number

    GetPolicyMapEventClassNumberActionNumber

    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