# danubedata.Vps
Manages a VPS (Virtual Private Server) instance.
Example Usage
Basic VPS with SSH Key
import * as pulumi from "@pulumi/pulumi";
import * as danubedata from "@danubedata/pulumi";
import * as fs from "fs";
const main = new danubedata.SshKey("main", {publicKey: fs.readFileSync("~/.ssh/id_ed25519.pub", "utf8")});
const web = new danubedata.Vps("web", {
image: "ubuntu-22.04",
datacenter: "fsn1",
authMethod: "ssh_key",
sshKeyId: main.id,
});
import pulumi
import pulumi_danubedata as danubedata
main = danubedata.SshKey("main", public_key=(lambda path: open(path).read())("~/.ssh/id_ed25519.pub"))
web = danubedata.Vps("web",
image="ubuntu-22.04",
datacenter="fsn1",
auth_method="ssh_key",
ssh_key_id=main.id)
package main
import (
"os"
"github.com/AdrianSilaghi/pulumi-danubedata/sdk/go/danubedata"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func readFileOrPanic(path string) pulumi.StringPtrInput {
data, err := os.ReadFile(path)
if err != nil {
panic(err.Error())
}
return pulumi.String(string(data))
}
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
main, err := danubedata.NewSshKey(ctx, "main", &danubedata.SshKeyArgs{
PublicKey: pulumi.String(readFileOrPanic("~/.ssh/id_ed25519.pub")),
})
if err != nil {
return err
}
_, err = danubedata.NewVps(ctx, "web", &danubedata.VpsArgs{
Image: pulumi.String("ubuntu-22.04"),
Datacenter: pulumi.String("fsn1"),
AuthMethod: pulumi.String("ssh_key"),
SshKeyId: main.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using DanubeData = DanubeData.DanubeData;
return await Deployment.RunAsync(() =>
{
var main = new DanubeData.SshKey("main", new()
{
PublicKey = File.ReadAllText("~/.ssh/id_ed25519.pub"),
});
var web = new DanubeData.Vps("web", new()
{
Image = "ubuntu-22.04",
Datacenter = "fsn1",
AuthMethod = "ssh_key",
SshKeyId = main.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.danubedata.SshKey;
import com.pulumi.danubedata.SshKeyArgs;
import com.pulumi.danubedata.Vps;
import com.pulumi.danubedata.VpsArgs;
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 main = new SshKey("main", SshKeyArgs.builder()
.publicKey(Files.readString(Paths.get("~/.ssh/id_ed25519.pub")))
.build());
var web = new Vps("web", VpsArgs.builder()
.image("ubuntu-22.04")
.datacenter("fsn1")
.authMethod("ssh_key")
.sshKeyId(main.id())
.build());
}
}
resources:
main:
type: danubedata:SshKey
properties:
publicKey:
fn::readFile: ~/.ssh/id_ed25519.pub
web:
type: danubedata:Vps
properties:
image: ubuntu-22.04
datacenter: fsn1
authMethod: ssh_key
sshKeyId: ${main.id}
VPS with Custom Resources
import * as pulumi from "@pulumi/pulumi";
import * as danubedata from "@danubedata/pulumi";
const app = new danubedata.Vps("app", {
image: "debian-12",
datacenter: "fsn1",
authMethod: "ssh_key",
sshKeyId: danubedata_ssh_key.main.id,
cpuAllocationType: "dedicated",
cpuCores: 4,
memorySizeGb: 8,
storageSizeGb: 100,
});
import pulumi
import pulumi_danubedata as danubedata
app = danubedata.Vps("app",
image="debian-12",
datacenter="fsn1",
auth_method="ssh_key",
ssh_key_id=danubedata_ssh_key["main"]["id"],
cpu_allocation_type="dedicated",
cpu_cores=4,
memory_size_gb=8,
storage_size_gb=100)
package main
import (
"github.com/AdrianSilaghi/pulumi-danubedata/sdk/go/danubedata"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := danubedata.NewVps(ctx, "app", &danubedata.VpsArgs{
Image: pulumi.String("debian-12"),
Datacenter: pulumi.String("fsn1"),
AuthMethod: pulumi.String("ssh_key"),
SshKeyId: pulumi.Any(danubedata_ssh_key.Main.Id),
CpuAllocationType: pulumi.String("dedicated"),
CpuCores: pulumi.Int(4),
MemorySizeGb: pulumi.Int(8),
StorageSizeGb: pulumi.Int(100),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DanubeData = DanubeData.DanubeData;
return await Deployment.RunAsync(() =>
{
var app = new DanubeData.Vps("app", new()
{
Image = "debian-12",
Datacenter = "fsn1",
AuthMethod = "ssh_key",
SshKeyId = danubedata_ssh_key.Main.Id,
CpuAllocationType = "dedicated",
CpuCores = 4,
MemorySizeGb = 8,
StorageSizeGb = 100,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.danubedata.Vps;
import com.pulumi.danubedata.VpsArgs;
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 app = new Vps("app", VpsArgs.builder()
.image("debian-12")
.datacenter("fsn1")
.authMethod("ssh_key")
.sshKeyId(danubedata_ssh_key.main().id())
.cpuAllocationType("dedicated")
.cpuCores(4)
.memorySizeGb(8)
.storageSizeGb(100)
.build());
}
}
resources:
app:
type: danubedata:Vps
properties:
image: debian-12
datacenter: fsn1
authMethod: ssh_key
sshKeyId: ${danubedata_ssh_key.main.id}
cpuAllocationType: dedicated
cpuCores: 4
memorySizeGb: 8
storageSizeGb: 100
VPS with Password Authentication
import * as pulumi from "@pulumi/pulumi";
import * as danubedata from "@danubedata/pulumi";
const dev = new danubedata.Vps("dev", {
image: "ubuntu-22.04",
datacenter: "fsn1",
authMethod: "password",
password: _var.server_password,
});
import pulumi
import pulumi_danubedata as danubedata
dev = danubedata.Vps("dev",
image="ubuntu-22.04",
datacenter="fsn1",
auth_method="password",
password=var["server_password"])
package main
import (
"github.com/AdrianSilaghi/pulumi-danubedata/sdk/go/danubedata"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := danubedata.NewVps(ctx, "dev", &danubedata.VpsArgs{
Image: pulumi.String("ubuntu-22.04"),
Datacenter: pulumi.String("fsn1"),
AuthMethod: pulumi.String("password"),
Password: pulumi.Any(_var.Server_password),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DanubeData = DanubeData.DanubeData;
return await Deployment.RunAsync(() =>
{
var dev = new DanubeData.Vps("dev", new()
{
Image = "ubuntu-22.04",
Datacenter = "fsn1",
AuthMethod = "password",
Password = @var.Server_password,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.danubedata.Vps;
import com.pulumi.danubedata.VpsArgs;
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 dev = new Vps("dev", VpsArgs.builder()
.image("ubuntu-22.04")
.datacenter("fsn1")
.authMethod("password")
.password(var_.server_password())
.build());
}
}
resources:
dev:
type: danubedata:Vps
properties:
image: ubuntu-22.04
datacenter: fsn1
authMethod: password
password: ${var.server_password}
VPS with Resource Profile
import * as pulumi from "@pulumi/pulumi";
import * as danubedata from "@danubedata/pulumi";
const standard = new danubedata.Vps("standard", {
image: "ubuntu-22.04",
datacenter: "fsn1",
resourceProfile: "vps-medium",
authMethod: "ssh_key",
sshKeyId: danubedata_ssh_key.main.id,
});
import pulumi
import pulumi_danubedata as danubedata
standard = danubedata.Vps("standard",
image="ubuntu-22.04",
datacenter="fsn1",
resource_profile="vps-medium",
auth_method="ssh_key",
ssh_key_id=danubedata_ssh_key["main"]["id"])
package main
import (
"github.com/AdrianSilaghi/pulumi-danubedata/sdk/go/danubedata"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := danubedata.NewVps(ctx, "standard", &danubedata.VpsArgs{
Image: pulumi.String("ubuntu-22.04"),
Datacenter: pulumi.String("fsn1"),
ResourceProfile: pulumi.String("vps-medium"),
AuthMethod: pulumi.String("ssh_key"),
SshKeyId: pulumi.Any(danubedata_ssh_key.Main.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DanubeData = DanubeData.DanubeData;
return await Deployment.RunAsync(() =>
{
var standard = new DanubeData.Vps("standard", new()
{
Image = "ubuntu-22.04",
Datacenter = "fsn1",
ResourceProfile = "vps-medium",
AuthMethod = "ssh_key",
SshKeyId = danubedata_ssh_key.Main.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.danubedata.Vps;
import com.pulumi.danubedata.VpsArgs;
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 standard = new Vps("standard", VpsArgs.builder()
.image("ubuntu-22.04")
.datacenter("fsn1")
.resourceProfile("vps-medium")
.authMethod("ssh_key")
.sshKeyId(danubedata_ssh_key.main().id())
.build());
}
}
resources:
standard:
type: danubedata:Vps
properties:
image: ubuntu-22.04
datacenter: fsn1
resourceProfile: vps-medium
authMethod: ssh_key
sshKeyId: ${danubedata_ssh_key.main.id}
Create Vps Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Vps(name: string, args: VpsArgs, opts?: CustomResourceOptions);@overload
def Vps(resource_name: str,
args: VpsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Vps(resource_name: str,
opts: Optional[ResourceOptions] = None,
datacenter: Optional[str] = None,
auth_method: Optional[str] = None,
image: Optional[str] = None,
memory_size_gb: Optional[int] = None,
custom_cloud_init: Optional[str] = None,
cpu_cores: Optional[int] = None,
cpu_allocation_type: Optional[str] = None,
name: Optional[str] = None,
network_stack: Optional[str] = None,
password: Optional[str] = None,
resource_profile: Optional[str] = None,
ssh_key_id: Optional[str] = None,
storage_size_gb: Optional[int] = None,
timeouts: Optional[VpsTimeoutsArgs] = None)func NewVps(ctx *Context, name string, args VpsArgs, opts ...ResourceOption) (*Vps, error)public Vps(string name, VpsArgs args, CustomResourceOptions? opts = null)type: danubedata:Vps
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 VpsArgs
- 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 VpsArgs
- 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 VpsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpsArgs
- 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 vpsResource = new DanubeData.Vps("vpsResource", new()
{
Datacenter = "string",
AuthMethod = "string",
Image = "string",
MemorySizeGb = 0,
CustomCloudInit = "string",
CpuCores = 0,
CpuAllocationType = "string",
Name = "string",
NetworkStack = "string",
Password = "string",
ResourceProfile = "string",
SshKeyId = "string",
StorageSizeGb = 0,
Timeouts = new DanubeData.Inputs.VpsTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := danubedata.NewVps(ctx, "vpsResource", &danubedata.VpsArgs{
Datacenter: pulumi.String("string"),
AuthMethod: pulumi.String("string"),
Image: pulumi.String("string"),
MemorySizeGb: pulumi.Int(0),
CustomCloudInit: pulumi.String("string"),
CpuCores: pulumi.Int(0),
CpuAllocationType: pulumi.String("string"),
Name: pulumi.String("string"),
NetworkStack: pulumi.String("string"),
Password: pulumi.String("string"),
ResourceProfile: pulumi.String("string"),
SshKeyId: pulumi.String("string"),
StorageSizeGb: pulumi.Int(0),
Timeouts: &danubedata.VpsTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var vpsResource = new Vps("vpsResource", VpsArgs.builder()
.datacenter("string")
.authMethod("string")
.image("string")
.memorySizeGb(0)
.customCloudInit("string")
.cpuCores(0)
.cpuAllocationType("string")
.name("string")
.networkStack("string")
.password("string")
.resourceProfile("string")
.sshKeyId("string")
.storageSizeGb(0)
.timeouts(VpsTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
vps_resource = danubedata.Vps("vpsResource",
datacenter="string",
auth_method="string",
image="string",
memory_size_gb=0,
custom_cloud_init="string",
cpu_cores=0,
cpu_allocation_type="string",
name="string",
network_stack="string",
password="string",
resource_profile="string",
ssh_key_id="string",
storage_size_gb=0,
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const vpsResource = new danubedata.Vps("vpsResource", {
datacenter: "string",
authMethod: "string",
image: "string",
memorySizeGb: 0,
customCloudInit: "string",
cpuCores: 0,
cpuAllocationType: "string",
name: "string",
networkStack: "string",
password: "string",
resourceProfile: "string",
sshKeyId: "string",
storageSizeGb: 0,
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: danubedata:Vps
properties:
authMethod: string
cpuAllocationType: string
cpuCores: 0
customCloudInit: string
datacenter: string
image: string
memorySizeGb: 0
name: string
networkStack: string
password: string
resourceProfile: string
sshKeyId: string
storageSizeGb: 0
timeouts:
create: string
delete: string
update: string
Vps 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 Vps resource accepts the following input properties:
- Auth
Method string - Authentication method: 'ssh_key' or 'password'.
- Datacenter string
- Datacenter location (fsn1, nbg1, hel1, ash).
- Image string
- Operating system image (e.g., 'ubuntu-24.04', 'debian-12').
- Cpu
Allocation stringType - CPU allocation type: 'shared' or 'dedicated'.
- Cpu
Cores int - Number of CPU cores. Can be specified during creation or update. VPS must be stopped to modify.
- Custom
Cloud stringInit - Custom cloud-init configuration script.
- Memory
Size intGb - Memory size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- Name string
- Name of the VPS instance. Must be lowercase alphanumeric with hyphens.
- Network
Stack string - Network stack: 'ipv4_only', 'ipv6_only', or 'dual_stack'.
- Password string
- Root password (required if auth_method is 'password'). Must be at least 12 characters.
- Resource
Profile string - Resource profile for the VPS (nano_shared, micro_shared, small_shared, medium_shared, large_shared, or dedicated variants).
- Ssh
Key stringId - SSH key ID for authentication (required if auth_method is 'ssh_key').
- Storage
Size intGb - Storage size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- Timeouts
Danube
Data. Danube Data. Inputs. Vps Timeouts
- Auth
Method string - Authentication method: 'ssh_key' or 'password'.
- Datacenter string
- Datacenter location (fsn1, nbg1, hel1, ash).
- Image string
- Operating system image (e.g., 'ubuntu-24.04', 'debian-12').
- Cpu
Allocation stringType - CPU allocation type: 'shared' or 'dedicated'.
- Cpu
Cores int - Number of CPU cores. Can be specified during creation or update. VPS must be stopped to modify.
- Custom
Cloud stringInit - Custom cloud-init configuration script.
- Memory
Size intGb - Memory size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- Name string
- Name of the VPS instance. Must be lowercase alphanumeric with hyphens.
- Network
Stack string - Network stack: 'ipv4_only', 'ipv6_only', or 'dual_stack'.
- Password string
- Root password (required if auth_method is 'password'). Must be at least 12 characters.
- Resource
Profile string - Resource profile for the VPS (nano_shared, micro_shared, small_shared, medium_shared, large_shared, or dedicated variants).
- Ssh
Key stringId - SSH key ID for authentication (required if auth_method is 'ssh_key').
- Storage
Size intGb - Storage size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- Timeouts
Vps
Timeouts Args
- auth
Method String - Authentication method: 'ssh_key' or 'password'.
- datacenter String
- Datacenter location (fsn1, nbg1, hel1, ash).
- image String
- Operating system image (e.g., 'ubuntu-24.04', 'debian-12').
- cpu
Allocation StringType - CPU allocation type: 'shared' or 'dedicated'.
- cpu
Cores Integer - Number of CPU cores. Can be specified during creation or update. VPS must be stopped to modify.
- custom
Cloud StringInit - Custom cloud-init configuration script.
- memory
Size IntegerGb - Memory size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- name String
- Name of the VPS instance. Must be lowercase alphanumeric with hyphens.
- network
Stack String - Network stack: 'ipv4_only', 'ipv6_only', or 'dual_stack'.
- password String
- Root password (required if auth_method is 'password'). Must be at least 12 characters.
- resource
Profile String - Resource profile for the VPS (nano_shared, micro_shared, small_shared, medium_shared, large_shared, or dedicated variants).
- ssh
Key StringId - SSH key ID for authentication (required if auth_method is 'ssh_key').
- storage
Size IntegerGb - Storage size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- timeouts
Vps
Timeouts
- auth
Method string - Authentication method: 'ssh_key' or 'password'.
- datacenter string
- Datacenter location (fsn1, nbg1, hel1, ash).
- image string
- Operating system image (e.g., 'ubuntu-24.04', 'debian-12').
- cpu
Allocation stringType - CPU allocation type: 'shared' or 'dedicated'.
- cpu
Cores number - Number of CPU cores. Can be specified during creation or update. VPS must be stopped to modify.
- custom
Cloud stringInit - Custom cloud-init configuration script.
- memory
Size numberGb - Memory size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- name string
- Name of the VPS instance. Must be lowercase alphanumeric with hyphens.
- network
Stack string - Network stack: 'ipv4_only', 'ipv6_only', or 'dual_stack'.
- password string
- Root password (required if auth_method is 'password'). Must be at least 12 characters.
- resource
Profile string - Resource profile for the VPS (nano_shared, micro_shared, small_shared, medium_shared, large_shared, or dedicated variants).
- ssh
Key stringId - SSH key ID for authentication (required if auth_method is 'ssh_key').
- storage
Size numberGb - Storage size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- timeouts
Vps
Timeouts
- auth_
method str - Authentication method: 'ssh_key' or 'password'.
- datacenter str
- Datacenter location (fsn1, nbg1, hel1, ash).
- image str
- Operating system image (e.g., 'ubuntu-24.04', 'debian-12').
- cpu_
allocation_ strtype - CPU allocation type: 'shared' or 'dedicated'.
- cpu_
cores int - Number of CPU cores. Can be specified during creation or update. VPS must be stopped to modify.
- custom_
cloud_ strinit - Custom cloud-init configuration script.
- memory_
size_ intgb - Memory size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- name str
- Name of the VPS instance. Must be lowercase alphanumeric with hyphens.
- network_
stack str - Network stack: 'ipv4_only', 'ipv6_only', or 'dual_stack'.
- password str
- Root password (required if auth_method is 'password'). Must be at least 12 characters.
- resource_
profile str - Resource profile for the VPS (nano_shared, micro_shared, small_shared, medium_shared, large_shared, or dedicated variants).
- ssh_
key_ strid - SSH key ID for authentication (required if auth_method is 'ssh_key').
- storage_
size_ intgb - Storage size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- timeouts
Vps
Timeouts Args
- auth
Method String - Authentication method: 'ssh_key' or 'password'.
- datacenter String
- Datacenter location (fsn1, nbg1, hel1, ash).
- image String
- Operating system image (e.g., 'ubuntu-24.04', 'debian-12').
- cpu
Allocation StringType - CPU allocation type: 'shared' or 'dedicated'.
- cpu
Cores Number - Number of CPU cores. Can be specified during creation or update. VPS must be stopped to modify.
- custom
Cloud StringInit - Custom cloud-init configuration script.
- memory
Size NumberGb - Memory size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- name String
- Name of the VPS instance. Must be lowercase alphanumeric with hyphens.
- network
Stack String - Network stack: 'ipv4_only', 'ipv6_only', or 'dual_stack'.
- password String
- Root password (required if auth_method is 'password'). Must be at least 12 characters.
- resource
Profile String - Resource profile for the VPS (nano_shared, micro_shared, small_shared, medium_shared, large_shared, or dedicated variants).
- ssh
Key StringId - SSH key ID for authentication (required if auth_method is 'ssh_key').
- storage
Size NumberGb - Storage size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Vps resource produces the following output properties:
- Created
At string - Creation timestamp.
- Deployed
At string - Deployment timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv6Address string
- IPv6 address (if enabled).
- Monthly
Cost double - Estimated monthly cost.
- Monthly
Cost intCents - Monthly cost in cents.
- Private
Ip string - Private IP address.
- Public
Ip string - Public IPv4 address.
- Status string
- Current status of the VPS.
- Updated
At string - Timestamp when the VPS was last updated.
- Created
At string - Creation timestamp.
- Deployed
At string - Deployment timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv6Address string
- IPv6 address (if enabled).
- Monthly
Cost float64 - Estimated monthly cost.
- Monthly
Cost intCents - Monthly cost in cents.
- Private
Ip string - Private IP address.
- Public
Ip string - Public IPv4 address.
- Status string
- Current status of the VPS.
- Updated
At string - Timestamp when the VPS was last updated.
- created
At String - Creation timestamp.
- deployed
At String - Deployment timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6Address String
- IPv6 address (if enabled).
- monthly
Cost Double - Estimated monthly cost.
- monthly
Cost IntegerCents - Monthly cost in cents.
- private
Ip String - Private IP address.
- public
Ip String - Public IPv4 address.
- status String
- Current status of the VPS.
- updated
At String - Timestamp when the VPS was last updated.
- created
At string - Creation timestamp.
- deployed
At string - Deployment timestamp.
- id string
- The provider-assigned unique ID for this managed resource.
- ipv6Address string
- IPv6 address (if enabled).
- monthly
Cost number - Estimated monthly cost.
- monthly
Cost numberCents - Monthly cost in cents.
- private
Ip string - Private IP address.
- public
Ip string - Public IPv4 address.
- status string
- Current status of the VPS.
- updated
At string - Timestamp when the VPS was last updated.
- created_
at str - Creation timestamp.
- deployed_
at str - Deployment timestamp.
- id str
- The provider-assigned unique ID for this managed resource.
- ipv6_
address str - IPv6 address (if enabled).
- monthly_
cost float - Estimated monthly cost.
- monthly_
cost_ intcents - Monthly cost in cents.
- private_
ip str - Private IP address.
- public_
ip str - Public IPv4 address.
- status str
- Current status of the VPS.
- updated_
at str - Timestamp when the VPS was last updated.
- created
At String - Creation timestamp.
- deployed
At String - Deployment timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6Address String
- IPv6 address (if enabled).
- monthly
Cost Number - Estimated monthly cost.
- monthly
Cost NumberCents - Monthly cost in cents.
- private
Ip String - Private IP address.
- public
Ip String - Public IPv4 address.
- status String
- Current status of the VPS.
- updated
At String - Timestamp when the VPS was last updated.
Look up Existing Vps Resource
Get an existing Vps 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?: VpsState, opts?: CustomResourceOptions): Vps@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auth_method: Optional[str] = None,
cpu_allocation_type: Optional[str] = None,
cpu_cores: Optional[int] = None,
created_at: Optional[str] = None,
custom_cloud_init: Optional[str] = None,
datacenter: Optional[str] = None,
deployed_at: Optional[str] = None,
image: Optional[str] = None,
ipv6_address: Optional[str] = None,
memory_size_gb: Optional[int] = None,
monthly_cost: Optional[float] = None,
monthly_cost_cents: Optional[int] = None,
name: Optional[str] = None,
network_stack: Optional[str] = None,
password: Optional[str] = None,
private_ip: Optional[str] = None,
public_ip: Optional[str] = None,
resource_profile: Optional[str] = None,
ssh_key_id: Optional[str] = None,
status: Optional[str] = None,
storage_size_gb: Optional[int] = None,
timeouts: Optional[VpsTimeoutsArgs] = None,
updated_at: Optional[str] = None) -> Vpsfunc GetVps(ctx *Context, name string, id IDInput, state *VpsState, opts ...ResourceOption) (*Vps, error)public static Vps Get(string name, Input<string> id, VpsState? state, CustomResourceOptions? opts = null)public static Vps get(String name, Output<String> id, VpsState state, CustomResourceOptions options)resources: _: type: danubedata:Vps 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.
- Auth
Method string - Authentication method: 'ssh_key' or 'password'.
- Cpu
Allocation stringType - CPU allocation type: 'shared' or 'dedicated'.
- Cpu
Cores int - Number of CPU cores. Can be specified during creation or update. VPS must be stopped to modify.
- Created
At string - Creation timestamp.
- Custom
Cloud stringInit - Custom cloud-init configuration script.
- Datacenter string
- Datacenter location (fsn1, nbg1, hel1, ash).
- Deployed
At string - Deployment timestamp.
- Image string
- Operating system image (e.g., 'ubuntu-24.04', 'debian-12').
- Ipv6Address string
- IPv6 address (if enabled).
- Memory
Size intGb - Memory size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- Monthly
Cost double - Estimated monthly cost.
- Monthly
Cost intCents - Monthly cost in cents.
- Name string
- Name of the VPS instance. Must be lowercase alphanumeric with hyphens.
- Network
Stack string - Network stack: 'ipv4_only', 'ipv6_only', or 'dual_stack'.
- Password string
- Root password (required if auth_method is 'password'). Must be at least 12 characters.
- Private
Ip string - Private IP address.
- Public
Ip string - Public IPv4 address.
- Resource
Profile string - Resource profile for the VPS (nano_shared, micro_shared, small_shared, medium_shared, large_shared, or dedicated variants).
- Ssh
Key stringId - SSH key ID for authentication (required if auth_method is 'ssh_key').
- Status string
- Current status of the VPS.
- Storage
Size intGb - Storage size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- Timeouts
Danube
Data. Danube Data. Inputs. Vps Timeouts - Updated
At string - Timestamp when the VPS was last updated.
- Auth
Method string - Authentication method: 'ssh_key' or 'password'.
- Cpu
Allocation stringType - CPU allocation type: 'shared' or 'dedicated'.
- Cpu
Cores int - Number of CPU cores. Can be specified during creation or update. VPS must be stopped to modify.
- Created
At string - Creation timestamp.
- Custom
Cloud stringInit - Custom cloud-init configuration script.
- Datacenter string
- Datacenter location (fsn1, nbg1, hel1, ash).
- Deployed
At string - Deployment timestamp.
- Image string
- Operating system image (e.g., 'ubuntu-24.04', 'debian-12').
- Ipv6Address string
- IPv6 address (if enabled).
- Memory
Size intGb - Memory size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- Monthly
Cost float64 - Estimated monthly cost.
- Monthly
Cost intCents - Monthly cost in cents.
- Name string
- Name of the VPS instance. Must be lowercase alphanumeric with hyphens.
- Network
Stack string - Network stack: 'ipv4_only', 'ipv6_only', or 'dual_stack'.
- Password string
- Root password (required if auth_method is 'password'). Must be at least 12 characters.
- Private
Ip string - Private IP address.
- Public
Ip string - Public IPv4 address.
- Resource
Profile string - Resource profile for the VPS (nano_shared, micro_shared, small_shared, medium_shared, large_shared, or dedicated variants).
- Ssh
Key stringId - SSH key ID for authentication (required if auth_method is 'ssh_key').
- Status string
- Current status of the VPS.
- Storage
Size intGb - Storage size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- Timeouts
Vps
Timeouts Args - Updated
At string - Timestamp when the VPS was last updated.
- auth
Method String - Authentication method: 'ssh_key' or 'password'.
- cpu
Allocation StringType - CPU allocation type: 'shared' or 'dedicated'.
- cpu
Cores Integer - Number of CPU cores. Can be specified during creation or update. VPS must be stopped to modify.
- created
At String - Creation timestamp.
- custom
Cloud StringInit - Custom cloud-init configuration script.
- datacenter String
- Datacenter location (fsn1, nbg1, hel1, ash).
- deployed
At String - Deployment timestamp.
- image String
- Operating system image (e.g., 'ubuntu-24.04', 'debian-12').
- ipv6Address String
- IPv6 address (if enabled).
- memory
Size IntegerGb - Memory size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- monthly
Cost Double - Estimated monthly cost.
- monthly
Cost IntegerCents - Monthly cost in cents.
- name String
- Name of the VPS instance. Must be lowercase alphanumeric with hyphens.
- network
Stack String - Network stack: 'ipv4_only', 'ipv6_only', or 'dual_stack'.
- password String
- Root password (required if auth_method is 'password'). Must be at least 12 characters.
- private
Ip String - Private IP address.
- public
Ip String - Public IPv4 address.
- resource
Profile String - Resource profile for the VPS (nano_shared, micro_shared, small_shared, medium_shared, large_shared, or dedicated variants).
- ssh
Key StringId - SSH key ID for authentication (required if auth_method is 'ssh_key').
- status String
- Current status of the VPS.
- storage
Size IntegerGb - Storage size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- timeouts
Vps
Timeouts - updated
At String - Timestamp when the VPS was last updated.
- auth
Method string - Authentication method: 'ssh_key' or 'password'.
- cpu
Allocation stringType - CPU allocation type: 'shared' or 'dedicated'.
- cpu
Cores number - Number of CPU cores. Can be specified during creation or update. VPS must be stopped to modify.
- created
At string - Creation timestamp.
- custom
Cloud stringInit - Custom cloud-init configuration script.
- datacenter string
- Datacenter location (fsn1, nbg1, hel1, ash).
- deployed
At string - Deployment timestamp.
- image string
- Operating system image (e.g., 'ubuntu-24.04', 'debian-12').
- ipv6Address string
- IPv6 address (if enabled).
- memory
Size numberGb - Memory size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- monthly
Cost number - Estimated monthly cost.
- monthly
Cost numberCents - Monthly cost in cents.
- name string
- Name of the VPS instance. Must be lowercase alphanumeric with hyphens.
- network
Stack string - Network stack: 'ipv4_only', 'ipv6_only', or 'dual_stack'.
- password string
- Root password (required if auth_method is 'password'). Must be at least 12 characters.
- private
Ip string - Private IP address.
- public
Ip string - Public IPv4 address.
- resource
Profile string - Resource profile for the VPS (nano_shared, micro_shared, small_shared, medium_shared, large_shared, or dedicated variants).
- ssh
Key stringId - SSH key ID for authentication (required if auth_method is 'ssh_key').
- status string
- Current status of the VPS.
- storage
Size numberGb - Storage size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- timeouts
Vps
Timeouts - updated
At string - Timestamp when the VPS was last updated.
- auth_
method str - Authentication method: 'ssh_key' or 'password'.
- cpu_
allocation_ strtype - CPU allocation type: 'shared' or 'dedicated'.
- cpu_
cores int - Number of CPU cores. Can be specified during creation or update. VPS must be stopped to modify.
- created_
at str - Creation timestamp.
- custom_
cloud_ strinit - Custom cloud-init configuration script.
- datacenter str
- Datacenter location (fsn1, nbg1, hel1, ash).
- deployed_
at str - Deployment timestamp.
- image str
- Operating system image (e.g., 'ubuntu-24.04', 'debian-12').
- ipv6_
address str - IPv6 address (if enabled).
- memory_
size_ intgb - Memory size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- monthly_
cost float - Estimated monthly cost.
- monthly_
cost_ intcents - Monthly cost in cents.
- name str
- Name of the VPS instance. Must be lowercase alphanumeric with hyphens.
- network_
stack str - Network stack: 'ipv4_only', 'ipv6_only', or 'dual_stack'.
- password str
- Root password (required if auth_method is 'password'). Must be at least 12 characters.
- private_
ip str - Private IP address.
- public_
ip str - Public IPv4 address.
- resource_
profile str - Resource profile for the VPS (nano_shared, micro_shared, small_shared, medium_shared, large_shared, or dedicated variants).
- ssh_
key_ strid - SSH key ID for authentication (required if auth_method is 'ssh_key').
- status str
- Current status of the VPS.
- storage_
size_ intgb - Storage size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- timeouts
Vps
Timeouts Args - updated_
at str - Timestamp when the VPS was last updated.
- auth
Method String - Authentication method: 'ssh_key' or 'password'.
- cpu
Allocation StringType - CPU allocation type: 'shared' or 'dedicated'.
- cpu
Cores Number - Number of CPU cores. Can be specified during creation or update. VPS must be stopped to modify.
- created
At String - Creation timestamp.
- custom
Cloud StringInit - Custom cloud-init configuration script.
- datacenter String
- Datacenter location (fsn1, nbg1, hel1, ash).
- deployed
At String - Deployment timestamp.
- image String
- Operating system image (e.g., 'ubuntu-24.04', 'debian-12').
- ipv6Address String
- IPv6 address (if enabled).
- memory
Size NumberGb - Memory size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- monthly
Cost Number - Estimated monthly cost.
- monthly
Cost NumberCents - Monthly cost in cents.
- name String
- Name of the VPS instance. Must be lowercase alphanumeric with hyphens.
- network
Stack String - Network stack: 'ipv4_only', 'ipv6_only', or 'dual_stack'.
- password String
- Root password (required if auth_method is 'password'). Must be at least 12 characters.
- private
Ip String - Private IP address.
- public
Ip String - Public IPv4 address.
- resource
Profile String - Resource profile for the VPS (nano_shared, micro_shared, small_shared, medium_shared, large_shared, or dedicated variants).
- ssh
Key StringId - SSH key ID for authentication (required if auth_method is 'ssh_key').
- status String
- Current status of the VPS.
- storage
Size NumberGb - Storage size in GB. Can be specified during creation or update. VPS must be stopped to modify.
- timeouts Property Map
- updated
At String - Timestamp when the VPS was last updated.
Supporting Types
VpsTimeouts, VpsTimeoutsArgs
Import
VPS instances can be imported using their ID:
bash
$ pulumi import danubedata:index/vps:Vps example vps-abc123
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- danubedata AdrianSilaghi/pulumi-danubedata
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
danubedataTerraform Provider.
