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

iosxe.CryptoIpsecProfile

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 IPSec 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.CryptoIpsecProfile("example", new()
        {
            SetIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile = "vpn300",
            SetTransformSets = new[]
            {
                "TS1",
            },
        });
    
    });
    
    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.NewCryptoIpsecProfile(ctx, "example", &iosxe.CryptoIpsecProfileArgs{
    			SetIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile: pulumi.String("vpn300"),
    			SetTransformSets: pulumi.StringArray{
    				pulumi.String("TS1"),
    			},
    		})
    		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.CryptoIpsecProfile;
    import com.pulumi.iosxe.CryptoIpsecProfileArgs;
    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 CryptoIpsecProfile("example", CryptoIpsecProfileArgs.builder()        
                .setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile("vpn300")
                .setTransformSets("TS1")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_iosxe as iosxe
    
    example = iosxe.CryptoIpsecProfile("example",
        set_isakmp_profile_ikev2_profile_ikev2_profile_case_ikev2_profile="vpn300",
        set_transform_sets=["TS1"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@lbrlabs/pulumi-iosxe";
    
    const example = new iosxe.CryptoIpsecProfile("example", {
        setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile: "vpn300",
        setTransformSets: ["TS1"],
    });
    
    resources:
      example:
        type: iosxe:CryptoIpsecProfile
        properties:
          setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile: vpn300
          setTransformSets:
            - TS1
    

    Create CryptoIpsecProfile Resource

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

    Constructor syntax

    new CryptoIpsecProfile(name: string, args?: CryptoIpsecProfileArgs, opts?: CustomResourceOptions);
    @overload
    def CryptoIpsecProfile(resource_name: str,
                           args: Optional[CryptoIpsecProfileArgs] = None,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def CryptoIpsecProfile(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           device: Optional[str] = None,
                           name: Optional[str] = None,
                           set_isakmp_profile_ikev2_profile_ikev2_profile_case_ikev2_profile: Optional[str] = None,
                           set_isakmp_profile_ikev2_profile_isakmp_profile_case_isakmp_profile: Optional[str] = None,
                           set_transform_sets: Optional[Sequence[str]] = None)
    func NewCryptoIpsecProfile(ctx *Context, name string, args *CryptoIpsecProfileArgs, opts ...ResourceOption) (*CryptoIpsecProfile, error)
    public CryptoIpsecProfile(string name, CryptoIpsecProfileArgs? args = null, CustomResourceOptions? opts = null)
    public CryptoIpsecProfile(String name, CryptoIpsecProfileArgs args)
    public CryptoIpsecProfile(String name, CryptoIpsecProfileArgs args, CustomResourceOptions options)
    
    type: iosxe:CryptoIpsecProfile
    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 CryptoIpsecProfileArgs
    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 CryptoIpsecProfileArgs
    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 CryptoIpsecProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CryptoIpsecProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CryptoIpsecProfileArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var cryptoIpsecProfileResource = new Iosxe.CryptoIpsecProfile("cryptoIpsecProfileResource", new()
    {
        Device = "string",
        Name = "string",
        SetIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile = "string",
        SetIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile = "string",
        SetTransformSets = new[]
        {
            "string",
        },
    });
    
    example, err := iosxe.NewCryptoIpsecProfile(ctx, "cryptoIpsecProfileResource", &iosxe.CryptoIpsecProfileArgs{
    	Device: pulumi.String("string"),
    	Name:   pulumi.String("string"),
    	SetIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile:   pulumi.String("string"),
    	SetIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile: pulumi.String("string"),
    	SetTransformSets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var cryptoIpsecProfileResource = new CryptoIpsecProfile("cryptoIpsecProfileResource", CryptoIpsecProfileArgs.builder()        
        .device("string")
        .name("string")
        .setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile("string")
        .setIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile("string")
        .setTransformSets("string")
        .build());
    
    crypto_ipsec_profile_resource = iosxe.CryptoIpsecProfile("cryptoIpsecProfileResource",
        device="string",
        name="string",
        set_isakmp_profile_ikev2_profile_ikev2_profile_case_ikev2_profile="string",
        set_isakmp_profile_ikev2_profile_isakmp_profile_case_isakmp_profile="string",
        set_transform_sets=["string"])
    
    const cryptoIpsecProfileResource = new iosxe.CryptoIpsecProfile("cryptoIpsecProfileResource", {
        device: "string",
        name: "string",
        setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile: "string",
        setIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile: "string",
        setTransformSets: ["string"],
    });
    
    type: iosxe:CryptoIpsecProfile
    properties:
        device: string
        name: string
        setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile: string
        setIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile: string
        setTransformSets:
            - string
    

    CryptoIpsecProfile 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 CryptoIpsecProfile resource accepts the following input properties:

    Device string
    A device name from the provider configuration.
    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.
    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.
    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.
    name string
    setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile string
    Specify ikev2 Profile
    setIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile string
    Specify isakmp Profile
    setTransformSets string[]
    Specify list of transform sets in priority order
    device str
    A device name from the provider configuration.
    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 String
    A device name from the provider configuration.
    name String
    setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile String
    Specify ikev2 Profile
    setIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile String
    Specify isakmp Profile
    setTransformSets List<String>
    Specify list of transform sets in priority order

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CryptoIpsecProfile 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 CryptoIpsecProfile Resource

    Get an existing CryptoIpsecProfile 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?: CryptoIpsecProfileState, opts?: CustomResourceOptions): CryptoIpsecProfile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            device: Optional[str] = None,
            name: Optional[str] = None,
            set_isakmp_profile_ikev2_profile_ikev2_profile_case_ikev2_profile: Optional[str] = None,
            set_isakmp_profile_ikev2_profile_isakmp_profile_case_isakmp_profile: Optional[str] = None,
            set_transform_sets: Optional[Sequence[str]] = None) -> CryptoIpsecProfile
    func GetCryptoIpsecProfile(ctx *Context, name string, id IDInput, state *CryptoIpsecProfileState, opts ...ResourceOption) (*CryptoIpsecProfile, error)
    public static CryptoIpsecProfile Get(string name, Input<string> id, CryptoIpsecProfileState? state, CustomResourceOptions? opts = null)
    public static CryptoIpsecProfile get(String name, Output<String> id, CryptoIpsecProfileState 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:
    Device string
    A device name from the provider configuration.
    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.
    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.
    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.
    name string
    setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile string
    Specify ikev2 Profile
    setIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile string
    Specify isakmp Profile
    setTransformSets string[]
    Specify list of transform sets in priority order
    device str
    A device name from the provider configuration.
    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 String
    A device name from the provider configuration.
    name String
    setIsakmpProfileIkev2ProfileIkev2ProfileCaseIkev2Profile String
    Specify ikev2 Profile
    setIsakmpProfileIkev2ProfileIsakmpProfileCaseIsakmpProfile String
    Specify isakmp Profile
    setTransformSets List<String>
    Specify list of transform sets in priority order

    Import

     $ pulumi import iosxe:index/cryptoIpsecProfile:CryptoIpsecProfile example "Cisco-IOS-XE-native:native/crypto/Cisco-IOS-XE-crypto:ipsec/profile=vpn200"
    

    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