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

iosxe.getCryptoIkev2Profile

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

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetCryptoIkev2Profile.Invoke(new()
        {
            Name = "profile1",
        });
    
    });
    
    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.LookupCryptoIkev2Profile(ctx, &iosxe.LookupCryptoIkev2ProfileArgs{
    			Name: "profile1",
    		}, 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.GetCryptoIkev2ProfileArgs;
    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.getCryptoIkev2Profile(GetCryptoIkev2ProfileArgs.builder()
                .name("profile1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_crypto_ikev2_profile(name="profile1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getCryptoIkev2Profile({
        name: "profile1",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getCryptoIkev2Profile
          Arguments:
            name: profile1
    

    Using getCryptoIkev2Profile

    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 getCryptoIkev2Profile(args: GetCryptoIkev2ProfileArgs, opts?: InvokeOptions): Promise<GetCryptoIkev2ProfileResult>
    function getCryptoIkev2ProfileOutput(args: GetCryptoIkev2ProfileOutputArgs, opts?: InvokeOptions): Output<GetCryptoIkev2ProfileResult>
    def get_crypto_ikev2_profile(device: Optional[str] = None,
                                 name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetCryptoIkev2ProfileResult
    def get_crypto_ikev2_profile_output(device: Optional[pulumi.Input[str]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetCryptoIkev2ProfileResult]
    func LookupCryptoIkev2Profile(ctx *Context, args *LookupCryptoIkev2ProfileArgs, opts ...InvokeOption) (*LookupCryptoIkev2ProfileResult, error)
    func LookupCryptoIkev2ProfileOutput(ctx *Context, args *LookupCryptoIkev2ProfileOutputArgs, opts ...InvokeOption) LookupCryptoIkev2ProfileResultOutput

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

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

    getCryptoIkev2Profile Result

    The following output properties are available:

    AuthenticationLocalPreShare bool
    Pre-Shared Key
    AuthenticationRemotePreShare bool
    Pre-Shared Key
    ConfigExchangeRequest bool
    enable config-exchange request
    Description string
    Specify a description of this profile
    DpdInterval int
    DpdQuery string
    DpdRetry int
    Id string
    The path of the retrieved object.
    IdentityLocalAddress string
    address
    IdentityLocalKeyId string
    key-id opaque string - proprietary types of identification key-id string
    KeyringLocal string
    Keyring name
    MatchAddressLocalIp string
    MatchFvrf string
    MatchFvrfAny bool
    Any fvrf
    MatchIdentityRemoteIpv4Addresses List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetCryptoIkev2ProfileMatchIdentityRemoteIpv4Address>
    MatchIdentityRemoteIpv6Prefixes List<string>
    MatchIdentityRemoteKeys List<string>
    key-id opaque string
    MatchInboundOnly bool
    Match the profile for incoming connections only
    Name string
    Device string
    A device name from the provider configuration.
    AuthenticationLocalPreShare bool
    Pre-Shared Key
    AuthenticationRemotePreShare bool
    Pre-Shared Key
    ConfigExchangeRequest bool
    enable config-exchange request
    Description string
    Specify a description of this profile
    DpdInterval int
    DpdQuery string
    DpdRetry int
    Id string
    The path of the retrieved object.
    IdentityLocalAddress string
    address
    IdentityLocalKeyId string
    key-id opaque string - proprietary types of identification key-id string
    KeyringLocal string
    Keyring name
    MatchAddressLocalIp string
    MatchFvrf string
    MatchFvrfAny bool
    Any fvrf
    MatchIdentityRemoteIpv4Addresses []GetCryptoIkev2ProfileMatchIdentityRemoteIpv4Address
    MatchIdentityRemoteIpv6Prefixes []string
    MatchIdentityRemoteKeys []string
    key-id opaque string
    MatchInboundOnly bool
    Match the profile for incoming connections only
    Name string
    Device string
    A device name from the provider configuration.
    authenticationLocalPreShare Boolean
    Pre-Shared Key
    authenticationRemotePreShare Boolean
    Pre-Shared Key
    configExchangeRequest Boolean
    enable config-exchange request
    description String
    Specify a description of this profile
    dpdInterval Integer
    dpdQuery String
    dpdRetry Integer
    id String
    The path of the retrieved object.
    identityLocalAddress String
    address
    identityLocalKeyId String
    key-id opaque string - proprietary types of identification key-id string
    keyringLocal String
    Keyring name
    matchAddressLocalIp String
    matchFvrf String
    matchFvrfAny Boolean
    Any fvrf
    matchIdentityRemoteIpv4Addresses List<GetCryptoIkev2ProfileMatchIdentityRemoteIpv4Address>
    matchIdentityRemoteIpv6Prefixes List<String>
    matchIdentityRemoteKeys List<String>
    key-id opaque string
    matchInboundOnly Boolean
    Match the profile for incoming connections only
    name String
    device String
    A device name from the provider configuration.
    authenticationLocalPreShare boolean
    Pre-Shared Key
    authenticationRemotePreShare boolean
    Pre-Shared Key
    configExchangeRequest boolean
    enable config-exchange request
    description string
    Specify a description of this profile
    dpdInterval number
    dpdQuery string
    dpdRetry number
    id string
    The path of the retrieved object.
    identityLocalAddress string
    address
    identityLocalKeyId string
    key-id opaque string - proprietary types of identification key-id string
    keyringLocal string
    Keyring name
    matchAddressLocalIp string
    matchFvrf string
    matchFvrfAny boolean
    Any fvrf
    matchIdentityRemoteIpv4Addresses GetCryptoIkev2ProfileMatchIdentityRemoteIpv4Address[]
    matchIdentityRemoteIpv6Prefixes string[]
    matchIdentityRemoteKeys string[]
    key-id opaque string
    matchInboundOnly boolean
    Match the profile for incoming connections only
    name string
    device string
    A device name from the provider configuration.
    authentication_local_pre_share bool
    Pre-Shared Key
    authentication_remote_pre_share bool
    Pre-Shared Key
    config_exchange_request bool
    enable config-exchange request
    description str
    Specify a description of this profile
    dpd_interval int
    dpd_query str
    dpd_retry int
    id str
    The path of the retrieved object.
    identity_local_address str
    address
    identity_local_key_id str
    key-id opaque string - proprietary types of identification key-id string
    keyring_local str
    Keyring name
    match_address_local_ip str
    match_fvrf str
    match_fvrf_any bool
    Any fvrf
    match_identity_remote_ipv4_addresses Sequence[GetCryptoIkev2ProfileMatchIdentityRemoteIpv4Address]
    match_identity_remote_ipv6_prefixes Sequence[str]
    match_identity_remote_keys Sequence[str]
    key-id opaque string
    match_inbound_only bool
    Match the profile for incoming connections only
    name str
    device str
    A device name from the provider configuration.
    authenticationLocalPreShare Boolean
    Pre-Shared Key
    authenticationRemotePreShare Boolean
    Pre-Shared Key
    configExchangeRequest Boolean
    enable config-exchange request
    description String
    Specify a description of this profile
    dpdInterval Number
    dpdQuery String
    dpdRetry Number
    id String
    The path of the retrieved object.
    identityLocalAddress String
    address
    identityLocalKeyId String
    key-id opaque string - proprietary types of identification key-id string
    keyringLocal String
    Keyring name
    matchAddressLocalIp String
    matchFvrf String
    matchFvrfAny Boolean
    Any fvrf
    matchIdentityRemoteIpv4Addresses List<Property Map>
    matchIdentityRemoteIpv6Prefixes List<String>
    matchIdentityRemoteKeys List<String>
    key-id opaque string
    matchInboundOnly Boolean
    Match the profile for incoming connections only
    name String
    device String
    A device name from the provider configuration.

    Supporting Types

    GetCryptoIkev2ProfileMatchIdentityRemoteIpv4Address

    Address string
    Mask string
    Address string
    Mask string
    address String
    mask String
    address string
    mask string
    address str
    mask str
    address String
    mask String

    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