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

iosxe.getCryptoIpsecProfile

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 IPSec Profile configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetCryptoIpsecProfile.Invoke(new()
        {
            Name = "vpn200",
        });
    
    });
    
    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.LookupCryptoIpsecProfile(ctx, &iosxe.LookupCryptoIpsecProfileArgs{
    			Name: "vpn200",
    		}, 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.GetCryptoIpsecProfileArgs;
    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.getCryptoIpsecProfile(GetCryptoIpsecProfileArgs.builder()
                .name("vpn200")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_crypto_ipsec_profile(name="vpn200")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getCryptoIpsecProfile({
        name: "vpn200",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getCryptoIpsecProfile
          Arguments:
            name: vpn200
    

    Using getCryptoIpsecProfile

    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 getCryptoIpsecProfile(args: GetCryptoIpsecProfileArgs, opts?: InvokeOptions): Promise<GetCryptoIpsecProfileResult>
    function getCryptoIpsecProfileOutput(args: GetCryptoIpsecProfileOutputArgs, opts?: InvokeOptions): Output<GetCryptoIpsecProfileResult>
    def get_crypto_ipsec_profile(device: Optional[str] = None,
                                 name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetCryptoIpsecProfileResult
    def get_crypto_ipsec_profile_output(device: Optional[pulumi.Input[str]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetCryptoIpsecProfileResult]
    func LookupCryptoIpsecProfile(ctx *Context, args *LookupCryptoIpsecProfileArgs, opts ...InvokeOption) (*LookupCryptoIpsecProfileResult, error)
    func LookupCryptoIpsecProfileOutput(ctx *Context, args *LookupCryptoIpsecProfileOutputArgs, opts ...InvokeOption) LookupCryptoIpsecProfileResultOutput

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

    public static class GetCryptoIpsecProfile 
    {
        public static Task<GetCryptoIpsecProfileResult> InvokeAsync(GetCryptoIpsecProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetCryptoIpsecProfileResult> Invoke(GetCryptoIpsecProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCryptoIpsecProfileResult> getCryptoIpsecProfile(GetCryptoIpsecProfileArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: iosxe:index/getCryptoIpsecProfile:getCryptoIpsecProfile
      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.

    getCryptoIpsecProfile Result

    The following output properties are available:

    Id string
    The path of the retrieved object.
    Name string
    SetIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile string
    Specify ikev2 Profile
    SetIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile string
    Specify isakmp Profile
    SetTransformSets List<string>
    Specify list of transform sets in priority order
    Device string
    A device name from the provider configuration.
    Id string
    The path of the retrieved object.
    Name string
    SetIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile string
    Specify ikev2 Profile
    SetIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile string
    Specify isakmp Profile
    SetTransformSets []string
    Specify list of transform sets in priority order
    Device string
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    name String
    setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile String
    Specify ikev2 Profile
    setIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile String
    Specify isakmp Profile
    setTransformSets List<String>
    Specify list of transform sets in priority order
    device String
    A device name from the provider configuration.
    id string
    The path of the retrieved object.
    name string
    setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile string
    Specify ikev2 Profile
    setIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile string
    Specify isakmp Profile
    setTransformSets string[]
    Specify list of transform sets in priority order
    device string
    A device name from the provider configuration.
    id str
    The path of the retrieved object.
    name str
    set_isakmp_profile_ikev2_profile_ikev2_profile_case_ikev2_profile str
    Specify ikev2 Profile
    set_isakmp_profile_ikev2_profile_isakmp_profile_case_isakmp_profile str
    Specify isakmp Profile
    set_transform_sets Sequence[str]
    Specify list of transform sets in priority order
    device str
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    name String
    setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile String
    Specify ikev2 Profile
    setIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile String
    Specify isakmp Profile
    setTransformSets List<String>
    Specify list of transform sets in priority order
    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