vultr.Instance
Explore with Pulumi AI
Provides a Vultr instance resource. This can be used to create, read, modify, and delete instances on your Vultr account.
Example Usage
Create a new instance:
import * as pulumi from "@pulumi/pulumi";
import * as vultr from "@ediri/vultr";
const myInstance = new vultr.Instance("myInstance", {
osId: 1743,
plan: "vc2-1c-2gb",
region: "sea",
});
import pulumi
import ediri_vultr as vultr
my_instance = vultr.Instance("myInstance",
os_id=1743,
plan="vc2-1c-2gb",
region="sea")
package main
import (
"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vultr.NewInstance(ctx, "myInstance", &vultr.InstanceArgs{
OsId: pulumi.Int(1743),
Plan: pulumi.String("vc2-1c-2gb"),
Region: pulumi.String("sea"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vultr = ediri.Vultr;
return await Deployment.RunAsync(() =>
{
var myInstance = new Vultr.Instance("myInstance", new()
{
OsId = 1743,
Plan = "vc2-1c-2gb",
Region = "sea",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vultr.Instance;
import com.pulumi.vultr.InstanceArgs;
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 myInstance = new Instance("myInstance", InstanceArgs.builder()
.osId(1743)
.plan("vc2-1c-2gb")
.region("sea")
.build());
}
}
resources:
myInstance:
type: vultr:Instance
properties:
osId: 1743
plan: vc2-1c-2gb
region: sea
Create a new instance with options:
import * as pulumi from "@pulumi/pulumi";
import * as vultr from "@ediri/vultr";
const myInstance = new vultr.Instance("myInstance", {
activationEmail: false,
backups: "enabled",
backupsSchedule: {
type: "daily",
},
ddosProtection: true,
disablePublicIpv4: true,
enableIpv6: true,
hostname: "my-instance-hostname",
label: "my-instance-label",
osId: 1743,
plan: "vc2-1c-2gb",
region: "sea",
tags: ["my-instance-tag"],
});
import pulumi
import ediri_vultr as vultr
my_instance = vultr.Instance("myInstance",
activation_email=False,
backups="enabled",
backups_schedule=vultr.InstanceBackupsScheduleArgs(
type="daily",
),
ddos_protection=True,
disable_public_ipv4=True,
enable_ipv6=True,
hostname="my-instance-hostname",
label="my-instance-label",
os_id=1743,
plan="vc2-1c-2gb",
region="sea",
tags=["my-instance-tag"])
package main
import (
"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vultr.NewInstance(ctx, "myInstance", &vultr.InstanceArgs{
ActivationEmail: pulumi.Bool(false),
Backups: pulumi.String("enabled"),
BackupsSchedule: &vultr.InstanceBackupsScheduleArgs{
Type: pulumi.String("daily"),
},
DdosProtection: pulumi.Bool(true),
DisablePublicIpv4: pulumi.Bool(true),
EnableIpv6: pulumi.Bool(true),
Hostname: pulumi.String("my-instance-hostname"),
Label: pulumi.String("my-instance-label"),
OsId: pulumi.Int(1743),
Plan: pulumi.String("vc2-1c-2gb"),
Region: pulumi.String("sea"),
Tags: pulumi.StringArray{
pulumi.String("my-instance-tag"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vultr = ediri.Vultr;
return await Deployment.RunAsync(() =>
{
var myInstance = new Vultr.Instance("myInstance", new()
{
ActivationEmail = false,
Backups = "enabled",
BackupsSchedule = new Vultr.Inputs.InstanceBackupsScheduleArgs
{
Type = "daily",
},
DdosProtection = true,
DisablePublicIpv4 = true,
EnableIpv6 = true,
Hostname = "my-instance-hostname",
Label = "my-instance-label",
OsId = 1743,
Plan = "vc2-1c-2gb",
Region = "sea",
Tags = new[]
{
"my-instance-tag",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vultr.Instance;
import com.pulumi.vultr.InstanceArgs;
import com.pulumi.vultr.inputs.InstanceBackupsScheduleArgs;
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 myInstance = new Instance("myInstance", InstanceArgs.builder()
.activationEmail(false)
.backups("enabled")
.backupsSchedule(InstanceBackupsScheduleArgs.builder()
.type("daily")
.build())
.ddosProtection(true)
.disablePublicIpv4(true)
.enableIpv6(true)
.hostname("my-instance-hostname")
.label("my-instance-label")
.osId(1743)
.plan("vc2-1c-2gb")
.region("sea")
.tags("my-instance-tag")
.build());
}
}
resources:
myInstance:
type: vultr:Instance
properties:
activationEmail: false
backups: enabled
backupsSchedule:
type: daily
ddosProtection: true
disablePublicIpv4: true
enableIpv6: true
hostname: my-instance-hostname
label: my-instance-label
osId: 1743
plan: vc2-1c-2gb
region: sea
tags:
- my-instance-tag
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
plan: Optional[str] = None,
region: Optional[str] = None,
label: Optional[str] = None,
backups_schedule: Optional[InstanceBackupsScheduleArgs] = None,
os_id: Optional[int] = None,
ddos_protection: Optional[bool] = None,
disable_public_ipv4: Optional[bool] = None,
enable_ipv6: Optional[bool] = None,
firewall_group_id: Optional[str] = None,
hostname: Optional[str] = None,
app_variables: Optional[Mapping[str, str]] = None,
iso_id: Optional[str] = None,
vpc_ids: Optional[Sequence[str]] = None,
backups: Optional[str] = None,
image_id: Optional[str] = None,
app_id: Optional[int] = None,
reserved_ip_id: Optional[str] = None,
script_id: Optional[str] = None,
snapshot_id: Optional[str] = None,
ssh_key_ids: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
user_data: Optional[str] = None,
vpc2_ids: Optional[Sequence[str]] = None,
activation_email: Optional[bool] = None)
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: vultr:Instance
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 InstanceArgs
- 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 InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- 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 instanceResource = new Vultr.Instance("instanceResource", new()
{
Plan = "string",
Region = "string",
Label = "string",
BackupsSchedule = new Vultr.Inputs.InstanceBackupsScheduleArgs
{
Type = "string",
Dom = 0,
Dow = 0,
Hour = 0,
},
OsId = 0,
DdosProtection = false,
DisablePublicIpv4 = false,
EnableIpv6 = false,
FirewallGroupId = "string",
Hostname = "string",
AppVariables =
{
{ "string", "string" },
},
IsoId = "string",
VpcIds = new[]
{
"string",
},
Backups = "string",
ImageId = "string",
AppId = 0,
ReservedIpId = "string",
ScriptId = "string",
SnapshotId = "string",
SshKeyIds = new[]
{
"string",
},
Tags = new[]
{
"string",
},
UserData = "string",
Vpc2Ids = new[]
{
"string",
},
ActivationEmail = false,
});
example, err := vultr.NewInstance(ctx, "instanceResource", &vultr.InstanceArgs{
Plan: pulumi.String("string"),
Region: pulumi.String("string"),
Label: pulumi.String("string"),
BackupsSchedule: &vultr.InstanceBackupsScheduleArgs{
Type: pulumi.String("string"),
Dom: pulumi.Int(0),
Dow: pulumi.Int(0),
Hour: pulumi.Int(0),
},
OsId: pulumi.Int(0),
DdosProtection: pulumi.Bool(false),
DisablePublicIpv4: pulumi.Bool(false),
EnableIpv6: pulumi.Bool(false),
FirewallGroupId: pulumi.String("string"),
Hostname: pulumi.String("string"),
AppVariables: pulumi.StringMap{
"string": pulumi.String("string"),
},
IsoId: pulumi.String("string"),
VpcIds: pulumi.StringArray{
pulumi.String("string"),
},
Backups: pulumi.String("string"),
ImageId: pulumi.String("string"),
AppId: pulumi.Int(0),
ReservedIpId: pulumi.String("string"),
ScriptId: pulumi.String("string"),
SnapshotId: pulumi.String("string"),
SshKeyIds: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
UserData: pulumi.String("string"),
Vpc2Ids: pulumi.StringArray{
pulumi.String("string"),
},
ActivationEmail: pulumi.Bool(false),
})
var instanceResource = new Instance("instanceResource", InstanceArgs.builder()
.plan("string")
.region("string")
.label("string")
.backupsSchedule(InstanceBackupsScheduleArgs.builder()
.type("string")
.dom(0)
.dow(0)
.hour(0)
.build())
.osId(0)
.ddosProtection(false)
.disablePublicIpv4(false)
.enableIpv6(false)
.firewallGroupId("string")
.hostname("string")
.appVariables(Map.of("string", "string"))
.isoId("string")
.vpcIds("string")
.backups("string")
.imageId("string")
.appId(0)
.reservedIpId("string")
.scriptId("string")
.snapshotId("string")
.sshKeyIds("string")
.tags("string")
.userData("string")
.vpc2Ids("string")
.activationEmail(false)
.build());
instance_resource = vultr.Instance("instanceResource",
plan="string",
region="string",
label="string",
backups_schedule={
"type": "string",
"dom": 0,
"dow": 0,
"hour": 0,
},
os_id=0,
ddos_protection=False,
disable_public_ipv4=False,
enable_ipv6=False,
firewall_group_id="string",
hostname="string",
app_variables={
"string": "string",
},
iso_id="string",
vpc_ids=["string"],
backups="string",
image_id="string",
app_id=0,
reserved_ip_id="string",
script_id="string",
snapshot_id="string",
ssh_key_ids=["string"],
tags=["string"],
user_data="string",
vpc2_ids=["string"],
activation_email=False)
const instanceResource = new vultr.Instance("instanceResource", {
plan: "string",
region: "string",
label: "string",
backupsSchedule: {
type: "string",
dom: 0,
dow: 0,
hour: 0,
},
osId: 0,
ddosProtection: false,
disablePublicIpv4: false,
enableIpv6: false,
firewallGroupId: "string",
hostname: "string",
appVariables: {
string: "string",
},
isoId: "string",
vpcIds: ["string"],
backups: "string",
imageId: "string",
appId: 0,
reservedIpId: "string",
scriptId: "string",
snapshotId: "string",
sshKeyIds: ["string"],
tags: ["string"],
userData: "string",
vpc2Ids: ["string"],
activationEmail: false,
});
type: vultr:Instance
properties:
activationEmail: false
appId: 0
appVariables:
string: string
backups: string
backupsSchedule:
dom: 0
dow: 0
hour: 0
type: string
ddosProtection: false
disablePublicIpv4: false
enableIpv6: false
firewallGroupId: string
hostname: string
imageId: string
isoId: string
label: string
osId: 0
plan: string
region: string
reservedIpId: string
scriptId: string
snapshotId: string
sshKeyIds:
- string
tags:
- string
userData: string
vpc2Ids:
- string
vpcIds:
- string
Instance 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 Instance resource accepts the following input properties:
- Plan string
- The ID of the plan that you want the instance to subscribe to. See List Plans
- Region string
- The ID of the region that the instance is to be created in. See List Regions
- Activation
Email bool - Whether an activation email will be sent when the server is ready.
- App
Id int - The ID of the Vultr application to be installed on the server. See List Applications
- App
Variables Dictionary<string, string> - A map of user-supplied variable keys and values for Vultr Marketplace apps. See List Marketplace App Variables
- Backups string
- Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
- Backups
Schedule ediri.Vultr. Inputs. Instance Backups Schedule - A block that defines the way backups should be scheduled. While this is an optional field if
backups
areenabled
this field is mandatory. The configuration of abackups_schedule
is listed below. - Ddos
Protection bool - Whether DDOS protection will be enabled on the server (there is an additional charge for this).
- Disable
Public boolIpv4 - Whether the server has a public IPv4 address assigned (only possible with
enable_ipv6
set totrue
) - Enable
Ipv6 bool - Whether the server has IPv6 networking activated.
- Firewall
Group stringId - The ID of the firewall group to assign to the server.
- Hostname string
- The hostname to assign to the server.
- Image
Id string - The ID of the Vultr marketplace application to be installed on the server. See List Applications Note marketplace applications are denoted by type:
marketplace
and you must use theimage_id
not the id. - Iso
Id string - The ID of the ISO file to be installed on the server. See List ISO
- Label string
- A label for the server.
- Os
Id int - The ID of the operating system to be installed on the server. See List OS
- Reserved
Ip stringId - ID of the floating IP to use as the main IP of this server.
- Script
Id string - The ID of the startup script you want added to the server.
- Snapshot
Id string - The ID of the Vultr snapshot that the server will restore for the initial installation. See List Snapshots
- Ssh
Key List<string>Ids - A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
- List<string>
- A list of tags to apply to the instance.
- User
Data string - Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
- Vpc2Ids List<string>
- A list of VPC 2.0 IDs to be attached to the server.
- Vpc
Ids List<string> - A list of VPC IDs to be attached to the server.
- Plan string
- The ID of the plan that you want the instance to subscribe to. See List Plans
- Region string
- The ID of the region that the instance is to be created in. See List Regions
- Activation
Email bool - Whether an activation email will be sent when the server is ready.
- App
Id int - The ID of the Vultr application to be installed on the server. See List Applications
- App
Variables map[string]string - A map of user-supplied variable keys and values for Vultr Marketplace apps. See List Marketplace App Variables
- Backups string
- Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
- Backups
Schedule InstanceBackups Schedule Args - A block that defines the way backups should be scheduled. While this is an optional field if
backups
areenabled
this field is mandatory. The configuration of abackups_schedule
is listed below. - Ddos
Protection bool - Whether DDOS protection will be enabled on the server (there is an additional charge for this).
- Disable
Public boolIpv4 - Whether the server has a public IPv4 address assigned (only possible with
enable_ipv6
set totrue
) - Enable
Ipv6 bool - Whether the server has IPv6 networking activated.
- Firewall
Group stringId - The ID of the firewall group to assign to the server.
- Hostname string
- The hostname to assign to the server.
- Image
Id string - The ID of the Vultr marketplace application to be installed on the server. See List Applications Note marketplace applications are denoted by type:
marketplace
and you must use theimage_id
not the id. - Iso
Id string - The ID of the ISO file to be installed on the server. See List ISO
- Label string
- A label for the server.
- Os
Id int - The ID of the operating system to be installed on the server. See List OS
- Reserved
Ip stringId - ID of the floating IP to use as the main IP of this server.
- Script
Id string - The ID of the startup script you want added to the server.
- Snapshot
Id string - The ID of the Vultr snapshot that the server will restore for the initial installation. See List Snapshots
- Ssh
Key []stringIds - A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
- []string
- A list of tags to apply to the instance.
- User
Data string - Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
- Vpc2Ids []string
- A list of VPC 2.0 IDs to be attached to the server.
- Vpc
Ids []string - A list of VPC IDs to be attached to the server.
- plan String
- The ID of the plan that you want the instance to subscribe to. See List Plans
- region String
- The ID of the region that the instance is to be created in. See List Regions
- activation
Email Boolean - Whether an activation email will be sent when the server is ready.
- app
Id Integer - The ID of the Vultr application to be installed on the server. See List Applications
- app
Variables Map<String,String> - A map of user-supplied variable keys and values for Vultr Marketplace apps. See List Marketplace App Variables
- backups String
- Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
- backups
Schedule InstanceBackups Schedule - A block that defines the way backups should be scheduled. While this is an optional field if
backups
areenabled
this field is mandatory. The configuration of abackups_schedule
is listed below. - ddos
Protection Boolean - Whether DDOS protection will be enabled on the server (there is an additional charge for this).
- disable
Public BooleanIpv4 - Whether the server has a public IPv4 address assigned (only possible with
enable_ipv6
set totrue
) - enable
Ipv6 Boolean - Whether the server has IPv6 networking activated.
- firewall
Group StringId - The ID of the firewall group to assign to the server.
- hostname String
- The hostname to assign to the server.
- image
Id String - The ID of the Vultr marketplace application to be installed on the server. See List Applications Note marketplace applications are denoted by type:
marketplace
and you must use theimage_id
not the id. - iso
Id String - The ID of the ISO file to be installed on the server. See List ISO
- label String
- A label for the server.
- os
Id Integer - The ID of the operating system to be installed on the server. See List OS
- reserved
Ip StringId - ID of the floating IP to use as the main IP of this server.
- script
Id String - The ID of the startup script you want added to the server.
- snapshot
Id String - The ID of the Vultr snapshot that the server will restore for the initial installation. See List Snapshots
- ssh
Key List<String>Ids - A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
- List<String>
- A list of tags to apply to the instance.
- user
Data String - Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
- vpc2Ids List<String>
- A list of VPC 2.0 IDs to be attached to the server.
- vpc
Ids List<String> - A list of VPC IDs to be attached to the server.
- plan string
- The ID of the plan that you want the instance to subscribe to. See List Plans
- region string
- The ID of the region that the instance is to be created in. See List Regions
- activation
Email boolean - Whether an activation email will be sent when the server is ready.
- app
Id number - The ID of the Vultr application to be installed on the server. See List Applications
- app
Variables {[key: string]: string} - A map of user-supplied variable keys and values for Vultr Marketplace apps. See List Marketplace App Variables
- backups string
- Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
- backups
Schedule InstanceBackups Schedule - A block that defines the way backups should be scheduled. While this is an optional field if
backups
areenabled
this field is mandatory. The configuration of abackups_schedule
is listed below. - ddos
Protection boolean - Whether DDOS protection will be enabled on the server (there is an additional charge for this).
- disable
Public booleanIpv4 - Whether the server has a public IPv4 address assigned (only possible with
enable_ipv6
set totrue
) - enable
Ipv6 boolean - Whether the server has IPv6 networking activated.
- firewall
Group stringId - The ID of the firewall group to assign to the server.
- hostname string
- The hostname to assign to the server.
- image
Id string - The ID of the Vultr marketplace application to be installed on the server. See List Applications Note marketplace applications are denoted by type:
marketplace
and you must use theimage_id
not the id. - iso
Id string - The ID of the ISO file to be installed on the server. See List ISO
- label string
- A label for the server.
- os
Id number - The ID of the operating system to be installed on the server. See List OS
- reserved
Ip stringId - ID of the floating IP to use as the main IP of this server.
- script
Id string - The ID of the startup script you want added to the server.
- snapshot
Id string - The ID of the Vultr snapshot that the server will restore for the initial installation. See List Snapshots
- ssh
Key string[]Ids - A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
- string[]
- A list of tags to apply to the instance.
- user
Data string - Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
- vpc2Ids string[]
- A list of VPC 2.0 IDs to be attached to the server.
- vpc
Ids string[] - A list of VPC IDs to be attached to the server.
- plan str
- The ID of the plan that you want the instance to subscribe to. See List Plans
- region str
- The ID of the region that the instance is to be created in. See List Regions
- activation_
email bool - Whether an activation email will be sent when the server is ready.
- app_
id int - The ID of the Vultr application to be installed on the server. See List Applications
- app_
variables Mapping[str, str] - A map of user-supplied variable keys and values for Vultr Marketplace apps. See List Marketplace App Variables
- backups str
- Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
- backups_
schedule InstanceBackups Schedule Args - A block that defines the way backups should be scheduled. While this is an optional field if
backups
areenabled
this field is mandatory. The configuration of abackups_schedule
is listed below. - ddos_
protection bool - Whether DDOS protection will be enabled on the server (there is an additional charge for this).
- disable_
public_ boolipv4 - Whether the server has a public IPv4 address assigned (only possible with
enable_ipv6
set totrue
) - enable_
ipv6 bool - Whether the server has IPv6 networking activated.
- firewall_
group_ strid - The ID of the firewall group to assign to the server.
- hostname str
- The hostname to assign to the server.
- image_
id str - The ID of the Vultr marketplace application to be installed on the server. See List Applications Note marketplace applications are denoted by type:
marketplace
and you must use theimage_id
not the id. - iso_
id str - The ID of the ISO file to be installed on the server. See List ISO
- label str
- A label for the server.
- os_
id int - The ID of the operating system to be installed on the server. See List OS
- reserved_
ip_ strid - ID of the floating IP to use as the main IP of this server.
- script_
id str - The ID of the startup script you want added to the server.
- snapshot_
id str - The ID of the Vultr snapshot that the server will restore for the initial installation. See List Snapshots
- ssh_
key_ Sequence[str]ids - A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
- Sequence[str]
- A list of tags to apply to the instance.
- user_
data str - Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
- vpc2_
ids Sequence[str] - A list of VPC 2.0 IDs to be attached to the server.
- vpc_
ids Sequence[str] - A list of VPC IDs to be attached to the server.
- plan String
- The ID of the plan that you want the instance to subscribe to. See List Plans
- region String
- The ID of the region that the instance is to be created in. See List Regions
- activation
Email Boolean - Whether an activation email will be sent when the server is ready.
- app
Id Number - The ID of the Vultr application to be installed on the server. See List Applications
- app
Variables Map<String> - A map of user-supplied variable keys and values for Vultr Marketplace apps. See List Marketplace App Variables
- backups String
- Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
- backups
Schedule Property Map - A block that defines the way backups should be scheduled. While this is an optional field if
backups
areenabled
this field is mandatory. The configuration of abackups_schedule
is listed below. - ddos
Protection Boolean - Whether DDOS protection will be enabled on the server (there is an additional charge for this).
- disable
Public BooleanIpv4 - Whether the server has a public IPv4 address assigned (only possible with
enable_ipv6
set totrue
) - enable
Ipv6 Boolean - Whether the server has IPv6 networking activated.
- firewall
Group StringId - The ID of the firewall group to assign to the server.
- hostname String
- The hostname to assign to the server.
- image
Id String - The ID of the Vultr marketplace application to be installed on the server. See List Applications Note marketplace applications are denoted by type:
marketplace
and you must use theimage_id
not the id. - iso
Id String - The ID of the ISO file to be installed on the server. See List ISO
- label String
- A label for the server.
- os
Id Number - The ID of the operating system to be installed on the server. See List OS
- reserved
Ip StringId - ID of the floating IP to use as the main IP of this server.
- script
Id String - The ID of the startup script you want added to the server.
- snapshot
Id String - The ID of the Vultr snapshot that the server will restore for the initial installation. See List Snapshots
- ssh
Key List<String>Ids - A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
- List<String>
- A list of tags to apply to the instance.
- user
Data String - Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
- vpc2Ids List<String>
- A list of VPC 2.0 IDs to be attached to the server.
- vpc
Ids List<String> - A list of VPC IDs to be attached to the server.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Allowed
Bandwidth int - The server's allowed bandwidth usage in GB.
- Date
Created string - The date the server was added to your Vultr account.
- Default
Password string - The server's default password.
- Disk int
- The description of the disk(s) on the server.
- Features List<string>
- Array of which features are enabled.
- Gateway
V4 string - The server's IPv4 gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Ip string - The server's internal IP address.
- Kvm string
- The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
- Main
Ip string - The server's main IP address.
- Netmask
V4 string - The server's IPv4 netmask.
- Os string
- The string description of the operating system installed on the server.
- Power
Status string - Whether the server is powered on or not.
- Ram int
- The amount of memory available on the server in MB.
- Server
Status string - A more detailed server status (none, locked, installingbooting, isomounting, ok).
- Status string
- The status of the server's subscription.
- V6Main
Ip string - The main IPv6 network address.
- V6Network string
- The IPv6 subnet.
- V6Network
Size int - The IPv6 network size in bits.
- Vcpu
Count int - The number of virtual CPUs available on the server.
- Allowed
Bandwidth int - The server's allowed bandwidth usage in GB.
- Date
Created string - The date the server was added to your Vultr account.
- Default
Password string - The server's default password.
- Disk int
- The description of the disk(s) on the server.
- Features []string
- Array of which features are enabled.
- Gateway
V4 string - The server's IPv4 gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Ip string - The server's internal IP address.
- Kvm string
- The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
- Main
Ip string - The server's main IP address.
- Netmask
V4 string - The server's IPv4 netmask.
- Os string
- The string description of the operating system installed on the server.
- Power
Status string - Whether the server is powered on or not.
- Ram int
- The amount of memory available on the server in MB.
- Server
Status string - A more detailed server status (none, locked, installingbooting, isomounting, ok).
- Status string
- The status of the server's subscription.
- V6Main
Ip string - The main IPv6 network address.
- V6Network string
- The IPv6 subnet.
- V6Network
Size int - The IPv6 network size in bits.
- Vcpu
Count int - The number of virtual CPUs available on the server.
- allowed
Bandwidth Integer - The server's allowed bandwidth usage in GB.
- date
Created String - The date the server was added to your Vultr account.
- default
Password String - The server's default password.
- disk Integer
- The description of the disk(s) on the server.
- features List<String>
- Array of which features are enabled.
- gateway
V4 String - The server's IPv4 gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Ip String - The server's internal IP address.
- kvm String
- The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
- main
Ip String - The server's main IP address.
- netmask
V4 String - The server's IPv4 netmask.
- os String
- The string description of the operating system installed on the server.
- power
Status String - Whether the server is powered on or not.
- ram Integer
- The amount of memory available on the server in MB.
- server
Status String - A more detailed server status (none, locked, installingbooting, isomounting, ok).
- status String
- The status of the server's subscription.
- v6Main
Ip String - The main IPv6 network address.
- v6Network String
- The IPv6 subnet.
- v6Network
Size Integer - The IPv6 network size in bits.
- vcpu
Count Integer - The number of virtual CPUs available on the server.
- allowed
Bandwidth number - The server's allowed bandwidth usage in GB.
- date
Created string - The date the server was added to your Vultr account.
- default
Password string - The server's default password.
- disk number
- The description of the disk(s) on the server.
- features string[]
- Array of which features are enabled.
- gateway
V4 string - The server's IPv4 gateway.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Ip string - The server's internal IP address.
- kvm string
- The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
- main
Ip string - The server's main IP address.
- netmask
V4 string - The server's IPv4 netmask.
- os string
- The string description of the operating system installed on the server.
- power
Status string - Whether the server is powered on or not.
- ram number
- The amount of memory available on the server in MB.
- server
Status string - A more detailed server status (none, locked, installingbooting, isomounting, ok).
- status string
- The status of the server's subscription.
- v6Main
Ip string - The main IPv6 network address.
- v6Network string
- The IPv6 subnet.
- v6Network
Size number - The IPv6 network size in bits.
- vcpu
Count number - The number of virtual CPUs available on the server.
- allowed_
bandwidth int - The server's allowed bandwidth usage in GB.
- date_
created str - The date the server was added to your Vultr account.
- default_
password str - The server's default password.
- disk int
- The description of the disk(s) on the server.
- features Sequence[str]
- Array of which features are enabled.
- gateway_
v4 str - The server's IPv4 gateway.
- id str
- The provider-assigned unique ID for this managed resource.
- internal_
ip str - The server's internal IP address.
- kvm str
- The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
- main_
ip str - The server's main IP address.
- netmask_
v4 str - The server's IPv4 netmask.
- os str
- The string description of the operating system installed on the server.
- power_
status str - Whether the server is powered on or not.
- ram int
- The amount of memory available on the server in MB.
- server_
status str - A more detailed server status (none, locked, installingbooting, isomounting, ok).
- status str
- The status of the server's subscription.
- v6_
main_ strip - The main IPv6 network address.
- v6_
network str - The IPv6 subnet.
- v6_
network_ intsize - The IPv6 network size in bits.
- vcpu_
count int - The number of virtual CPUs available on the server.
- allowed
Bandwidth Number - The server's allowed bandwidth usage in GB.
- date
Created String - The date the server was added to your Vultr account.
- default
Password String - The server's default password.
- disk Number
- The description of the disk(s) on the server.
- features List<String>
- Array of which features are enabled.
- gateway
V4 String - The server's IPv4 gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Ip String - The server's internal IP address.
- kvm String
- The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
- main
Ip String - The server's main IP address.
- netmask
V4 String - The server's IPv4 netmask.
- os String
- The string description of the operating system installed on the server.
- power
Status String - Whether the server is powered on or not.
- ram Number
- The amount of memory available on the server in MB.
- server
Status String - A more detailed server status (none, locked, installingbooting, isomounting, ok).
- status String
- The status of the server's subscription.
- v6Main
Ip String - The main IPv6 network address.
- v6Network String
- The IPv6 subnet.
- v6Network
Size Number - The IPv6 network size in bits.
- vcpu
Count Number - The number of virtual CPUs available on the server.
Look up Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
activation_email: Optional[bool] = None,
allowed_bandwidth: Optional[int] = None,
app_id: Optional[int] = None,
app_variables: Optional[Mapping[str, str]] = None,
backups: Optional[str] = None,
backups_schedule: Optional[InstanceBackupsScheduleArgs] = None,
date_created: Optional[str] = None,
ddos_protection: Optional[bool] = None,
default_password: Optional[str] = None,
disable_public_ipv4: Optional[bool] = None,
disk: Optional[int] = None,
enable_ipv6: Optional[bool] = None,
features: Optional[Sequence[str]] = None,
firewall_group_id: Optional[str] = None,
gateway_v4: Optional[str] = None,
hostname: Optional[str] = None,
image_id: Optional[str] = None,
internal_ip: Optional[str] = None,
iso_id: Optional[str] = None,
kvm: Optional[str] = None,
label: Optional[str] = None,
main_ip: Optional[str] = None,
netmask_v4: Optional[str] = None,
os: Optional[str] = None,
os_id: Optional[int] = None,
plan: Optional[str] = None,
power_status: Optional[str] = None,
ram: Optional[int] = None,
region: Optional[str] = None,
reserved_ip_id: Optional[str] = None,
script_id: Optional[str] = None,
server_status: Optional[str] = None,
snapshot_id: Optional[str] = None,
ssh_key_ids: Optional[Sequence[str]] = None,
status: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
user_data: Optional[str] = None,
v6_main_ip: Optional[str] = None,
v6_network: Optional[str] = None,
v6_network_size: Optional[int] = None,
vcpu_count: Optional[int] = None,
vpc2_ids: Optional[Sequence[str]] = None,
vpc_ids: Optional[Sequence[str]] = None) -> Instance
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
public static Instance get(String name, Output<String> id, InstanceState 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.
- Activation
Email bool - Whether an activation email will be sent when the server is ready.
- Allowed
Bandwidth int - The server's allowed bandwidth usage in GB.
- App
Id int - The ID of the Vultr application to be installed on the server. See List Applications
- App
Variables Dictionary<string, string> - A map of user-supplied variable keys and values for Vultr Marketplace apps. See List Marketplace App Variables
- Backups string
- Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
- Backups
Schedule ediri.Vultr. Inputs. Instance Backups Schedule - A block that defines the way backups should be scheduled. While this is an optional field if
backups
areenabled
this field is mandatory. The configuration of abackups_schedule
is listed below. - Date
Created string - The date the server was added to your Vultr account.
- Ddos
Protection bool - Whether DDOS protection will be enabled on the server (there is an additional charge for this).
- Default
Password string - The server's default password.
- Disable
Public boolIpv4 - Whether the server has a public IPv4 address assigned (only possible with
enable_ipv6
set totrue
) - Disk int
- The description of the disk(s) on the server.
- Enable
Ipv6 bool - Whether the server has IPv6 networking activated.
- Features List<string>
- Array of which features are enabled.
- Firewall
Group stringId - The ID of the firewall group to assign to the server.
- Gateway
V4 string - The server's IPv4 gateway.
- Hostname string
- The hostname to assign to the server.
- Image
Id string - The ID of the Vultr marketplace application to be installed on the server. See List Applications Note marketplace applications are denoted by type:
marketplace
and you must use theimage_id
not the id. - Internal
Ip string - The server's internal IP address.
- Iso
Id string - The ID of the ISO file to be installed on the server. See List ISO
- Kvm string
- The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
- Label string
- A label for the server.
- Main
Ip string - The server's main IP address.
- Netmask
V4 string - The server's IPv4 netmask.
- Os string
- The string description of the operating system installed on the server.
- Os
Id int - The ID of the operating system to be installed on the server. See List OS
- Plan string
- The ID of the plan that you want the instance to subscribe to. See List Plans
- Power
Status string - Whether the server is powered on or not.
- Ram int
- The amount of memory available on the server in MB.
- Region string
- The ID of the region that the instance is to be created in. See List Regions
- Reserved
Ip stringId - ID of the floating IP to use as the main IP of this server.
- Script
Id string - The ID of the startup script you want added to the server.
- Server
Status string - A more detailed server status (none, locked, installingbooting, isomounting, ok).
- Snapshot
Id string - The ID of the Vultr snapshot that the server will restore for the initial installation. See List Snapshots
- Ssh
Key List<string>Ids - A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
- Status string
- The status of the server's subscription.
- List<string>
- A list of tags to apply to the instance.
- User
Data string - Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
- V6Main
Ip string - The main IPv6 network address.
- V6Network string
- The IPv6 subnet.
- V6Network
Size int - The IPv6 network size in bits.
- Vcpu
Count int - The number of virtual CPUs available on the server.
- Vpc2Ids List<string>
- A list of VPC 2.0 IDs to be attached to the server.
- Vpc
Ids List<string> - A list of VPC IDs to be attached to the server.
- Activation
Email bool - Whether an activation email will be sent when the server is ready.
- Allowed
Bandwidth int - The server's allowed bandwidth usage in GB.
- App
Id int - The ID of the Vultr application to be installed on the server. See List Applications
- App
Variables map[string]string - A map of user-supplied variable keys and values for Vultr Marketplace apps. See List Marketplace App Variables
- Backups string
- Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
- Backups
Schedule InstanceBackups Schedule Args - A block that defines the way backups should be scheduled. While this is an optional field if
backups
areenabled
this field is mandatory. The configuration of abackups_schedule
is listed below. - Date
Created string - The date the server was added to your Vultr account.
- Ddos
Protection bool - Whether DDOS protection will be enabled on the server (there is an additional charge for this).
- Default
Password string - The server's default password.
- Disable
Public boolIpv4 - Whether the server has a public IPv4 address assigned (only possible with
enable_ipv6
set totrue
) - Disk int
- The description of the disk(s) on the server.
- Enable
Ipv6 bool - Whether the server has IPv6 networking activated.
- Features []string
- Array of which features are enabled.
- Firewall
Group stringId - The ID of the firewall group to assign to the server.
- Gateway
V4 string - The server's IPv4 gateway.
- Hostname string
- The hostname to assign to the server.
- Image
Id string - The ID of the Vultr marketplace application to be installed on the server. See List Applications Note marketplace applications are denoted by type:
marketplace
and you must use theimage_id
not the id. - Internal
Ip string - The server's internal IP address.
- Iso
Id string - The ID of the ISO file to be installed on the server. See List ISO
- Kvm string
- The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
- Label string
- A label for the server.
- Main
Ip string - The server's main IP address.
- Netmask
V4 string - The server's IPv4 netmask.
- Os string
- The string description of the operating system installed on the server.
- Os
Id int - The ID of the operating system to be installed on the server. See List OS
- Plan string
- The ID of the plan that you want the instance to subscribe to. See List Plans
- Power
Status string - Whether the server is powered on or not.
- Ram int
- The amount of memory available on the server in MB.
- Region string
- The ID of the region that the instance is to be created in. See List Regions
- Reserved
Ip stringId - ID of the floating IP to use as the main IP of this server.
- Script
Id string - The ID of the startup script you want added to the server.
- Server
Status string - A more detailed server status (none, locked, installingbooting, isomounting, ok).
- Snapshot
Id string - The ID of the Vultr snapshot that the server will restore for the initial installation. See List Snapshots
- Ssh
Key []stringIds - A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
- Status string
- The status of the server's subscription.
- []string
- A list of tags to apply to the instance.
- User
Data string - Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
- V6Main
Ip string - The main IPv6 network address.
- V6Network string
- The IPv6 subnet.
- V6Network
Size int - The IPv6 network size in bits.
- Vcpu
Count int - The number of virtual CPUs available on the server.
- Vpc2Ids []string
- A list of VPC 2.0 IDs to be attached to the server.
- Vpc
Ids []string - A list of VPC IDs to be attached to the server.
- activation
Email Boolean - Whether an activation email will be sent when the server is ready.
- allowed
Bandwidth Integer - The server's allowed bandwidth usage in GB.
- app
Id Integer - The ID of the Vultr application to be installed on the server. See List Applications
- app
Variables Map<String,String> - A map of user-supplied variable keys and values for Vultr Marketplace apps. See List Marketplace App Variables
- backups String
- Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
- backups
Schedule InstanceBackups Schedule - A block that defines the way backups should be scheduled. While this is an optional field if
backups
areenabled
this field is mandatory. The configuration of abackups_schedule
is listed below. - date
Created String - The date the server was added to your Vultr account.
- ddos
Protection Boolean - Whether DDOS protection will be enabled on the server (there is an additional charge for this).
- default
Password String - The server's default password.
- disable
Public BooleanIpv4 - Whether the server has a public IPv4 address assigned (only possible with
enable_ipv6
set totrue
) - disk Integer
- The description of the disk(s) on the server.
- enable
Ipv6 Boolean - Whether the server has IPv6 networking activated.
- features List<String>
- Array of which features are enabled.
- firewall
Group StringId - The ID of the firewall group to assign to the server.
- gateway
V4 String - The server's IPv4 gateway.
- hostname String
- The hostname to assign to the server.
- image
Id String - The ID of the Vultr marketplace application to be installed on the server. See List Applications Note marketplace applications are denoted by type:
marketplace
and you must use theimage_id
not the id. - internal
Ip String - The server's internal IP address.
- iso
Id String - The ID of the ISO file to be installed on the server. See List ISO
- kvm String
- The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
- label String
- A label for the server.
- main
Ip String - The server's main IP address.
- netmask
V4 String - The server's IPv4 netmask.
- os String
- The string description of the operating system installed on the server.
- os
Id Integer - The ID of the operating system to be installed on the server. See List OS
- plan String
- The ID of the plan that you want the instance to subscribe to. See List Plans
- power
Status String - Whether the server is powered on or not.
- ram Integer
- The amount of memory available on the server in MB.
- region String
- The ID of the region that the instance is to be created in. See List Regions
- reserved
Ip StringId - ID of the floating IP to use as the main IP of this server.
- script
Id String - The ID of the startup script you want added to the server.
- server
Status String - A more detailed server status (none, locked, installingbooting, isomounting, ok).
- snapshot
Id String - The ID of the Vultr snapshot that the server will restore for the initial installation. See List Snapshots
- ssh
Key List<String>Ids - A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
- status String
- The status of the server's subscription.
- List<String>
- A list of tags to apply to the instance.
- user
Data String - Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
- v6Main
Ip String - The main IPv6 network address.
- v6Network String
- The IPv6 subnet.
- v6Network
Size Integer - The IPv6 network size in bits.
- vcpu
Count Integer - The number of virtual CPUs available on the server.
- vpc2Ids List<String>
- A list of VPC 2.0 IDs to be attached to the server.
- vpc
Ids List<String> - A list of VPC IDs to be attached to the server.
- activation
Email boolean - Whether an activation email will be sent when the server is ready.
- allowed
Bandwidth number - The server's allowed bandwidth usage in GB.
- app
Id number - The ID of the Vultr application to be installed on the server. See List Applications
- app
Variables {[key: string]: string} - A map of user-supplied variable keys and values for Vultr Marketplace apps. See List Marketplace App Variables
- backups string
- Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
- backups
Schedule InstanceBackups Schedule - A block that defines the way backups should be scheduled. While this is an optional field if
backups
areenabled
this field is mandatory. The configuration of abackups_schedule
is listed below. - date
Created string - The date the server was added to your Vultr account.
- ddos
Protection boolean - Whether DDOS protection will be enabled on the server (there is an additional charge for this).
- default
Password string - The server's default password.
- disable
Public booleanIpv4 - Whether the server has a public IPv4 address assigned (only possible with
enable_ipv6
set totrue
) - disk number
- The description of the disk(s) on the server.
- enable
Ipv6 boolean - Whether the server has IPv6 networking activated.
- features string[]
- Array of which features are enabled.
- firewall
Group stringId - The ID of the firewall group to assign to the server.
- gateway
V4 string - The server's IPv4 gateway.
- hostname string
- The hostname to assign to the server.
- image
Id string - The ID of the Vultr marketplace application to be installed on the server. See List Applications Note marketplace applications are denoted by type:
marketplace
and you must use theimage_id
not the id. - internal
Ip string - The server's internal IP address.
- iso
Id string - The ID of the ISO file to be installed on the server. See List ISO
- kvm string
- The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
- label string
- A label for the server.
- main
Ip string - The server's main IP address.
- netmask
V4 string - The server's IPv4 netmask.
- os string
- The string description of the operating system installed on the server.
- os
Id number - The ID of the operating system to be installed on the server. See List OS
- plan string
- The ID of the plan that you want the instance to subscribe to. See List Plans
- power
Status string - Whether the server is powered on or not.
- ram number
- The amount of memory available on the server in MB.
- region string
- The ID of the region that the instance is to be created in. See List Regions
- reserved
Ip stringId - ID of the floating IP to use as the main IP of this server.
- script
Id string - The ID of the startup script you want added to the server.
- server
Status string - A more detailed server status (none, locked, installingbooting, isomounting, ok).
- snapshot
Id string - The ID of the Vultr snapshot that the server will restore for the initial installation. See List Snapshots
- ssh
Key string[]Ids - A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
- status string
- The status of the server's subscription.
- string[]
- A list of tags to apply to the instance.
- user
Data string - Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
- v6Main
Ip string - The main IPv6 network address.
- v6Network string
- The IPv6 subnet.
- v6Network
Size number - The IPv6 network size in bits.
- vcpu
Count number - The number of virtual CPUs available on the server.
- vpc2Ids string[]
- A list of VPC 2.0 IDs to be attached to the server.
- vpc
Ids string[] - A list of VPC IDs to be attached to the server.
- activation_
email bool - Whether an activation email will be sent when the server is ready.
- allowed_
bandwidth int - The server's allowed bandwidth usage in GB.
- app_
id int - The ID of the Vultr application to be installed on the server. See List Applications
- app_
variables Mapping[str, str] - A map of user-supplied variable keys and values for Vultr Marketplace apps. See List Marketplace App Variables
- backups str
- Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
- backups_
schedule InstanceBackups Schedule Args - A block that defines the way backups should be scheduled. While this is an optional field if
backups
areenabled
this field is mandatory. The configuration of abackups_schedule
is listed below. - date_
created str - The date the server was added to your Vultr account.
- ddos_
protection bool - Whether DDOS protection will be enabled on the server (there is an additional charge for this).
- default_
password str - The server's default password.
- disable_
public_ boolipv4 - Whether the server has a public IPv4 address assigned (only possible with
enable_ipv6
set totrue
) - disk int
- The description of the disk(s) on the server.
- enable_
ipv6 bool - Whether the server has IPv6 networking activated.
- features Sequence[str]
- Array of which features are enabled.
- firewall_
group_ strid - The ID of the firewall group to assign to the server.
- gateway_
v4 str - The server's IPv4 gateway.
- hostname str
- The hostname to assign to the server.
- image_
id str - The ID of the Vultr marketplace application to be installed on the server. See List Applications Note marketplace applications are denoted by type:
marketplace
and you must use theimage_id
not the id. - internal_
ip str - The server's internal IP address.
- iso_
id str - The ID of the ISO file to be installed on the server. See List ISO
- kvm str
- The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
- label str
- A label for the server.
- main_
ip str - The server's main IP address.
- netmask_
v4 str - The server's IPv4 netmask.
- os str
- The string description of the operating system installed on the server.
- os_
id int - The ID of the operating system to be installed on the server. See List OS
- plan str
- The ID of the plan that you want the instance to subscribe to. See List Plans
- power_
status str - Whether the server is powered on or not.
- ram int
- The amount of memory available on the server in MB.
- region str
- The ID of the region that the instance is to be created in. See List Regions
- reserved_
ip_ strid - ID of the floating IP to use as the main IP of this server.
- script_
id str - The ID of the startup script you want added to the server.
- server_
status str - A more detailed server status (none, locked, installingbooting, isomounting, ok).
- snapshot_
id str - The ID of the Vultr snapshot that the server will restore for the initial installation. See List Snapshots
- ssh_
key_ Sequence[str]ids - A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
- status str
- The status of the server's subscription.
- Sequence[str]
- A list of tags to apply to the instance.
- user_
data str - Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
- v6_
main_ strip - The main IPv6 network address.
- v6_
network str - The IPv6 subnet.
- v6_
network_ intsize - The IPv6 network size in bits.
- vcpu_
count int - The number of virtual CPUs available on the server.
- vpc2_
ids Sequence[str] - A list of VPC 2.0 IDs to be attached to the server.
- vpc_
ids Sequence[str] - A list of VPC IDs to be attached to the server.
- activation
Email Boolean - Whether an activation email will be sent when the server is ready.
- allowed
Bandwidth Number - The server's allowed bandwidth usage in GB.
- app
Id Number - The ID of the Vultr application to be installed on the server. See List Applications
- app
Variables Map<String> - A map of user-supplied variable keys and values for Vultr Marketplace apps. See List Marketplace App Variables
- backups String
- Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
- backups
Schedule Property Map - A block that defines the way backups should be scheduled. While this is an optional field if
backups
areenabled
this field is mandatory. The configuration of abackups_schedule
is listed below. - date
Created String - The date the server was added to your Vultr account.
- ddos
Protection Boolean - Whether DDOS protection will be enabled on the server (there is an additional charge for this).
- default
Password String - The server's default password.
- disable
Public BooleanIpv4 - Whether the server has a public IPv4 address assigned (only possible with
enable_ipv6
set totrue
) - disk Number
- The description of the disk(s) on the server.
- enable
Ipv6 Boolean - Whether the server has IPv6 networking activated.
- features List<String>
- Array of which features are enabled.
- firewall
Group StringId - The ID of the firewall group to assign to the server.
- gateway
V4 String - The server's IPv4 gateway.
- hostname String
- The hostname to assign to the server.
- image
Id String - The ID of the Vultr marketplace application to be installed on the server. See List Applications Note marketplace applications are denoted by type:
marketplace
and you must use theimage_id
not the id. - internal
Ip String - The server's internal IP address.
- iso
Id String - The ID of the ISO file to be installed on the server. See List ISO
- kvm String
- The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
- label String
- A label for the server.
- main
Ip String - The server's main IP address.
- netmask
V4 String - The server's IPv4 netmask.
- os String
- The string description of the operating system installed on the server.
- os
Id Number - The ID of the operating system to be installed on the server. See List OS
- plan String
- The ID of the plan that you want the instance to subscribe to. See List Plans
- power
Status String - Whether the server is powered on or not.
- ram Number
- The amount of memory available on the server in MB.
- region String
- The ID of the region that the instance is to be created in. See List Regions
- reserved
Ip StringId - ID of the floating IP to use as the main IP of this server.
- script
Id String - The ID of the startup script you want added to the server.
- server
Status String - A more detailed server status (none, locked, installingbooting, isomounting, ok).
- snapshot
Id String - The ID of the Vultr snapshot that the server will restore for the initial installation. See List Snapshots
- ssh
Key List<String>Ids - A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
- status String
- The status of the server's subscription.
- List<String>
- A list of tags to apply to the instance.
- user
Data String - Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
- v6Main
Ip String - The main IPv6 network address.
- v6Network String
- The IPv6 subnet.
- v6Network
Size Number - The IPv6 network size in bits.
- vcpu
Count Number - The number of virtual CPUs available on the server.
- vpc2Ids List<String>
- A list of VPC 2.0 IDs to be attached to the server.
- vpc
Ids List<String> - A list of VPC IDs to be attached to the server.
Supporting Types
InstanceBackupsSchedule, InstanceBackupsScheduleArgs
- Type string
- Type of backup schedule Possible values are
daily
,weekly
,monthly
,daily_alt_even
, ordaily_alt_odd
. - Dom int
- Day of month to run. Use values between 1 and 28.
- Dow int
- Day of week to run.
1 = Sunday
,2 = Monday
,3 = Tuesday
,4 = Wednesday
,5 = Thursday
,6 = Friday
,7 = Saturday
- Hour int
- Hour of day to run in UTC.
- Type string
- Type of backup schedule Possible values are
daily
,weekly
,monthly
,daily_alt_even
, ordaily_alt_odd
. - Dom int
- Day of month to run. Use values between 1 and 28.
- Dow int
- Day of week to run.
1 = Sunday
,2 = Monday
,3 = Tuesday
,4 = Wednesday
,5 = Thursday
,6 = Friday
,7 = Saturday
- Hour int
- Hour of day to run in UTC.
- type String
- Type of backup schedule Possible values are
daily
,weekly
,monthly
,daily_alt_even
, ordaily_alt_odd
. - dom Integer
- Day of month to run. Use values between 1 and 28.
- dow Integer
- Day of week to run.
1 = Sunday
,2 = Monday
,3 = Tuesday
,4 = Wednesday
,5 = Thursday
,6 = Friday
,7 = Saturday
- hour Integer
- Hour of day to run in UTC.
- type string
- Type of backup schedule Possible values are
daily
,weekly
,monthly
,daily_alt_even
, ordaily_alt_odd
. - dom number
- Day of month to run. Use values between 1 and 28.
- dow number
- Day of week to run.
1 = Sunday
,2 = Monday
,3 = Tuesday
,4 = Wednesday
,5 = Thursday
,6 = Friday
,7 = Saturday
- hour number
- Hour of day to run in UTC.
- type str
- Type of backup schedule Possible values are
daily
,weekly
,monthly
,daily_alt_even
, ordaily_alt_odd
. - dom int
- Day of month to run. Use values between 1 and 28.
- dow int
- Day of week to run.
1 = Sunday
,2 = Monday
,3 = Tuesday
,4 = Wednesday
,5 = Thursday
,6 = Friday
,7 = Saturday
- hour int
- Hour of day to run in UTC.
- type String
- Type of backup schedule Possible values are
daily
,weekly
,monthly
,daily_alt_even
, ordaily_alt_odd
. - dom Number
- Day of month to run. Use values between 1 and 28.
- dow Number
- Day of week to run.
1 = Sunday
,2 = Monday
,3 = Tuesday
,4 = Wednesday
,5 = Thursday
,6 = Friday
,7 = Saturday
- hour Number
- Hour of day to run in UTC.
Import
Instances can be imported using the instance ID
, e.g.
$ pulumi import vultr:index/instance:Instance my_instance b6a859c5-b299-49dd-8888-b1abbc517d08
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vultr dirien/pulumi-vultr
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vultr
Terraform Provider.