1. Packages
  2. Vkcs Provider
  3. API Docs
  4. VpnaasService
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.VpnaasService

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Manages a VPN service resource within VKCS.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const vpnToDatacenter = new vkcs.VpnaasService("vpnToDatacenter", {routerId: vkcs_dc_router.router.id}, {
        dependsOn: [vkcs_dc_interface.internet_sprut],
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    vpn_to_datacenter = vkcs.VpnaasService("vpnToDatacenter", router_id=vkcs_dc_router["router"]["id"],
    opts = pulumi.ResourceOptions(depends_on=[vkcs_dc_interface["internet_sprut"]]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.NewVpnaasService(ctx, "vpnToDatacenter", &vkcs.VpnaasServiceArgs{
    			RouterId: pulumi.Any(vkcs_dc_router.Router.Id),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			vkcs_dc_interface.Internet_sprut,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var vpnToDatacenter = new Vkcs.VpnaasService("vpnToDatacenter", new()
        {
            RouterId = vkcs_dc_router.Router.Id,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                vkcs_dc_interface.Internet_sprut,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.VpnaasService;
    import com.pulumi.vkcs.VpnaasServiceArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 vpnToDatacenter = new VpnaasService("vpnToDatacenter", VpnaasServiceArgs.builder()
                .routerId(vkcs_dc_router.router().id())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(vkcs_dc_interface.internet_sprut())
                    .build());
    
        }
    }
    
    resources:
      vpnToDatacenter:
        type: vkcs:VpnaasService
        properties:
          # See the argument description and check vkcs_networks_sdn datasource output to figure out
          #   # what type of router you should use in certain case (vkcs_networking_router or vkcs_dc_router)
          routerId: ${vkcs_dc_router.router.id}
        options:
          dependsOn:
            - ${vkcs_dc_interface.internet_sprut}
    

    Create VpnaasService Resource

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

    Constructor syntax

    new VpnaasService(name: string, args: VpnaasServiceArgs, opts?: CustomResourceOptions);
    @overload
    def VpnaasService(resource_name: str,
                      args: VpnaasServiceArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpnaasService(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      router_id: Optional[str] = None,
                      admin_state_up: Optional[bool] = None,
                      description: Optional[str] = None,
                      name: Optional[str] = None,
                      region: Optional[str] = None,
                      sdn: Optional[str] = None,
                      subnet_id: Optional[str] = None,
                      timeouts: Optional[VpnaasServiceTimeoutsArgs] = None,
                      vpnaas_service_id: Optional[str] = None)
    func NewVpnaasService(ctx *Context, name string, args VpnaasServiceArgs, opts ...ResourceOption) (*VpnaasService, error)
    public VpnaasService(string name, VpnaasServiceArgs args, CustomResourceOptions? opts = null)
    public VpnaasService(String name, VpnaasServiceArgs args)
    public VpnaasService(String name, VpnaasServiceArgs args, CustomResourceOptions options)
    
    type: vkcs:VpnaasService
    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 VpnaasServiceArgs
    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 VpnaasServiceArgs
    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 VpnaasServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpnaasServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpnaasServiceArgs
    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 vpnaasServiceResource = new Vkcs.VpnaasService("vpnaasServiceResource", new()
    {
        RouterId = "string",
        AdminStateUp = false,
        Description = "string",
        Name = "string",
        Region = "string",
        Sdn = "string",
        SubnetId = "string",
        Timeouts = new Vkcs.Inputs.VpnaasServiceTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        VpnaasServiceId = "string",
    });
    
    example, err := vkcs.NewVpnaasService(ctx, "vpnaasServiceResource", &vkcs.VpnaasServiceArgs{
    	RouterId:     pulumi.String("string"),
    	AdminStateUp: pulumi.Bool(false),
    	Description:  pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	Region:       pulumi.String("string"),
    	Sdn:          pulumi.String("string"),
    	SubnetId:     pulumi.String("string"),
    	Timeouts: &vkcs.VpnaasServiceTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	VpnaasServiceId: pulumi.String("string"),
    })
    
    var vpnaasServiceResource = new VpnaasService("vpnaasServiceResource", VpnaasServiceArgs.builder()
        .routerId("string")
        .adminStateUp(false)
        .description("string")
        .name("string")
        .region("string")
        .sdn("string")
        .subnetId("string")
        .timeouts(VpnaasServiceTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .vpnaasServiceId("string")
        .build());
    
    vpnaas_service_resource = vkcs.VpnaasService("vpnaasServiceResource",
        router_id="string",
        admin_state_up=False,
        description="string",
        name="string",
        region="string",
        sdn="string",
        subnet_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        vpnaas_service_id="string")
    
    const vpnaasServiceResource = new vkcs.VpnaasService("vpnaasServiceResource", {
        routerId: "string",
        adminStateUp: false,
        description: "string",
        name: "string",
        region: "string",
        sdn: "string",
        subnetId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        vpnaasServiceId: "string",
    });
    
    type: vkcs:VpnaasService
    properties:
        adminStateUp: false
        description: string
        name: string
        region: string
        routerId: string
        sdn: string
        subnetId: string
        timeouts:
            create: string
            delete: string
            update: string
        vpnaasServiceId: string
    

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

    RouterId string
    required string → The ID of the router. Use router id for Neutron SDN and dc_router id for sprut SDN. To get a list of available SDNs in a project, you can use vkcs.getNetworkingSdn datasource. Changing this creates a new service
    AdminStateUp bool
    optional boolean → The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
    Description string
    optional string → The human-readable description for the service. Changing this updates the description of the existing service.
    Name string
    optional string → The name of the service. Changing this updates the name of the existing service.
    Region string
    optional string → The region in which to obtain the Networking client. A Networking client is needed to create a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.
    Sdn string
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.New since v0.5.3.
    SubnetId string
    optional string → SubnetID is the ID of the subnet. Default is null.
    Timeouts VpnaasServiceTimeouts
    VpnaasServiceId string
    string → ID of the resource.
    RouterId string
    required string → The ID of the router. Use router id for Neutron SDN and dc_router id for sprut SDN. To get a list of available SDNs in a project, you can use vkcs.getNetworkingSdn datasource. Changing this creates a new service
    AdminStateUp bool
    optional boolean → The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
    Description string
    optional string → The human-readable description for the service. Changing this updates the description of the existing service.
    Name string
    optional string → The name of the service. Changing this updates the name of the existing service.
    Region string
    optional string → The region in which to obtain the Networking client. A Networking client is needed to create a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.
    Sdn string
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.New since v0.5.3.
    SubnetId string
    optional string → SubnetID is the ID of the subnet. Default is null.
    Timeouts VpnaasServiceTimeoutsArgs
    VpnaasServiceId string
    string → ID of the resource.
    routerId String
    required string → The ID of the router. Use router id for Neutron SDN and dc_router id for sprut SDN. To get a list of available SDNs in a project, you can use vkcs.getNetworkingSdn datasource. Changing this creates a new service
    adminStateUp Boolean
    optional boolean → The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
    description String
    optional string → The human-readable description for the service. Changing this updates the description of the existing service.
    name String
    optional string → The name of the service. Changing this updates the name of the existing service.
    region String
    optional string → The region in which to obtain the Networking client. A Networking client is needed to create a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.
    sdn String
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.New since v0.5.3.
    subnetId String
    optional string → SubnetID is the ID of the subnet. Default is null.
    timeouts VpnaasServiceTimeouts
    vpnaasServiceId String
    string → ID of the resource.
    routerId string
    required string → The ID of the router. Use router id for Neutron SDN and dc_router id for sprut SDN. To get a list of available SDNs in a project, you can use vkcs.getNetworkingSdn datasource. Changing this creates a new service
    adminStateUp boolean
    optional boolean → The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
    description string
    optional string → The human-readable description for the service. Changing this updates the description of the existing service.
    name string
    optional string → The name of the service. Changing this updates the name of the existing service.
    region string
    optional string → The region in which to obtain the Networking client. A Networking client is needed to create a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.
    sdn string
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.New since v0.5.3.
    subnetId string
    optional string → SubnetID is the ID of the subnet. Default is null.
    timeouts VpnaasServiceTimeouts
    vpnaasServiceId string
    string → ID of the resource.
    router_id str
    required string → The ID of the router. Use router id for Neutron SDN and dc_router id for sprut SDN. To get a list of available SDNs in a project, you can use vkcs.getNetworkingSdn datasource. Changing this creates a new service
    admin_state_up bool
    optional boolean → The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
    description str
    optional string → The human-readable description for the service. Changing this updates the description of the existing service.
    name str
    optional string → The name of the service. Changing this updates the name of the existing service.
    region str
    optional string → The region in which to obtain the Networking client. A Networking client is needed to create a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.
    sdn str
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.New since v0.5.3.
    subnet_id str
    optional string → SubnetID is the ID of the subnet. Default is null.
    timeouts VpnaasServiceTimeoutsArgs
    vpnaas_service_id str
    string → ID of the resource.
    routerId String
    required string → The ID of the router. Use router id for Neutron SDN and dc_router id for sprut SDN. To get a list of available SDNs in a project, you can use vkcs.getNetworkingSdn datasource. Changing this creates a new service
    adminStateUp Boolean
    optional boolean → The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
    description String
    optional string → The human-readable description for the service. Changing this updates the description of the existing service.
    name String
    optional string → The name of the service. Changing this updates the name of the existing service.
    region String
    optional string → The region in which to obtain the Networking client. A Networking client is needed to create a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.
    sdn String
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.New since v0.5.3.
    subnetId String
    optional string → SubnetID is the ID of the subnet. Default is null.
    timeouts Property Map
    vpnaasServiceId String
    string → ID of the resource.

    Outputs

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

    ExternalV4Ip string
    string → The read-only external (public) IPv4 address that is used for the VPN service.
    ExternalV6Ip string
    string → The read-only external (public) IPv6 address that is used for the VPN service.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    string → Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
    ExternalV4Ip string
    string → The read-only external (public) IPv4 address that is used for the VPN service.
    ExternalV6Ip string
    string → The read-only external (public) IPv6 address that is used for the VPN service.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    string → Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
    externalV4Ip String
    string → The read-only external (public) IPv4 address that is used for the VPN service.
    externalV6Ip String
    string → The read-only external (public) IPv6 address that is used for the VPN service.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    string → Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
    externalV4Ip string
    string → The read-only external (public) IPv4 address that is used for the VPN service.
    externalV6Ip string
    string → The read-only external (public) IPv6 address that is used for the VPN service.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    string → Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
    external_v4_ip str
    string → The read-only external (public) IPv4 address that is used for the VPN service.
    external_v6_ip str
    string → The read-only external (public) IPv6 address that is used for the VPN service.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    string → Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
    externalV4Ip String
    string → The read-only external (public) IPv4 address that is used for the VPN service.
    externalV6Ip String
    string → The read-only external (public) IPv6 address that is used for the VPN service.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    string → Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.

    Look up Existing VpnaasService Resource

    Get an existing VpnaasService 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?: VpnaasServiceState, opts?: CustomResourceOptions): VpnaasService
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_state_up: Optional[bool] = None,
            description: Optional[str] = None,
            external_v4_ip: Optional[str] = None,
            external_v6_ip: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            router_id: Optional[str] = None,
            sdn: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            timeouts: Optional[VpnaasServiceTimeoutsArgs] = None,
            vpnaas_service_id: Optional[str] = None) -> VpnaasService
    func GetVpnaasService(ctx *Context, name string, id IDInput, state *VpnaasServiceState, opts ...ResourceOption) (*VpnaasService, error)
    public static VpnaasService Get(string name, Input<string> id, VpnaasServiceState? state, CustomResourceOptions? opts = null)
    public static VpnaasService get(String name, Output<String> id, VpnaasServiceState state, CustomResourceOptions options)
    resources:  _:    type: vkcs:VpnaasService    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:
    AdminStateUp bool
    optional boolean → The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
    Description string
    optional string → The human-readable description for the service. Changing this updates the description of the existing service.
    ExternalV4Ip string
    string → The read-only external (public) IPv4 address that is used for the VPN service.
    ExternalV6Ip string
    string → The read-only external (public) IPv6 address that is used for the VPN service.
    Name string
    optional string → The name of the service. Changing this updates the name of the existing service.
    Region string
    optional string → The region in which to obtain the Networking client. A Networking client is needed to create a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.
    RouterId string
    required string → The ID of the router. Use router id for Neutron SDN and dc_router id for sprut SDN. To get a list of available SDNs in a project, you can use vkcs.getNetworkingSdn datasource. Changing this creates a new service
    Sdn string
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.New since v0.5.3.
    Status string
    string → Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
    SubnetId string
    optional string → SubnetID is the ID of the subnet. Default is null.
    Timeouts VpnaasServiceTimeouts
    VpnaasServiceId string
    string → ID of the resource.
    AdminStateUp bool
    optional boolean → The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
    Description string
    optional string → The human-readable description for the service. Changing this updates the description of the existing service.
    ExternalV4Ip string
    string → The read-only external (public) IPv4 address that is used for the VPN service.
    ExternalV6Ip string
    string → The read-only external (public) IPv6 address that is used for the VPN service.
    Name string
    optional string → The name of the service. Changing this updates the name of the existing service.
    Region string
    optional string → The region in which to obtain the Networking client. A Networking client is needed to create a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.
    RouterId string
    required string → The ID of the router. Use router id for Neutron SDN and dc_router id for sprut SDN. To get a list of available SDNs in a project, you can use vkcs.getNetworkingSdn datasource. Changing this creates a new service
    Sdn string
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.New since v0.5.3.
    Status string
    string → Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
    SubnetId string
    optional string → SubnetID is the ID of the subnet. Default is null.
    Timeouts VpnaasServiceTimeoutsArgs
    VpnaasServiceId string
    string → ID of the resource.
    adminStateUp Boolean
    optional boolean → The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
    description String
    optional string → The human-readable description for the service. Changing this updates the description of the existing service.
    externalV4Ip String
    string → The read-only external (public) IPv4 address that is used for the VPN service.
    externalV6Ip String
    string → The read-only external (public) IPv6 address that is used for the VPN service.
    name String
    optional string → The name of the service. Changing this updates the name of the existing service.
    region String
    optional string → The region in which to obtain the Networking client. A Networking client is needed to create a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.
    routerId String
    required string → The ID of the router. Use router id for Neutron SDN and dc_router id for sprut SDN. To get a list of available SDNs in a project, you can use vkcs.getNetworkingSdn datasource. Changing this creates a new service
    sdn String
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.New since v0.5.3.
    status String
    string → Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
    subnetId String
    optional string → SubnetID is the ID of the subnet. Default is null.
    timeouts VpnaasServiceTimeouts
    vpnaasServiceId String
    string → ID of the resource.
    adminStateUp boolean
    optional boolean → The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
    description string
    optional string → The human-readable description for the service. Changing this updates the description of the existing service.
    externalV4Ip string
    string → The read-only external (public) IPv4 address that is used for the VPN service.
    externalV6Ip string
    string → The read-only external (public) IPv6 address that is used for the VPN service.
    name string
    optional string → The name of the service. Changing this updates the name of the existing service.
    region string
    optional string → The region in which to obtain the Networking client. A Networking client is needed to create a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.
    routerId string
    required string → The ID of the router. Use router id for Neutron SDN and dc_router id for sprut SDN. To get a list of available SDNs in a project, you can use vkcs.getNetworkingSdn datasource. Changing this creates a new service
    sdn string
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.New since v0.5.3.
    status string
    string → Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
    subnetId string
    optional string → SubnetID is the ID of the subnet. Default is null.
    timeouts VpnaasServiceTimeouts
    vpnaasServiceId string
    string → ID of the resource.
    admin_state_up bool
    optional boolean → The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
    description str
    optional string → The human-readable description for the service. Changing this updates the description of the existing service.
    external_v4_ip str
    string → The read-only external (public) IPv4 address that is used for the VPN service.
    external_v6_ip str
    string → The read-only external (public) IPv6 address that is used for the VPN service.
    name str
    optional string → The name of the service. Changing this updates the name of the existing service.
    region str
    optional string → The region in which to obtain the Networking client. A Networking client is needed to create a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.
    router_id str
    required string → The ID of the router. Use router id for Neutron SDN and dc_router id for sprut SDN. To get a list of available SDNs in a project, you can use vkcs.getNetworkingSdn datasource. Changing this creates a new service
    sdn str
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.New since v0.5.3.
    status str
    string → Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
    subnet_id str
    optional string → SubnetID is the ID of the subnet. Default is null.
    timeouts VpnaasServiceTimeoutsArgs
    vpnaas_service_id str
    string → ID of the resource.
    adminStateUp Boolean
    optional boolean → The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
    description String
    optional string → The human-readable description for the service. Changing this updates the description of the existing service.
    externalV4Ip String
    string → The read-only external (public) IPv4 address that is used for the VPN service.
    externalV6Ip String
    string → The read-only external (public) IPv6 address that is used for the VPN service.
    name String
    optional string → The name of the service. Changing this updates the name of the existing service.
    region String
    optional string → The region in which to obtain the Networking client. A Networking client is needed to create a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.
    routerId String
    required string → The ID of the router. Use router id for Neutron SDN and dc_router id for sprut SDN. To get a list of available SDNs in a project, you can use vkcs.getNetworkingSdn datasource. Changing this creates a new service
    sdn String
    optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.New since v0.5.3.
    status String
    string → Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
    subnetId String
    optional string → SubnetID is the ID of the subnet. Default is null.
    timeouts Property Map
    vpnaasServiceId String
    string → ID of the resource.

    Supporting Types

    VpnaasServiceTimeouts, VpnaasServiceTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    Services can be imported using the id, e.g.

    $ pulumi import vkcs:index/vpnaasService:VpnaasService service_1 832cb7f3-59fe-40cf-8f64-8350ffc03272
    

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

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs