1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. VpnSetting
Strata Cloud Manager v1.0.3 published on Thursday, Jan 22, 2026 by Pulumi
scm logo
Strata Cloud Manager v1.0.3 published on Thursday, Jan 22, 2026 by Pulumi

    VpnSetting resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    const tcpExample = new scm.VpnSetting("tcp_example", {
        folder: "All",
        vpn: {
            ikev2: {
                cookieThreshold: 500,
                maxHalfOpenedSa: 65535,
                certificateCacheSize: 122,
            },
        },
    });
    
    import pulumi
    import pulumi_scm as scm
    
    tcp_example = scm.VpnSetting("tcp_example",
        folder="All",
        vpn={
            "ikev2": {
                "cookie_threshold": 500,
                "max_half_opened_sa": 65535,
                "certificate_cache_size": 122,
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-scm/sdk/go/scm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scm.NewVpnSetting(ctx, "tcp_example", &scm.VpnSettingArgs{
    			Folder: pulumi.String("All"),
    			Vpn: &scm.VpnSettingVpnArgs{
    				Ikev2: &scm.VpnSettingVpnIkev2Args{
    					CookieThreshold:      pulumi.Int(500),
    					MaxHalfOpenedSa:      pulumi.Int(65535),
    					CertificateCacheSize: pulumi.Int(122),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        var tcpExample = new Scm.VpnSetting("tcp_example", new()
        {
            Folder = "All",
            Vpn = new Scm.Inputs.VpnSettingVpnArgs
            {
                Ikev2 = new Scm.Inputs.VpnSettingVpnIkev2Args
                {
                    CookieThreshold = 500,
                    MaxHalfOpenedSa = 65535,
                    CertificateCacheSize = 122,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scm.VpnSetting;
    import com.pulumi.scm.VpnSettingArgs;
    import com.pulumi.scm.inputs.VpnSettingVpnArgs;
    import com.pulumi.scm.inputs.VpnSettingVpnIkev2Args;
    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 tcpExample = new VpnSetting("tcpExample", VpnSettingArgs.builder()
                .folder("All")
                .vpn(VpnSettingVpnArgs.builder()
                    .ikev2(VpnSettingVpnIkev2Args.builder()
                        .cookieThreshold(500)
                        .maxHalfOpenedSa(65535)
                        .certificateCacheSize(122)
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      tcpExample:
        type: scm:VpnSetting
        name: tcp_example
        properties:
          folder: All
          vpn:
            ikev2:
              cookieThreshold: 500
              maxHalfOpenedSa: 65535
              certificateCacheSize: 122
    

    Create VpnSetting Resource

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

    Constructor syntax

    new VpnSetting(name: string, args?: VpnSettingArgs, opts?: CustomResourceOptions);
    @overload
    def VpnSetting(resource_name: str,
                   args: Optional[VpnSettingArgs] = None,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpnSetting(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   device: Optional[str] = None,
                   folder: Optional[str] = None,
                   snippet: Optional[str] = None,
                   vpn: Optional[VpnSettingVpnArgs] = None)
    func NewVpnSetting(ctx *Context, name string, args *VpnSettingArgs, opts ...ResourceOption) (*VpnSetting, error)
    public VpnSetting(string name, VpnSettingArgs? args = null, CustomResourceOptions? opts = null)
    public VpnSetting(String name, VpnSettingArgs args)
    public VpnSetting(String name, VpnSettingArgs args, CustomResourceOptions options)
    
    type: scm:VpnSetting
    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 VpnSettingArgs
    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 VpnSettingArgs
    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 VpnSettingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpnSettingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpnSettingArgs
    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 vpnSettingResource = new Scm.VpnSetting("vpnSettingResource", new()
    {
        Device = "string",
        Folder = "string",
        Snippet = "string",
        Vpn = new Scm.Inputs.VpnSettingVpnArgs
        {
            Ikev2 = new Scm.Inputs.VpnSettingVpnIkev2Args
            {
                CertificateCacheSize = 0,
                CookieThreshold = 0,
                MaxHalfOpenedSa = 0,
            },
        },
    });
    
    example, err := scm.NewVpnSetting(ctx, "vpnSettingResource", &scm.VpnSettingArgs{
    	Device:  pulumi.String("string"),
    	Folder:  pulumi.String("string"),
    	Snippet: pulumi.String("string"),
    	Vpn: &scm.VpnSettingVpnArgs{
    		Ikev2: &scm.VpnSettingVpnIkev2Args{
    			CertificateCacheSize: pulumi.Int(0),
    			CookieThreshold:      pulumi.Int(0),
    			MaxHalfOpenedSa:      pulumi.Int(0),
    		},
    	},
    })
    
    var vpnSettingResource = new VpnSetting("vpnSettingResource", VpnSettingArgs.builder()
        .device("string")
        .folder("string")
        .snippet("string")
        .vpn(VpnSettingVpnArgs.builder()
            .ikev2(VpnSettingVpnIkev2Args.builder()
                .certificateCacheSize(0)
                .cookieThreshold(0)
                .maxHalfOpenedSa(0)
                .build())
            .build())
        .build());
    
    vpn_setting_resource = scm.VpnSetting("vpnSettingResource",
        device="string",
        folder="string",
        snippet="string",
        vpn={
            "ikev2": {
                "certificate_cache_size": 0,
                "cookie_threshold": 0,
                "max_half_opened_sa": 0,
            },
        })
    
    const vpnSettingResource = new scm.VpnSetting("vpnSettingResource", {
        device: "string",
        folder: "string",
        snippet: "string",
        vpn: {
            ikev2: {
                certificateCacheSize: 0,
                cookieThreshold: 0,
                maxHalfOpenedSa: 0,
            },
        },
    });
    
    type: scm:VpnSetting
    properties:
        device: string
        folder: string
        snippet: string
        vpn:
            ikev2:
                certificateCacheSize: 0
                cookieThreshold: 0
                maxHalfOpenedSa: 0
    

    VpnSetting Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VpnSetting resource accepts the following input properties:

    Device string
    The device in which the resource is defined
    Folder string

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Snippet string

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Vpn VpnSettingVpn
    Vpn
    Device string
    The device in which the resource is defined
    Folder string

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Snippet string

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Vpn VpnSettingVpnArgs
    Vpn
    device String
    The device in which the resource is defined
    folder String

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    snippet String

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    vpn VpnSettingVpn
    Vpn
    device string
    The device in which the resource is defined
    folder string

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    snippet string

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    vpn VpnSettingVpn
    Vpn
    device str
    The device in which the resource is defined
    folder str

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    snippet str

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    vpn VpnSettingVpnArgs
    Vpn
    device String
    The device in which the resource is defined
    folder String

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    snippet String

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    vpn Property Map
    Vpn

    Outputs

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

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

    Look up Existing VpnSetting Resource

    Get an existing VpnSetting 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?: VpnSettingState, opts?: CustomResourceOptions): VpnSetting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            device: Optional[str] = None,
            folder: Optional[str] = None,
            snippet: Optional[str] = None,
            tfid: Optional[str] = None,
            vpn: Optional[VpnSettingVpnArgs] = None) -> VpnSetting
    func GetVpnSetting(ctx *Context, name string, id IDInput, state *VpnSettingState, opts ...ResourceOption) (*VpnSetting, error)
    public static VpnSetting Get(string name, Input<string> id, VpnSettingState? state, CustomResourceOptions? opts = null)
    public static VpnSetting get(String name, Output<String> id, VpnSettingState state, CustomResourceOptions options)
    resources:  _:    type: scm:VpnSetting    get:      id: ${id}
    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
    The device in which the resource is defined
    Folder string

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Snippet string

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Tfid string
    Vpn VpnSettingVpn
    Vpn
    Device string
    The device in which the resource is defined
    Folder string

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Snippet string

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    Tfid string
    Vpn VpnSettingVpnArgs
    Vpn
    device String
    The device in which the resource is defined
    folder String

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    snippet String

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    tfid String
    vpn VpnSettingVpn
    Vpn
    device string
    The device in which the resource is defined
    folder string

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    snippet string

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    tfid string
    vpn VpnSettingVpn
    Vpn
    device str
    The device in which the resource is defined
    folder str

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    snippet str

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    tfid str
    vpn VpnSettingVpnArgs
    Vpn
    device String
    The device in which the resource is defined
    folder String

    The folder in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    snippet String

    The snippet in which the resource is defined

    ℹ️ Note: You must specify exactly one of device, folder, and snippet.

    tfid String
    vpn Property Map
    Vpn

    Supporting Types

    VpnSettingVpn, VpnSettingVpnArgs

    VpnSettingVpnIkev2, VpnSettingVpnIkev2Args

    CertificateCacheSize int
    Maximum cached certificates
    CookieThreshold int
    Cookie activation threshold
    MaxHalfOpenedSa int
    Maximum half-opened SA
    CertificateCacheSize int
    Maximum cached certificates
    CookieThreshold int
    Cookie activation threshold
    MaxHalfOpenedSa int
    Maximum half-opened SA
    certificateCacheSize Integer
    Maximum cached certificates
    cookieThreshold Integer
    Cookie activation threshold
    maxHalfOpenedSa Integer
    Maximum half-opened SA
    certificateCacheSize number
    Maximum cached certificates
    cookieThreshold number
    Cookie activation threshold
    maxHalfOpenedSa number
    Maximum half-opened SA
    certificate_cache_size int
    Maximum cached certificates
    cookie_threshold int
    Cookie activation threshold
    max_half_opened_sa int
    Maximum half-opened SA
    certificateCacheSize Number
    Maximum cached certificates
    cookieThreshold Number
    Cookie activation threshold
    maxHalfOpenedSa Number
    Maximum half-opened SA

    Import

    The following command can be used to import a resource not managed by Terraform:

    bash

    $ pulumi import scm:index/vpnSetting:VpnSetting example folder:::id
    

    or

    bash

    $ pulumi import scm:index/vpnSetting:VpnSetting example :snippet::id
    

    or

    bash

    $ pulumi import scm:index/vpnSetting:VpnSetting example ::device:id
    

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

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Strata Cloud Manager v1.0.3 published on Thursday, Jan 22, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate