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

iosxe.getCryptoIkev2Policy

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 Crypto IKEv2 Policy configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetCryptoIkev2Policy.Invoke(new()
        {
            Name = "policy1",
        });
    
    });
    
    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.LookupCryptoIkev2Policy(ctx, &iosxe.LookupCryptoIkev2PolicyArgs{
    			Name: "policy1",
    		}, 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.GetCryptoIkev2PolicyArgs;
    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.getCryptoIkev2Policy(GetCryptoIkev2PolicyArgs.builder()
                .name("policy1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_crypto_ikev2_policy(name="policy1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getCryptoIkev2Policy({
        name: "policy1",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getCryptoIkev2Policy
          Arguments:
            name: policy1
    

    Using getCryptoIkev2Policy

    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 getCryptoIkev2Policy(args: GetCryptoIkev2PolicyArgs, opts?: InvokeOptions): Promise<GetCryptoIkev2PolicyResult>
    function getCryptoIkev2PolicyOutput(args: GetCryptoIkev2PolicyOutputArgs, opts?: InvokeOptions): Output<GetCryptoIkev2PolicyResult>
    def get_crypto_ikev2_policy(device: Optional[str] = None,
                                name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetCryptoIkev2PolicyResult
    def get_crypto_ikev2_policy_output(device: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetCryptoIkev2PolicyResult]
    func LookupCryptoIkev2Policy(ctx *Context, args *LookupCryptoIkev2PolicyArgs, opts ...InvokeOption) (*LookupCryptoIkev2PolicyResult, error)
    func LookupCryptoIkev2PolicyOutput(ctx *Context, args *LookupCryptoIkev2PolicyOutputArgs, opts ...InvokeOption) LookupCryptoIkev2PolicyResultOutput

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

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

    The following arguments are supported:

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

    getCryptoIkev2Policy Result

    The following output properties are available:

    Id string
    The path of the retrieved object.
    MatchAddressLocalIps List<string>
    Local address
    MatchFvrf string
    MatchFvrfAny bool
    Any fvrf
    MatchInboundOnly bool
    inbound only for controller
    Name string
    Proposals List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetCryptoIkev2PolicyProposal>
    Specify Proposal
    Device string
    A device name from the provider configuration.
    Id string
    The path of the retrieved object.
    MatchAddressLocalIps []string
    Local address
    MatchFvrf string
    MatchFvrfAny bool
    Any fvrf
    MatchInboundOnly bool
    inbound only for controller
    Name string
    Proposals []GetCryptoIkev2PolicyProposal
    Specify Proposal
    Device string
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    matchAddressLocalIps List<String>
    Local address
    matchFvrf String
    matchFvrfAny Boolean
    Any fvrf
    matchInboundOnly Boolean
    inbound only for controller
    name String
    proposals List<GetCryptoIkev2PolicyProposal>
    Specify Proposal
    device String
    A device name from the provider configuration.
    id string
    The path of the retrieved object.
    matchAddressLocalIps string[]
    Local address
    matchFvrf string
    matchFvrfAny boolean
    Any fvrf
    matchInboundOnly boolean
    inbound only for controller
    name string
    proposals GetCryptoIkev2PolicyProposal[]
    Specify Proposal
    device string
    A device name from the provider configuration.
    id str
    The path of the retrieved object.
    match_address_local_ips Sequence[str]
    Local address
    match_fvrf str
    match_fvrf_any bool
    Any fvrf
    match_inbound_only bool
    inbound only for controller
    name str
    proposals Sequence[GetCryptoIkev2PolicyProposal]
    Specify Proposal
    device str
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    matchAddressLocalIps List<String>
    Local address
    matchFvrf String
    matchFvrfAny Boolean
    Any fvrf
    matchInboundOnly Boolean
    inbound only for controller
    name String
    proposals List<Property Map>
    Specify Proposal
    device String
    A device name from the provider configuration.

    Supporting Types

    GetCryptoIkev2PolicyProposal

    Proposals string
    Specify Proposal
    Proposals string
    Specify Proposal
    proposals String
    Specify Proposal
    proposals string
    Specify Proposal
    proposals str
    Specify Proposal
    proposals String
    Specify Proposal

    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