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

iosxe.CryptoIkev2Profile

Explore with Pulumi AI

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

    This resource can manage the Crypto IKEv2 Profile configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Lbrlabs.PulumiPackage.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Iosxe.CryptoIkev2Profile("example", new()
        {
            AuthenticationLocalPreShare = true,
            AuthenticationRemotePreShare = true,
            ConfigExchangeRequest = false,
            Description = "My description",
            DpdInterval = 10,
            DpdQuery = "periodic",
            DpdRetry = 2,
            IdentityLocalKeyId = "key1",
            KeyringLocal = "test",
            MatchAddressLocalIp = "1.2.3.4",
            MatchFvrfAny = true,
            MatchIdentityRemoteIpv4Addresses = new[]
            {
                new Iosxe.Inputs.CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs
                {
                    Address = "1.2.3.4",
                    Mask = "255.255.255.0",
                },
            },
            MatchIdentityRemoteKeys = new[]
            {
                "key1",
            },
        });
    
    });
    
    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.NewCryptoIkev2Profile(ctx, "example", &iosxe.CryptoIkev2ProfileArgs{
    			AuthenticationLocalPreShare:  pulumi.Bool(true),
    			AuthenticationRemotePreShare: pulumi.Bool(true),
    			ConfigExchangeRequest:        pulumi.Bool(false),
    			Description:                  pulumi.String("My description"),
    			DpdInterval:                  pulumi.Int(10),
    			DpdQuery:                     pulumi.String("periodic"),
    			DpdRetry:                     pulumi.Int(2),
    			IdentityLocalKeyId:           pulumi.String("key1"),
    			KeyringLocal:                 pulumi.String("test"),
    			MatchAddressLocalIp:          pulumi.String("1.2.3.4"),
    			MatchFvrfAny:                 pulumi.Bool(true),
    			MatchIdentityRemoteIpv4Addresses: iosxe.CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArray{
    				&iosxe.CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs{
    					Address: pulumi.String("1.2.3.4"),
    					Mask:    pulumi.String("255.255.255.0"),
    				},
    			},
    			MatchIdentityRemoteKeys: pulumi.StringArray{
    				pulumi.String("key1"),
    			},
    		})
    		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.CryptoIkev2Profile;
    import com.pulumi.iosxe.CryptoIkev2ProfileArgs;
    import com.pulumi.iosxe.inputs.CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs;
    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) {
            var example = new CryptoIkev2Profile("example", CryptoIkev2ProfileArgs.builder()        
                .authenticationLocalPreShare(true)
                .authenticationRemotePreShare(true)
                .configExchangeRequest(false)
                .description("My description")
                .dpdInterval(10)
                .dpdQuery("periodic")
                .dpdRetry(2)
                .identityLocalKeyId("key1")
                .keyringLocal("test")
                .matchAddressLocalIp("1.2.3.4")
                .matchFvrfAny(true)
                .matchIdentityRemoteIpv4Addresses(CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs.builder()
                    .address("1.2.3.4")
                    .mask("255.255.255.0")
                    .build())
                .matchIdentityRemoteKeys("key1")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_iosxe as iosxe
    
    example = iosxe.CryptoIkev2Profile("example",
        authentication_local_pre_share=True,
        authentication_remote_pre_share=True,
        config_exchange_request=False,
        description="My description",
        dpd_interval=10,
        dpd_query="periodic",
        dpd_retry=2,
        identity_local_key_id="key1",
        keyring_local="test",
        match_address_local_ip="1.2.3.4",
        match_fvrf_any=True,
        match_identity_remote_ipv4_addresses=[iosxe.CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs(
            address="1.2.3.4",
            mask="255.255.255.0",
        )],
        match_identity_remote_keys=["key1"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@lbrlabs/pulumi-iosxe";
    
    const example = new iosxe.CryptoIkev2Profile("example", {
        authenticationLocalPreShare: true,
        authenticationRemotePreShare: true,
        configExchangeRequest: false,
        description: "My description",
        dpdInterval: 10,
        dpdQuery: "periodic",
        dpdRetry: 2,
        identityLocalKeyId: "key1",
        keyringLocal: "test",
        matchAddressLocalIp: "1.2.3.4",
        matchFvrfAny: true,
        matchIdentityRemoteIpv4Addresses: [{
            address: "1.2.3.4",
            mask: "255.255.255.0",
        }],
        matchIdentityRemoteKeys: ["key1"],
    });
    
    resources:
      example:
        type: iosxe:CryptoIkev2Profile
        properties:
          authenticationLocalPreShare: true
          authenticationRemotePreShare: true
          configExchangeRequest: false
          description: My description
          dpdInterval: 10
          dpdQuery: periodic
          dpdRetry: 2
          identityLocalKeyId: key1
          keyringLocal: test
          matchAddressLocalIp: 1.2.3.4
          matchFvrfAny: true
          matchIdentityRemoteIpv4Addresses:
            - address: 1.2.3.4
              mask: 255.255.255.0
          matchIdentityRemoteKeys:
            - key1
    

    Create CryptoIkev2Profile Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CryptoIkev2Profile(name: string, args?: CryptoIkev2ProfileArgs, opts?: CustomResourceOptions);
    @overload
    def CryptoIkev2Profile(resource_name: str,
                           args: Optional[CryptoIkev2ProfileArgs] = None,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def CryptoIkev2Profile(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           authentication_local_pre_share: Optional[bool] = None,
                           authentication_remote_pre_share: Optional[bool] = None,
                           config_exchange_request: Optional[bool] = None,
                           delete_mode: Optional[str] = None,
                           description: Optional[str] = None,
                           device: Optional[str] = None,
                           dpd_interval: Optional[int] = None,
                           dpd_query: Optional[str] = None,
                           dpd_retry: Optional[int] = None,
                           identity_local_address: Optional[str] = None,
                           identity_local_key_id: Optional[str] = None,
                           keyring_local: Optional[str] = None,
                           match_address_local_ip: Optional[str] = None,
                           match_fvrf: Optional[str] = None,
                           match_fvrf_any: Optional[bool] = None,
                           match_identity_remote_ipv4_addresses: Optional[Sequence[CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs]] = None,
                           match_identity_remote_ipv6_prefixes: Optional[Sequence[str]] = None,
                           match_identity_remote_keys: Optional[Sequence[str]] = None,
                           match_inbound_only: Optional[bool] = None,
                           name: Optional[str] = None)
    func NewCryptoIkev2Profile(ctx *Context, name string, args *CryptoIkev2ProfileArgs, opts ...ResourceOption) (*CryptoIkev2Profile, error)
    public CryptoIkev2Profile(string name, CryptoIkev2ProfileArgs? args = null, CustomResourceOptions? opts = null)
    public CryptoIkev2Profile(String name, CryptoIkev2ProfileArgs args)
    public CryptoIkev2Profile(String name, CryptoIkev2ProfileArgs args, CustomResourceOptions options)
    
    type: iosxe:CryptoIkev2Profile
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CryptoIkev2ProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CryptoIkev2ProfileArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CryptoIkev2ProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CryptoIkev2ProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CryptoIkev2ProfileArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cryptoIkev2ProfileResource = new Iosxe.CryptoIkev2Profile("cryptoIkev2ProfileResource", new()
    {
        AuthenticationLocalPreShare = false,
        AuthenticationRemotePreShare = false,
        ConfigExchangeRequest = false,
        DeleteMode = "string",
        Description = "string",
        Device = "string",
        DpdInterval = 0,
        DpdQuery = "string",
        DpdRetry = 0,
        IdentityLocalAddress = "string",
        IdentityLocalKeyId = "string",
        KeyringLocal = "string",
        MatchAddressLocalIp = "string",
        MatchFvrf = "string",
        MatchFvrfAny = false,
        MatchIdentityRemoteIpv4Addresses = new[]
        {
            new Iosxe.Inputs.CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs
            {
                Address = "string",
                Mask = "string",
            },
        },
        MatchIdentityRemoteIpv6Prefixes = new[]
        {
            "string",
        },
        MatchIdentityRemoteKeys = new[]
        {
            "string",
        },
        MatchInboundOnly = false,
        Name = "string",
    });
    
    example, err := iosxe.NewCryptoIkev2Profile(ctx, "cryptoIkev2ProfileResource", &iosxe.CryptoIkev2ProfileArgs{
    	AuthenticationLocalPreShare:  pulumi.Bool(false),
    	AuthenticationRemotePreShare: pulumi.Bool(false),
    	ConfigExchangeRequest:        pulumi.Bool(false),
    	DeleteMode:                   pulumi.String("string"),
    	Description:                  pulumi.String("string"),
    	Device:                       pulumi.String("string"),
    	DpdInterval:                  pulumi.Int(0),
    	DpdQuery:                     pulumi.String("string"),
    	DpdRetry:                     pulumi.Int(0),
    	IdentityLocalAddress:         pulumi.String("string"),
    	IdentityLocalKeyId:           pulumi.String("string"),
    	KeyringLocal:                 pulumi.String("string"),
    	MatchAddressLocalIp:          pulumi.String("string"),
    	MatchFvrf:                    pulumi.String("string"),
    	MatchFvrfAny:                 pulumi.Bool(false),
    	MatchIdentityRemoteIpv4Addresses: iosxe.CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArray{
    		&iosxe.CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs{
    			Address: pulumi.String("string"),
    			Mask:    pulumi.String("string"),
    		},
    	},
    	MatchIdentityRemoteIpv6Prefixes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	MatchIdentityRemoteKeys: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	MatchInboundOnly: pulumi.Bool(false),
    	Name:             pulumi.String("string"),
    })
    
    var cryptoIkev2ProfileResource = new CryptoIkev2Profile("cryptoIkev2ProfileResource", CryptoIkev2ProfileArgs.builder()
        .authenticationLocalPreShare(false)
        .authenticationRemotePreShare(false)
        .configExchangeRequest(false)
        .deleteMode("string")
        .description("string")
        .device("string")
        .dpdInterval(0)
        .dpdQuery("string")
        .dpdRetry(0)
        .identityLocalAddress("string")
        .identityLocalKeyId("string")
        .keyringLocal("string")
        .matchAddressLocalIp("string")
        .matchFvrf("string")
        .matchFvrfAny(false)
        .matchIdentityRemoteIpv4Addresses(CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs.builder()
            .address("string")
            .mask("string")
            .build())
        .matchIdentityRemoteIpv6Prefixes("string")
        .matchIdentityRemoteKeys("string")
        .matchInboundOnly(false)
        .name("string")
        .build());
    
    crypto_ikev2_profile_resource = iosxe.CryptoIkev2Profile("cryptoIkev2ProfileResource",
        authentication_local_pre_share=False,
        authentication_remote_pre_share=False,
        config_exchange_request=False,
        delete_mode="string",
        description="string",
        device="string",
        dpd_interval=0,
        dpd_query="string",
        dpd_retry=0,
        identity_local_address="string",
        identity_local_key_id="string",
        keyring_local="string",
        match_address_local_ip="string",
        match_fvrf="string",
        match_fvrf_any=False,
        match_identity_remote_ipv4_addresses=[iosxe.CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs(
            address="string",
            mask="string",
        )],
        match_identity_remote_ipv6_prefixes=["string"],
        match_identity_remote_keys=["string"],
        match_inbound_only=False,
        name="string")
    
    const cryptoIkev2ProfileResource = new iosxe.CryptoIkev2Profile("cryptoIkev2ProfileResource", {
        authenticationLocalPreShare: false,
        authenticationRemotePreShare: false,
        configExchangeRequest: false,
        deleteMode: "string",
        description: "string",
        device: "string",
        dpdInterval: 0,
        dpdQuery: "string",
        dpdRetry: 0,
        identityLocalAddress: "string",
        identityLocalKeyId: "string",
        keyringLocal: "string",
        matchAddressLocalIp: "string",
        matchFvrf: "string",
        matchFvrfAny: false,
        matchIdentityRemoteIpv4Addresses: [{
            address: "string",
            mask: "string",
        }],
        matchIdentityRemoteIpv6Prefixes: ["string"],
        matchIdentityRemoteKeys: ["string"],
        matchInboundOnly: false,
        name: "string",
    });
    
    type: iosxe:CryptoIkev2Profile
    properties:
        authenticationLocalPreShare: false
        authenticationRemotePreShare: false
        configExchangeRequest: false
        deleteMode: string
        description: string
        device: string
        dpdInterval: 0
        dpdQuery: string
        dpdRetry: 0
        identityLocalAddress: string
        identityLocalKeyId: string
        keyringLocal: string
        matchAddressLocalIp: string
        matchFvrf: string
        matchFvrfAny: false
        matchIdentityRemoteIpv4Addresses:
            - address: string
              mask: string
        matchIdentityRemoteIpv6Prefixes:
            - string
        matchIdentityRemoteKeys:
            - string
        matchInboundOnly: false
        name: string
    

    CryptoIkev2Profile Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The CryptoIkev2Profile resource accepts the following input properties:

    AuthenticationLocalPreShare bool
    Pre-Shared Key
    AuthenticationRemotePreShare bool
    Pre-Shared Key
    ConfigExchangeRequest bool
    enable config-exchange request
    DeleteMode string
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    Description string
    Specify a description of this profile
    Device string
    A device name from the provider configuration.
    DpdInterval int
    • Range: 10-3600
    DpdQuery string
    • Choices: on-demand, periodic
    DpdRetry int
    • Range: 2-60
    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.Inputs.CryptoIkev2ProfileMatchIdentityRemoteIpv4Address>
    MatchIdentityRemoteIpv6Prefixes List<string>
    MatchIdentityRemoteKeys List<string>
    key-id opaque string
    MatchInboundOnly bool
    Match the profile for incoming connections only
    Name string
    AuthenticationLocalPreShare bool
    Pre-Shared Key
    AuthenticationRemotePreShare bool
    Pre-Shared Key
    ConfigExchangeRequest bool
    enable config-exchange request
    DeleteMode string
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    Description string
    Specify a description of this profile
    Device string
    A device name from the provider configuration.
    DpdInterval int
    • Range: 10-3600
    DpdQuery string
    • Choices: on-demand, periodic
    DpdRetry int
    • Range: 2-60
    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 []CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs
    MatchIdentityRemoteIpv6Prefixes []string
    MatchIdentityRemoteKeys []string
    key-id opaque string
    MatchInboundOnly bool
    Match the profile for incoming connections only
    Name string
    authenticationLocalPreShare Boolean
    Pre-Shared Key
    authenticationRemotePreShare Boolean
    Pre-Shared Key
    configExchangeRequest Boolean
    enable config-exchange request
    deleteMode String
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    description String
    Specify a description of this profile
    device String
    A device name from the provider configuration.
    dpdInterval Integer
    • Range: 10-3600
    dpdQuery String
    • Choices: on-demand, periodic
    dpdRetry Integer
    • Range: 2-60
    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<CryptoIkev2ProfileMatchIdentityRemoteIpv4Address>
    matchIdentityRemoteIpv6Prefixes List<String>
    matchIdentityRemoteKeys List<String>
    key-id opaque string
    matchInboundOnly Boolean
    Match the profile for incoming connections only
    name String
    authenticationLocalPreShare boolean
    Pre-Shared Key
    authenticationRemotePreShare boolean
    Pre-Shared Key
    configExchangeRequest boolean
    enable config-exchange request
    deleteMode string
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    description string
    Specify a description of this profile
    device string
    A device name from the provider configuration.
    dpdInterval number
    • Range: 10-3600
    dpdQuery string
    • Choices: on-demand, periodic
    dpdRetry number
    • Range: 2-60
    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 CryptoIkev2ProfileMatchIdentityRemoteIpv4Address[]
    matchIdentityRemoteIpv6Prefixes string[]
    matchIdentityRemoteKeys string[]
    key-id opaque string
    matchInboundOnly boolean
    Match the profile for incoming connections only
    name string
    authentication_local_pre_share bool
    Pre-Shared Key
    authentication_remote_pre_share bool
    Pre-Shared Key
    config_exchange_request bool
    enable config-exchange request
    delete_mode str
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    description str
    Specify a description of this profile
    device str
    A device name from the provider configuration.
    dpd_interval int
    • Range: 10-3600
    dpd_query str
    • Choices: on-demand, periodic
    dpd_retry int
    • Range: 2-60
    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[CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs]
    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
    authenticationLocalPreShare Boolean
    Pre-Shared Key
    authenticationRemotePreShare Boolean
    Pre-Shared Key
    configExchangeRequest Boolean
    enable config-exchange request
    deleteMode String
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    description String
    Specify a description of this profile
    device String
    A device name from the provider configuration.
    dpdInterval Number
    • Range: 10-3600
    dpdQuery String
    • Choices: on-demand, periodic
    dpdRetry Number
    • Range: 2-60
    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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CryptoIkev2Profile resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CryptoIkev2Profile Resource

    Get an existing CryptoIkev2Profile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CryptoIkev2ProfileState, opts?: CustomResourceOptions): CryptoIkev2Profile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            authentication_local_pre_share: Optional[bool] = None,
            authentication_remote_pre_share: Optional[bool] = None,
            config_exchange_request: Optional[bool] = None,
            delete_mode: Optional[str] = None,
            description: Optional[str] = None,
            device: Optional[str] = None,
            dpd_interval: Optional[int] = None,
            dpd_query: Optional[str] = None,
            dpd_retry: Optional[int] = None,
            identity_local_address: Optional[str] = None,
            identity_local_key_id: Optional[str] = None,
            keyring_local: Optional[str] = None,
            match_address_local_ip: Optional[str] = None,
            match_fvrf: Optional[str] = None,
            match_fvrf_any: Optional[bool] = None,
            match_identity_remote_ipv4_addresses: Optional[Sequence[CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs]] = None,
            match_identity_remote_ipv6_prefixes: Optional[Sequence[str]] = None,
            match_identity_remote_keys: Optional[Sequence[str]] = None,
            match_inbound_only: Optional[bool] = None,
            name: Optional[str] = None) -> CryptoIkev2Profile
    func GetCryptoIkev2Profile(ctx *Context, name string, id IDInput, state *CryptoIkev2ProfileState, opts ...ResourceOption) (*CryptoIkev2Profile, error)
    public static CryptoIkev2Profile Get(string name, Input<string> id, CryptoIkev2ProfileState? state, CustomResourceOptions? opts = null)
    public static CryptoIkev2Profile get(String name, Output<String> id, CryptoIkev2ProfileState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AuthenticationLocalPreShare bool
    Pre-Shared Key
    AuthenticationRemotePreShare bool
    Pre-Shared Key
    ConfigExchangeRequest bool
    enable config-exchange request
    DeleteMode string
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    Description string
    Specify a description of this profile
    Device string
    A device name from the provider configuration.
    DpdInterval int
    • Range: 10-3600
    DpdQuery string
    • Choices: on-demand, periodic
    DpdRetry int
    • Range: 2-60
    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.Inputs.CryptoIkev2ProfileMatchIdentityRemoteIpv4Address>
    MatchIdentityRemoteIpv6Prefixes List<string>
    MatchIdentityRemoteKeys List<string>
    key-id opaque string
    MatchInboundOnly bool
    Match the profile for incoming connections only
    Name string
    AuthenticationLocalPreShare bool
    Pre-Shared Key
    AuthenticationRemotePreShare bool
    Pre-Shared Key
    ConfigExchangeRequest bool
    enable config-exchange request
    DeleteMode string
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    Description string
    Specify a description of this profile
    Device string
    A device name from the provider configuration.
    DpdInterval int
    • Range: 10-3600
    DpdQuery string
    • Choices: on-demand, periodic
    DpdRetry int
    • Range: 2-60
    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 []CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs
    MatchIdentityRemoteIpv6Prefixes []string
    MatchIdentityRemoteKeys []string
    key-id opaque string
    MatchInboundOnly bool
    Match the profile for incoming connections only
    Name string
    authenticationLocalPreShare Boolean
    Pre-Shared Key
    authenticationRemotePreShare Boolean
    Pre-Shared Key
    configExchangeRequest Boolean
    enable config-exchange request
    deleteMode String
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    description String
    Specify a description of this profile
    device String
    A device name from the provider configuration.
    dpdInterval Integer
    • Range: 10-3600
    dpdQuery String
    • Choices: on-demand, periodic
    dpdRetry Integer
    • Range: 2-60
    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<CryptoIkev2ProfileMatchIdentityRemoteIpv4Address>
    matchIdentityRemoteIpv6Prefixes List<String>
    matchIdentityRemoteKeys List<String>
    key-id opaque string
    matchInboundOnly Boolean
    Match the profile for incoming connections only
    name String
    authenticationLocalPreShare boolean
    Pre-Shared Key
    authenticationRemotePreShare boolean
    Pre-Shared Key
    configExchangeRequest boolean
    enable config-exchange request
    deleteMode string
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    description string
    Specify a description of this profile
    device string
    A device name from the provider configuration.
    dpdInterval number
    • Range: 10-3600
    dpdQuery string
    • Choices: on-demand, periodic
    dpdRetry number
    • Range: 2-60
    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 CryptoIkev2ProfileMatchIdentityRemoteIpv4Address[]
    matchIdentityRemoteIpv6Prefixes string[]
    matchIdentityRemoteKeys string[]
    key-id opaque string
    matchInboundOnly boolean
    Match the profile for incoming connections only
    name string
    authentication_local_pre_share bool
    Pre-Shared Key
    authentication_remote_pre_share bool
    Pre-Shared Key
    config_exchange_request bool
    enable config-exchange request
    delete_mode str
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    description str
    Specify a description of this profile
    device str
    A device name from the provider configuration.
    dpd_interval int
    • Range: 10-3600
    dpd_query str
    • Choices: on-demand, periodic
    dpd_retry int
    • Range: 2-60
    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[CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs]
    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
    authenticationLocalPreShare Boolean
    Pre-Shared Key
    authenticationRemotePreShare Boolean
    Pre-Shared Key
    configExchangeRequest Boolean
    enable config-exchange request
    deleteMode String
    Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is all. - Choices: all, attributes
    description String
    Specify a description of this profile
    device String
    A device name from the provider configuration.
    dpdInterval Number
    • Range: 10-3600
    dpdQuery String
    • Choices: on-demand, periodic
    dpdRetry Number
    • Range: 2-60
    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

    Supporting Types

    CryptoIkev2ProfileMatchIdentityRemoteIpv4Address, CryptoIkev2ProfileMatchIdentityRemoteIpv4AddressArgs

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

    Import

     $ pulumi import iosxe:index/cryptoIkev2Profile:CryptoIkev2Profile example "Cisco-IOS-XE-native:native/crypto/Cisco-IOS-XE-crypto:ikev2/profile=profile1"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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