upcloud.Server
Explore with Pulumi AI
The UpCloud server resource allows the creation, update and deletion of a cloud server.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.upcloud.Server;
import com.pulumi.upcloud.ServerArgs;
import com.pulumi.upcloud.inputs.ServerTemplateArgs;
import com.pulumi.upcloud.inputs.ServerNetworkInterfaceArgs;
import com.pulumi.upcloud.inputs.ServerLoginArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Server("example", ServerArgs.builder()
.hostname("terraform.example.tld")
.zone("de-fra1")
.plan("1xCPU-1GB")
.template(ServerTemplateArgs.builder()
.storage("Ubuntu Server 20.04 LTS (Focal Fossa)")
.size(25)
.backupRules(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build())
.networkInterfaces(ServerNetworkInterfaceArgs.builder()
.type("public")
.build())
.labels(Map.ofEntries(
Map.entry("env", "dev"),
Map.entry("production", "false")
))
.login(ServerLoginArgs.builder()
.user("myusername")
.keys("<YOUR SSH PUBLIC KEY>")
.build())
.build());
}
}
resources:
example:
type: upcloud:Server
properties:
hostname: terraform.example.tld
zone: de-fra1
plan: 1xCPU-1GB
template:
storage: Ubuntu Server 20.04 LTS (Focal Fossa)
size: 25
backupRules:
- interval: daily
time: '0100'
retention: 8
networkInterfaces:
- type: public
labels:
env: dev
production: 'false'
login:
user: myusername
keys:
- <YOUR SSH PUBLIC KEY>
Create Server Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Server(name: string, args: ServerArgs, opts?: CustomResourceOptions);
@overload
def Server(resource_name: str,
args: ServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Server(resource_name: str,
opts: Optional[ResourceOptions] = None,
hostname: Optional[str] = None,
zone: Optional[str] = None,
nic_model: Optional[str] = None,
plan: Optional[str] = None,
firewall: Optional[bool] = None,
labels: Optional[Mapping[str, str]] = None,
login: Optional[ServerLoginArgs] = None,
mem: Optional[int] = None,
metadata: Optional[bool] = None,
network_interfaces: Optional[Sequence[ServerNetworkInterfaceArgs]] = None,
boot_order: Optional[str] = None,
host: Optional[int] = None,
server_group: Optional[str] = None,
simple_backup: Optional[ServerSimpleBackupArgs] = None,
storage_devices: Optional[Sequence[ServerStorageDeviceArgs]] = None,
tags: Optional[Sequence[str]] = None,
template: Optional[ServerTemplateArgs] = None,
timezone: Optional[str] = None,
title: Optional[str] = None,
user_data: Optional[str] = None,
video_model: Optional[str] = None,
cpu: Optional[int] = None)
func NewServer(ctx *Context, name string, args ServerArgs, opts ...ResourceOption) (*Server, error)
public Server(string name, ServerArgs args, CustomResourceOptions? opts = null)
public Server(String name, ServerArgs args)
public Server(String name, ServerArgs args, CustomResourceOptions options)
type: upcloud:Server
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 ServerArgs
- 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 ServerArgs
- 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 ServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerArgs
- 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 serverResource = new UpCloud.Server("serverResource", new()
{
Hostname = "string",
Zone = "string",
NicModel = "string",
Plan = "string",
Firewall = false,
Labels =
{
{ "string", "string" },
},
Login = new UpCloud.Inputs.ServerLoginArgs
{
CreatePassword = false,
Keys = new[]
{
"string",
},
PasswordDelivery = "string",
User = "string",
},
Mem = 0,
Metadata = false,
NetworkInterfaces = new[]
{
new UpCloud.Inputs.ServerNetworkInterfaceArgs
{
Type = "string",
AdditionalIpAddresses = new[]
{
new UpCloud.Inputs.ServerNetworkInterfaceAdditionalIpAddressArgs
{
IpAddress = "string",
IpAddressFamily = "string",
IpAddressFloating = false,
},
},
Bootable = false,
Index = 0,
IpAddress = "string",
IpAddressFamily = "string",
IpAddressFloating = false,
MacAddress = "string",
Network = "string",
SourceIpFiltering = false,
},
},
BootOrder = "string",
Host = 0,
ServerGroup = "string",
SimpleBackup = new UpCloud.Inputs.ServerSimpleBackupArgs
{
Plan = "string",
Time = "string",
},
StorageDevices = new[]
{
new UpCloud.Inputs.ServerStorageDeviceArgs
{
Address = "string",
AddressPosition = "string",
Storage = "string",
Type = "string",
},
},
Tags = new[]
{
"string",
},
Template = new UpCloud.Inputs.ServerTemplateArgs
{
Address = "string",
AddressPosition = "string",
BackupRule = new UpCloud.Inputs.ServerTemplateBackupRuleArgs
{
Interval = "string",
Retention = 0,
Time = "string",
},
DeleteAutoresizeBackup = false,
Encrypt = false,
FilesystemAutoresize = false,
Id = "string",
Size = 0,
Storage = "string",
Tier = "string",
Title = "string",
},
Timezone = "string",
Title = "string",
UserData = "string",
VideoModel = "string",
Cpu = 0,
});
example, err := upcloud.NewServer(ctx, "serverResource", &upcloud.ServerArgs{
Hostname: pulumi.String("string"),
Zone: pulumi.String("string"),
NicModel: pulumi.String("string"),
Plan: pulumi.String("string"),
Firewall: pulumi.Bool(false),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Login: &upcloud.ServerLoginArgs{
CreatePassword: pulumi.Bool(false),
Keys: pulumi.StringArray{
pulumi.String("string"),
},
PasswordDelivery: pulumi.String("string"),
User: pulumi.String("string"),
},
Mem: pulumi.Int(0),
Metadata: pulumi.Bool(false),
NetworkInterfaces: upcloud.ServerNetworkInterfaceArray{
&upcloud.ServerNetworkInterfaceArgs{
Type: pulumi.String("string"),
AdditionalIpAddresses: upcloud.ServerNetworkInterfaceAdditionalIpAddressArray{
&upcloud.ServerNetworkInterfaceAdditionalIpAddressArgs{
IpAddress: pulumi.String("string"),
IpAddressFamily: pulumi.String("string"),
IpAddressFloating: pulumi.Bool(false),
},
},
Bootable: pulumi.Bool(false),
Index: pulumi.Int(0),
IpAddress: pulumi.String("string"),
IpAddressFamily: pulumi.String("string"),
IpAddressFloating: pulumi.Bool(false),
MacAddress: pulumi.String("string"),
Network: pulumi.String("string"),
SourceIpFiltering: pulumi.Bool(false),
},
},
BootOrder: pulumi.String("string"),
Host: pulumi.Int(0),
ServerGroup: pulumi.String("string"),
SimpleBackup: &upcloud.ServerSimpleBackupArgs{
Plan: pulumi.String("string"),
Time: pulumi.String("string"),
},
StorageDevices: upcloud.ServerStorageDeviceArray{
&upcloud.ServerStorageDeviceArgs{
Address: pulumi.String("string"),
AddressPosition: pulumi.String("string"),
Storage: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Template: &upcloud.ServerTemplateArgs{
Address: pulumi.String("string"),
AddressPosition: pulumi.String("string"),
BackupRule: &upcloud.ServerTemplateBackupRuleArgs{
Interval: pulumi.String("string"),
Retention: pulumi.Int(0),
Time: pulumi.String("string"),
},
DeleteAutoresizeBackup: pulumi.Bool(false),
Encrypt: pulumi.Bool(false),
FilesystemAutoresize: pulumi.Bool(false),
Id: pulumi.String("string"),
Size: pulumi.Int(0),
Storage: pulumi.String("string"),
Tier: pulumi.String("string"),
Title: pulumi.String("string"),
},
Timezone: pulumi.String("string"),
Title: pulumi.String("string"),
UserData: pulumi.String("string"),
VideoModel: pulumi.String("string"),
Cpu: pulumi.Int(0),
})
var serverResource = new Server("serverResource", ServerArgs.builder()
.hostname("string")
.zone("string")
.nicModel("string")
.plan("string")
.firewall(false)
.labels(Map.of("string", "string"))
.login(ServerLoginArgs.builder()
.createPassword(false)
.keys("string")
.passwordDelivery("string")
.user("string")
.build())
.mem(0)
.metadata(false)
.networkInterfaces(ServerNetworkInterfaceArgs.builder()
.type("string")
.additionalIpAddresses(ServerNetworkInterfaceAdditionalIpAddressArgs.builder()
.ipAddress("string")
.ipAddressFamily("string")
.ipAddressFloating(false)
.build())
.bootable(false)
.index(0)
.ipAddress("string")
.ipAddressFamily("string")
.ipAddressFloating(false)
.macAddress("string")
.network("string")
.sourceIpFiltering(false)
.build())
.bootOrder("string")
.host(0)
.serverGroup("string")
.simpleBackup(ServerSimpleBackupArgs.builder()
.plan("string")
.time("string")
.build())
.storageDevices(ServerStorageDeviceArgs.builder()
.address("string")
.addressPosition("string")
.storage("string")
.type("string")
.build())
.tags("string")
.template(ServerTemplateArgs.builder()
.address("string")
.addressPosition("string")
.backupRule(ServerTemplateBackupRuleArgs.builder()
.interval("string")
.retention(0)
.time("string")
.build())
.deleteAutoresizeBackup(false)
.encrypt(false)
.filesystemAutoresize(false)
.id("string")
.size(0)
.storage("string")
.tier("string")
.title("string")
.build())
.timezone("string")
.title("string")
.userData("string")
.videoModel("string")
.cpu(0)
.build());
server_resource = upcloud.Server("serverResource",
hostname="string",
zone="string",
nic_model="string",
plan="string",
firewall=False,
labels={
"string": "string",
},
login={
"create_password": False,
"keys": ["string"],
"password_delivery": "string",
"user": "string",
},
mem=0,
metadata=False,
network_interfaces=[{
"type": "string",
"additional_ip_addresses": [{
"ip_address": "string",
"ip_address_family": "string",
"ip_address_floating": False,
}],
"bootable": False,
"index": 0,
"ip_address": "string",
"ip_address_family": "string",
"ip_address_floating": False,
"mac_address": "string",
"network": "string",
"source_ip_filtering": False,
}],
boot_order="string",
host=0,
server_group="string",
simple_backup={
"plan": "string",
"time": "string",
},
storage_devices=[{
"address": "string",
"address_position": "string",
"storage": "string",
"type": "string",
}],
tags=["string"],
template={
"address": "string",
"address_position": "string",
"backup_rule": {
"interval": "string",
"retention": 0,
"time": "string",
},
"delete_autoresize_backup": False,
"encrypt": False,
"filesystem_autoresize": False,
"id": "string",
"size": 0,
"storage": "string",
"tier": "string",
"title": "string",
},
timezone="string",
title="string",
user_data="string",
video_model="string",
cpu=0)
const serverResource = new upcloud.Server("serverResource", {
hostname: "string",
zone: "string",
nicModel: "string",
plan: "string",
firewall: false,
labels: {
string: "string",
},
login: {
createPassword: false,
keys: ["string"],
passwordDelivery: "string",
user: "string",
},
mem: 0,
metadata: false,
networkInterfaces: [{
type: "string",
additionalIpAddresses: [{
ipAddress: "string",
ipAddressFamily: "string",
ipAddressFloating: false,
}],
bootable: false,
index: 0,
ipAddress: "string",
ipAddressFamily: "string",
ipAddressFloating: false,
macAddress: "string",
network: "string",
sourceIpFiltering: false,
}],
bootOrder: "string",
host: 0,
serverGroup: "string",
simpleBackup: {
plan: "string",
time: "string",
},
storageDevices: [{
address: "string",
addressPosition: "string",
storage: "string",
type: "string",
}],
tags: ["string"],
template: {
address: "string",
addressPosition: "string",
backupRule: {
interval: "string",
retention: 0,
time: "string",
},
deleteAutoresizeBackup: false,
encrypt: false,
filesystemAutoresize: false,
id: "string",
size: 0,
storage: "string",
tier: "string",
title: "string",
},
timezone: "string",
title: "string",
userData: "string",
videoModel: "string",
cpu: 0,
});
type: upcloud:Server
properties:
bootOrder: string
cpu: 0
firewall: false
host: 0
hostname: string
labels:
string: string
login:
createPassword: false
keys:
- string
passwordDelivery: string
user: string
mem: 0
metadata: false
networkInterfaces:
- additionalIpAddresses:
- ipAddress: string
ipAddressFamily: string
ipAddressFloating: false
bootable: false
index: 0
ipAddress: string
ipAddressFamily: string
ipAddressFloating: false
macAddress: string
network: string
sourceIpFiltering: false
type: string
nicModel: string
plan: string
serverGroup: string
simpleBackup:
plan: string
time: string
storageDevices:
- address: string
addressPosition: string
storage: string
type: string
tags:
- string
template:
address: string
addressPosition: string
backupRule:
interval: string
retention: 0
time: string
deleteAutoresizeBackup: false
encrypt: false
filesystemAutoresize: false
id: string
size: 0
storage: string
tier: string
title: string
timezone: string
title: string
userData: string
videoModel: string
zone: string
Server 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 Server resource accepts the following input properties:
- Hostname string
- The hostname of the server.
- Zone string
- The zone in which the server will be hosted, e.g.
de-fra1
. You can list available zones withupctl zone list
. - Boot
Order string - The boot device order,
cdrom
|disk
|network
or comma separated combination of those values. Defaults todisk
- Cpu int
- The number of CPU cores for the server
- Firewall bool
- Are firewall rules active for the server
- Host int
- Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
- Labels Dictionary<string, string>
- User defined key-value pairs to classify the server.
- Login
Up
Cloud. Pulumi. Up Cloud. Inputs. Server Login - Configure access credentials to the server
- Mem int
- The amount of memory for the server (in megabytes)
- Metadata bool
- Is metadata service active for the server
- Network
Interfaces List<UpCloud. Pulumi. Up Cloud. Inputs. Server Network Interface> - One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
interfaces are matched to the server's actual network interfaces by
index
andip_address
fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend explicitly setting the value forindex
in configuration, when re-ordering interfaces or when removing interface from middle of the list. - Nic
Model string - The model of the server's network interfaces
- Plan string
- The pricing plan used for the server. You can list available server plans with
upctl server plans
- Server
Group string - The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
members
property ofupcloud.ServerGroup
. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value. - Simple
Backup UpCloud. Pulumi. Up Cloud. Inputs. Server Simple Backup - Storage
Devices List<UpCloud. Pulumi. Up Cloud. Inputs. Server Storage Device> - A set of storage devices associated with the server
- List<string>
- The server related tags
- Template
Up
Cloud. Pulumi. Up Cloud. Inputs. Server Template - Block describing the preconfigured operating system
- Timezone string
- The timezone of the server. The timezone must be a valid timezone string, e.g.
Europe/Helsinki
. - Title string
- A short, informational description of the server.
- User
Data string - Defines URL for a server setup script, or the script body itself
- Video
Model string - The model of the server's video interface
- Hostname string
- The hostname of the server.
- Zone string
- The zone in which the server will be hosted, e.g.
de-fra1
. You can list available zones withupctl zone list
. - Boot
Order string - The boot device order,
cdrom
|disk
|network
or comma separated combination of those values. Defaults todisk
- Cpu int
- The number of CPU cores for the server
- Firewall bool
- Are firewall rules active for the server
- Host int
- Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
- Labels map[string]string
- User defined key-value pairs to classify the server.
- Login
Server
Login Args - Configure access credentials to the server
- Mem int
- The amount of memory for the server (in megabytes)
- Metadata bool
- Is metadata service active for the server
- Network
Interfaces []ServerNetwork Interface Args - One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
interfaces are matched to the server's actual network interfaces by
index
andip_address
fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend explicitly setting the value forindex
in configuration, when re-ordering interfaces or when removing interface from middle of the list. - Nic
Model string - The model of the server's network interfaces
- Plan string
- The pricing plan used for the server. You can list available server plans with
upctl server plans
- Server
Group string - The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
members
property ofupcloud.ServerGroup
. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value. - Simple
Backup ServerSimple Backup Args - Storage
Devices []ServerStorage Device Args - A set of storage devices associated with the server
- []string
- The server related tags
- Template
Server
Template Args - Block describing the preconfigured operating system
- Timezone string
- The timezone of the server. The timezone must be a valid timezone string, e.g.
Europe/Helsinki
. - Title string
- A short, informational description of the server.
- User
Data string - Defines URL for a server setup script, or the script body itself
- Video
Model string - The model of the server's video interface
- hostname String
- The hostname of the server.
- zone String
- The zone in which the server will be hosted, e.g.
de-fra1
. You can list available zones withupctl zone list
. - boot
Order String - The boot device order,
cdrom
|disk
|network
or comma separated combination of those values. Defaults todisk
- cpu Integer
- The number of CPU cores for the server
- firewall Boolean
- Are firewall rules active for the server
- host Integer
- Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
- labels Map<String,String>
- User defined key-value pairs to classify the server.
- login
Server
Login - Configure access credentials to the server
- mem Integer
- The amount of memory for the server (in megabytes)
- metadata Boolean
- Is metadata service active for the server
- network
Interfaces List<ServerNetwork Interface> - One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
interfaces are matched to the server's actual network interfaces by
index
andip_address
fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend explicitly setting the value forindex
in configuration, when re-ordering interfaces or when removing interface from middle of the list. - nic
Model String - The model of the server's network interfaces
- plan String
- The pricing plan used for the server. You can list available server plans with
upctl server plans
- server
Group String - The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
members
property ofupcloud.ServerGroup
. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value. - simple
Backup ServerSimple Backup - storage
Devices List<ServerStorage Device> - A set of storage devices associated with the server
- List<String>
- The server related tags
- template
Server
Template - Block describing the preconfigured operating system
- timezone String
- The timezone of the server. The timezone must be a valid timezone string, e.g.
Europe/Helsinki
. - title String
- A short, informational description of the server.
- user
Data String - Defines URL for a server setup script, or the script body itself
- video
Model String - The model of the server's video interface
- hostname string
- The hostname of the server.
- zone string
- The zone in which the server will be hosted, e.g.
de-fra1
. You can list available zones withupctl zone list
. - boot
Order string - The boot device order,
cdrom
|disk
|network
or comma separated combination of those values. Defaults todisk
- cpu number
- The number of CPU cores for the server
- firewall boolean
- Are firewall rules active for the server
- host number
- Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
- labels {[key: string]: string}
- User defined key-value pairs to classify the server.
- login
Server
Login - Configure access credentials to the server
- mem number
- The amount of memory for the server (in megabytes)
- metadata boolean
- Is metadata service active for the server
- network
Interfaces ServerNetwork Interface[] - One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
interfaces are matched to the server's actual network interfaces by
index
andip_address
fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend explicitly setting the value forindex
in configuration, when re-ordering interfaces or when removing interface from middle of the list. - nic
Model string - The model of the server's network interfaces
- plan string
- The pricing plan used for the server. You can list available server plans with
upctl server plans
- server
Group string - The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
members
property ofupcloud.ServerGroup
. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value. - simple
Backup ServerSimple Backup - storage
Devices ServerStorage Device[] - A set of storage devices associated with the server
- string[]
- The server related tags
- template
Server
Template - Block describing the preconfigured operating system
- timezone string
- The timezone of the server. The timezone must be a valid timezone string, e.g.
Europe/Helsinki
. - title string
- A short, informational description of the server.
- user
Data string - Defines URL for a server setup script, or the script body itself
- video
Model string - The model of the server's video interface
- hostname str
- The hostname of the server.
- zone str
- The zone in which the server will be hosted, e.g.
de-fra1
. You can list available zones withupctl zone list
. - boot_
order str - The boot device order,
cdrom
|disk
|network
or comma separated combination of those values. Defaults todisk
- cpu int
- The number of CPU cores for the server
- firewall bool
- Are firewall rules active for the server
- host int
- Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
- labels Mapping[str, str]
- User defined key-value pairs to classify the server.
- login
Server
Login Args - Configure access credentials to the server
- mem int
- The amount of memory for the server (in megabytes)
- metadata bool
- Is metadata service active for the server
- network_
interfaces Sequence[ServerNetwork Interface Args] - One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
interfaces are matched to the server's actual network interfaces by
index
andip_address
fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend explicitly setting the value forindex
in configuration, when re-ordering interfaces or when removing interface from middle of the list. - nic_
model str - The model of the server's network interfaces
- plan str
- The pricing plan used for the server. You can list available server plans with
upctl server plans
- server_
group str - The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
members
property ofupcloud.ServerGroup
. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value. - simple_
backup ServerSimple Backup Args - storage_
devices Sequence[ServerStorage Device Args] - A set of storage devices associated with the server
- Sequence[str]
- The server related tags
- template
Server
Template Args - Block describing the preconfigured operating system
- timezone str
- The timezone of the server. The timezone must be a valid timezone string, e.g.
Europe/Helsinki
. - title str
- A short, informational description of the server.
- user_
data str - Defines URL for a server setup script, or the script body itself
- video_
model str - The model of the server's video interface
- hostname String
- The hostname of the server.
- zone String
- The zone in which the server will be hosted, e.g.
de-fra1
. You can list available zones withupctl zone list
. - boot
Order String - The boot device order,
cdrom
|disk
|network
or comma separated combination of those values. Defaults todisk
- cpu Number
- The number of CPU cores for the server
- firewall Boolean
- Are firewall rules active for the server
- host Number
- Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
- labels Map<String>
- User defined key-value pairs to classify the server.
- login Property Map
- Configure access credentials to the server
- mem Number
- The amount of memory for the server (in megabytes)
- metadata Boolean
- Is metadata service active for the server
- network
Interfaces List<Property Map> - One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
interfaces are matched to the server's actual network interfaces by
index
andip_address
fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend explicitly setting the value forindex
in configuration, when re-ordering interfaces or when removing interface from middle of the list. - nic
Model String - The model of the server's network interfaces
- plan String
- The pricing plan used for the server. You can list available server plans with
upctl server plans
- server
Group String - The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
members
property ofupcloud.ServerGroup
. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value. - simple
Backup Property Map - storage
Devices List<Property Map> - A set of storage devices associated with the server
- List<String>
- The server related tags
- template Property Map
- Block describing the preconfigured operating system
- timezone String
- The timezone of the server. The timezone must be a valid timezone string, e.g.
Europe/Helsinki
. - title String
- A short, informational description of the server.
- user
Data String - Defines URL for a server setup script, or the script body itself
- video
Model String - The model of the server's video interface
Outputs
All input properties are implicitly available as output properties. Additionally, the Server resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Server Resource
Get an existing Server 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?: ServerState, opts?: CustomResourceOptions): Server
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
boot_order: Optional[str] = None,
cpu: Optional[int] = None,
firewall: Optional[bool] = None,
host: Optional[int] = None,
hostname: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
login: Optional[ServerLoginArgs] = None,
mem: Optional[int] = None,
metadata: Optional[bool] = None,
network_interfaces: Optional[Sequence[ServerNetworkInterfaceArgs]] = None,
nic_model: Optional[str] = None,
plan: Optional[str] = None,
server_group: Optional[str] = None,
simple_backup: Optional[ServerSimpleBackupArgs] = None,
storage_devices: Optional[Sequence[ServerStorageDeviceArgs]] = None,
tags: Optional[Sequence[str]] = None,
template: Optional[ServerTemplateArgs] = None,
timezone: Optional[str] = None,
title: Optional[str] = None,
user_data: Optional[str] = None,
video_model: Optional[str] = None,
zone: Optional[str] = None) -> Server
func GetServer(ctx *Context, name string, id IDInput, state *ServerState, opts ...ResourceOption) (*Server, error)
public static Server Get(string name, Input<string> id, ServerState? state, CustomResourceOptions? opts = null)
public static Server get(String name, Output<String> id, ServerState state, CustomResourceOptions options)
resources: _: type: upcloud:Server 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.
- Boot
Order string - The boot device order,
cdrom
|disk
|network
or comma separated combination of those values. Defaults todisk
- Cpu int
- The number of CPU cores for the server
- Firewall bool
- Are firewall rules active for the server
- Host int
- Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
- Hostname string
- The hostname of the server.
- Labels Dictionary<string, string>
- User defined key-value pairs to classify the server.
- Login
Up
Cloud. Pulumi. Up Cloud. Inputs. Server Login - Configure access credentials to the server
- Mem int
- The amount of memory for the server (in megabytes)
- Metadata bool
- Is metadata service active for the server
- Network
Interfaces List<UpCloud. Pulumi. Up Cloud. Inputs. Server Network Interface> - One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
interfaces are matched to the server's actual network interfaces by
index
andip_address
fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend explicitly setting the value forindex
in configuration, when re-ordering interfaces or when removing interface from middle of the list. - Nic
Model string - The model of the server's network interfaces
- Plan string
- The pricing plan used for the server. You can list available server plans with
upctl server plans
- Server
Group string - The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
members
property ofupcloud.ServerGroup
. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value. - Simple
Backup UpCloud. Pulumi. Up Cloud. Inputs. Server Simple Backup - Storage
Devices List<UpCloud. Pulumi. Up Cloud. Inputs. Server Storage Device> - A set of storage devices associated with the server
- List<string>
- The server related tags
- Template
Up
Cloud. Pulumi. Up Cloud. Inputs. Server Template - Block describing the preconfigured operating system
- Timezone string
- The timezone of the server. The timezone must be a valid timezone string, e.g.
Europe/Helsinki
. - Title string
- A short, informational description of the server.
- User
Data string - Defines URL for a server setup script, or the script body itself
- Video
Model string - The model of the server's video interface
- Zone string
- The zone in which the server will be hosted, e.g.
de-fra1
. You can list available zones withupctl zone list
.
- Boot
Order string - The boot device order,
cdrom
|disk
|network
or comma separated combination of those values. Defaults todisk
- Cpu int
- The number of CPU cores for the server
- Firewall bool
- Are firewall rules active for the server
- Host int
- Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
- Hostname string
- The hostname of the server.
- Labels map[string]string
- User defined key-value pairs to classify the server.
- Login
Server
Login Args - Configure access credentials to the server
- Mem int
- The amount of memory for the server (in megabytes)
- Metadata bool
- Is metadata service active for the server
- Network
Interfaces []ServerNetwork Interface Args - One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
interfaces are matched to the server's actual network interfaces by
index
andip_address
fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend explicitly setting the value forindex
in configuration, when re-ordering interfaces or when removing interface from middle of the list. - Nic
Model string - The model of the server's network interfaces
- Plan string
- The pricing plan used for the server. You can list available server plans with
upctl server plans
- Server
Group string - The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
members
property ofupcloud.ServerGroup
. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value. - Simple
Backup ServerSimple Backup Args - Storage
Devices []ServerStorage Device Args - A set of storage devices associated with the server
- []string
- The server related tags
- Template
Server
Template Args - Block describing the preconfigured operating system
- Timezone string
- The timezone of the server. The timezone must be a valid timezone string, e.g.
Europe/Helsinki
. - Title string
- A short, informational description of the server.
- User
Data string - Defines URL for a server setup script, or the script body itself
- Video
Model string - The model of the server's video interface
- Zone string
- The zone in which the server will be hosted, e.g.
de-fra1
. You can list available zones withupctl zone list
.
- boot
Order String - The boot device order,
cdrom
|disk
|network
or comma separated combination of those values. Defaults todisk
- cpu Integer
- The number of CPU cores for the server
- firewall Boolean
- Are firewall rules active for the server
- host Integer
- Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
- hostname String
- The hostname of the server.
- labels Map<String,String>
- User defined key-value pairs to classify the server.
- login
Server
Login - Configure access credentials to the server
- mem Integer
- The amount of memory for the server (in megabytes)
- metadata Boolean
- Is metadata service active for the server
- network
Interfaces List<ServerNetwork Interface> - One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
interfaces are matched to the server's actual network interfaces by
index
andip_address
fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend explicitly setting the value forindex
in configuration, when re-ordering interfaces or when removing interface from middle of the list. - nic
Model String - The model of the server's network interfaces
- plan String
- The pricing plan used for the server. You can list available server plans with
upctl server plans
- server
Group String - The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
members
property ofupcloud.ServerGroup
. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value. - simple
Backup ServerSimple Backup - storage
Devices List<ServerStorage Device> - A set of storage devices associated with the server
- List<String>
- The server related tags
- template
Server
Template - Block describing the preconfigured operating system
- timezone String
- The timezone of the server. The timezone must be a valid timezone string, e.g.
Europe/Helsinki
. - title String
- A short, informational description of the server.
- user
Data String - Defines URL for a server setup script, or the script body itself
- video
Model String - The model of the server's video interface
- zone String
- The zone in which the server will be hosted, e.g.
de-fra1
. You can list available zones withupctl zone list
.
- boot
Order string - The boot device order,
cdrom
|disk
|network
or comma separated combination of those values. Defaults todisk
- cpu number
- The number of CPU cores for the server
- firewall boolean
- Are firewall rules active for the server
- host number
- Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
- hostname string
- The hostname of the server.
- labels {[key: string]: string}
- User defined key-value pairs to classify the server.
- login
Server
Login - Configure access credentials to the server
- mem number
- The amount of memory for the server (in megabytes)
- metadata boolean
- Is metadata service active for the server
- network
Interfaces ServerNetwork Interface[] - One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
interfaces are matched to the server's actual network interfaces by
index
andip_address
fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend explicitly setting the value forindex
in configuration, when re-ordering interfaces or when removing interface from middle of the list. - nic
Model string - The model of the server's network interfaces
- plan string
- The pricing plan used for the server. You can list available server plans with
upctl server plans
- server
Group string - The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
members
property ofupcloud.ServerGroup
. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value. - simple
Backup ServerSimple Backup - storage
Devices ServerStorage Device[] - A set of storage devices associated with the server
- string[]
- The server related tags
- template
Server
Template - Block describing the preconfigured operating system
- timezone string
- The timezone of the server. The timezone must be a valid timezone string, e.g.
Europe/Helsinki
. - title string
- A short, informational description of the server.
- user
Data string - Defines URL for a server setup script, or the script body itself
- video
Model string - The model of the server's video interface
- zone string
- The zone in which the server will be hosted, e.g.
de-fra1
. You can list available zones withupctl zone list
.
- boot_
order str - The boot device order,
cdrom
|disk
|network
or comma separated combination of those values. Defaults todisk
- cpu int
- The number of CPU cores for the server
- firewall bool
- Are firewall rules active for the server
- host int
- Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
- hostname str
- The hostname of the server.
- labels Mapping[str, str]
- User defined key-value pairs to classify the server.
- login
Server
Login Args - Configure access credentials to the server
- mem int
- The amount of memory for the server (in megabytes)
- metadata bool
- Is metadata service active for the server
- network_
interfaces Sequence[ServerNetwork Interface Args] - One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
interfaces are matched to the server's actual network interfaces by
index
andip_address
fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend explicitly setting the value forindex
in configuration, when re-ordering interfaces or when removing interface from middle of the list. - nic_
model str - The model of the server's network interfaces
- plan str
- The pricing plan used for the server. You can list available server plans with
upctl server plans
- server_
group str - The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
members
property ofupcloud.ServerGroup
. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value. - simple_
backup ServerSimple Backup Args - storage_
devices Sequence[ServerStorage Device Args] - A set of storage devices associated with the server
- Sequence[str]
- The server related tags
- template
Server
Template Args - Block describing the preconfigured operating system
- timezone str
- The timezone of the server. The timezone must be a valid timezone string, e.g.
Europe/Helsinki
. - title str
- A short, informational description of the server.
- user_
data str - Defines URL for a server setup script, or the script body itself
- video_
model str - The model of the server's video interface
- zone str
- The zone in which the server will be hosted, e.g.
de-fra1
. You can list available zones withupctl zone list
.
- boot
Order String - The boot device order,
cdrom
|disk
|network
or comma separated combination of those values. Defaults todisk
- cpu Number
- The number of CPU cores for the server
- firewall Boolean
- Are firewall rules active for the server
- host Number
- Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
- hostname String
- The hostname of the server.
- labels Map<String>
- User defined key-value pairs to classify the server.
- login Property Map
- Configure access credentials to the server
- mem Number
- The amount of memory for the server (in megabytes)
- metadata Boolean
- Is metadata service active for the server
- network
Interfaces List<Property Map> - One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
interfaces are matched to the server's actual network interfaces by
index
andip_address
fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend explicitly setting the value forindex
in configuration, when re-ordering interfaces or when removing interface from middle of the list. - nic
Model String - The model of the server's network interfaces
- plan String
- The pricing plan used for the server. You can list available server plans with
upctl server plans
- server
Group String - The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
members
property ofupcloud.ServerGroup
. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value. - simple
Backup Property Map - storage
Devices List<Property Map> - A set of storage devices associated with the server
- List<String>
- The server related tags
- template Property Map
- Block describing the preconfigured operating system
- timezone String
- The timezone of the server. The timezone must be a valid timezone string, e.g.
Europe/Helsinki
. - title String
- A short, informational description of the server.
- user
Data String - Defines URL for a server setup script, or the script body itself
- video
Model String - The model of the server's video interface
- zone String
- The zone in which the server will be hosted, e.g.
de-fra1
. You can list available zones withupctl zone list
.
Supporting Types
ServerLogin, ServerLoginArgs
- Create
Password bool - Indicates a password should be create to allow access
- Keys List<string>
- A list of ssh keys to access the server
- Password
Delivery string - The delivery method for the server's root password (one of
none
,email
orsms
) - User string
- Username to be create to access the server
- Create
Password bool - Indicates a password should be create to allow access
- Keys []string
- A list of ssh keys to access the server
- Password
Delivery string - The delivery method for the server's root password (one of
none
,email
orsms
) - User string
- Username to be create to access the server
- create
Password Boolean - Indicates a password should be create to allow access
- keys List<String>
- A list of ssh keys to access the server
- password
Delivery String - The delivery method for the server's root password (one of
none
,email
orsms
) - user String
- Username to be create to access the server
- create
Password boolean - Indicates a password should be create to allow access
- keys string[]
- A list of ssh keys to access the server
- password
Delivery string - The delivery method for the server's root password (one of
none
,email
orsms
) - user string
- Username to be create to access the server
- create_
password bool - Indicates a password should be create to allow access
- keys Sequence[str]
- A list of ssh keys to access the server
- password_
delivery str - The delivery method for the server's root password (one of
none
,email
orsms
) - user str
- Username to be create to access the server
- create
Password Boolean - Indicates a password should be create to allow access
- keys List<String>
- A list of ssh keys to access the server
- password
Delivery String - The delivery method for the server's root password (one of
none
,email
orsms
) - user String
- Username to be create to access the server
ServerNetworkInterface, ServerNetworkInterfaceArgs
- Type string
- Network interface type. For private network interfaces, a network must be specified with an existing network id.
- Additional
Ip List<UpAddresses Cloud. Pulumi. Up Cloud. Inputs. Server Network Interface Additional Ip Address> - 0-31 blocks of additional IP addresses to assign to this interface. Allowed only with network interfaces of type
private
- Bootable bool
true
if this interface should be used for network booting.- Index int
- The interface index.
- Ip
Address string - The primary IP address of this interface.
- Ip
Address stringFamily - The type of the primary IP address of this interface (one of
IPv4
orIPv6
). - Ip
Address boolFloating true
indicates that the primary IP address is a floating IP address.- Mac
Address string - The MAC address of the interface.
- Network string
- The UUID of the network to attach this interface to. Required for private network interfaces.
- Source
Ip boolFiltering true
if source IP should be filtered.
- Type string
- Network interface type. For private network interfaces, a network must be specified with an existing network id.
- Additional
Ip []ServerAddresses Network Interface Additional Ip Address - 0-31 blocks of additional IP addresses to assign to this interface. Allowed only with network interfaces of type
private
- Bootable bool
true
if this interface should be used for network booting.- Index int
- The interface index.
- Ip
Address string - The primary IP address of this interface.
- Ip
Address stringFamily - The type of the primary IP address of this interface (one of
IPv4
orIPv6
). - Ip
Address boolFloating true
indicates that the primary IP address is a floating IP address.- Mac
Address string - The MAC address of the interface.
- Network string
- The UUID of the network to attach this interface to. Required for private network interfaces.
- Source
Ip boolFiltering true
if source IP should be filtered.
- type String
- Network interface type. For private network interfaces, a network must be specified with an existing network id.
- additional
Ip List<ServerAddresses Network Interface Additional Ip Address> - 0-31 blocks of additional IP addresses to assign to this interface. Allowed only with network interfaces of type
private
- bootable Boolean
true
if this interface should be used for network booting.- index Integer
- The interface index.
- ip
Address String - The primary IP address of this interface.
- ip
Address StringFamily - The type of the primary IP address of this interface (one of
IPv4
orIPv6
). - ip
Address BooleanFloating true
indicates that the primary IP address is a floating IP address.- mac
Address String - The MAC address of the interface.
- network String
- The UUID of the network to attach this interface to. Required for private network interfaces.
- source
Ip BooleanFiltering true
if source IP should be filtered.
- type string
- Network interface type. For private network interfaces, a network must be specified with an existing network id.
- additional
Ip ServerAddresses Network Interface Additional Ip Address[] - 0-31 blocks of additional IP addresses to assign to this interface. Allowed only with network interfaces of type
private
- bootable boolean
true
if this interface should be used for network booting.- index number
- The interface index.
- ip
Address string - The primary IP address of this interface.
- ip
Address stringFamily - The type of the primary IP address of this interface (one of
IPv4
orIPv6
). - ip
Address booleanFloating true
indicates that the primary IP address is a floating IP address.- mac
Address string - The MAC address of the interface.
- network string
- The UUID of the network to attach this interface to. Required for private network interfaces.
- source
Ip booleanFiltering true
if source IP should be filtered.
- type str
- Network interface type. For private network interfaces, a network must be specified with an existing network id.
- additional_
ip_ Sequence[Serveraddresses Network Interface Additional Ip Address] - 0-31 blocks of additional IP addresses to assign to this interface. Allowed only with network interfaces of type
private
- bootable bool
true
if this interface should be used for network booting.- index int
- The interface index.
- ip_
address str - The primary IP address of this interface.
- ip_
address_ strfamily - The type of the primary IP address of this interface (one of
IPv4
orIPv6
). - ip_
address_ boolfloating true
indicates that the primary IP address is a floating IP address.- mac_
address str - The MAC address of the interface.
- network str
- The UUID of the network to attach this interface to. Required for private network interfaces.
- source_
ip_ boolfiltering true
if source IP should be filtered.
- type String
- Network interface type. For private network interfaces, a network must be specified with an existing network id.
- additional
Ip List<Property Map>Addresses - 0-31 blocks of additional IP addresses to assign to this interface. Allowed only with network interfaces of type
private
- bootable Boolean
true
if this interface should be used for network booting.- index Number
- The interface index.
- ip
Address String - The primary IP address of this interface.
- ip
Address StringFamily - The type of the primary IP address of this interface (one of
IPv4
orIPv6
). - ip
Address BooleanFloating true
indicates that the primary IP address is a floating IP address.- mac
Address String - The MAC address of the interface.
- network String
- The UUID of the network to attach this interface to. Required for private network interfaces.
- source
Ip BooleanFiltering true
if source IP should be filtered.
ServerNetworkInterfaceAdditionalIpAddress, ServerNetworkInterfaceAdditionalIpAddressArgs
- Ip
Address string - An additional IP address for this interface.
- Ip
Address stringFamily - The type of the additional IP address of this interface (one of
IPv4
orIPv6
). - Ip
Address boolFloating true
indicates that the additional IP address is a floating IP address.
- Ip
Address string - An additional IP address for this interface.
- Ip
Address stringFamily - The type of the additional IP address of this interface (one of
IPv4
orIPv6
). - Ip
Address boolFloating true
indicates that the additional IP address is a floating IP address.
- ip
Address String - An additional IP address for this interface.
- ip
Address StringFamily - The type of the additional IP address of this interface (one of
IPv4
orIPv6
). - ip
Address BooleanFloating true
indicates that the additional IP address is a floating IP address.
- ip
Address string - An additional IP address for this interface.
- ip
Address stringFamily - The type of the additional IP address of this interface (one of
IPv4
orIPv6
). - ip
Address booleanFloating true
indicates that the additional IP address is a floating IP address.
- ip_
address str - An additional IP address for this interface.
- ip_
address_ strfamily - The type of the additional IP address of this interface (one of
IPv4
orIPv6
). - ip_
address_ boolfloating true
indicates that the additional IP address is a floating IP address.
- ip
Address String - An additional IP address for this interface.
- ip
Address StringFamily - The type of the additional IP address of this interface (one of
IPv4
orIPv6
). - ip
Address BooleanFloating true
indicates that the additional IP address is a floating IP address.
ServerSimpleBackup, ServerSimpleBackupArgs
ServerStorageDevice, ServerStorageDeviceArgs
- Address string
- The device address the storage will be attached to (
scsi
|virtio
|ide
). Leaveaddress_position
field empty to auto-select next available address from that bus. - Address
Position string - The device position in the given bus (defined via field
address
). Valid values for addressvirtio
are0-15
(0
, for example). Valid values forscsi
oride
are0-1:0-1
(0:0
, for example). Leave empty to auto-select next available address in the given bus. - Storage string
- The UUID of the storage to attach to the server.
- Type string
- The device type the storage will be attached as
- Address string
- The device address the storage will be attached to (
scsi
|virtio
|ide
). Leaveaddress_position
field empty to auto-select next available address from that bus. - Address
Position string - The device position in the given bus (defined via field
address
). Valid values for addressvirtio
are0-15
(0
, for example). Valid values forscsi
oride
are0-1:0-1
(0:0
, for example). Leave empty to auto-select next available address in the given bus. - Storage string
- The UUID of the storage to attach to the server.
- Type string
- The device type the storage will be attached as
- address String
- The device address the storage will be attached to (
scsi
|virtio
|ide
). Leaveaddress_position
field empty to auto-select next available address from that bus. - address
Position String - The device position in the given bus (defined via field
address
). Valid values for addressvirtio
are0-15
(0
, for example). Valid values forscsi
oride
are0-1:0-1
(0:0
, for example). Leave empty to auto-select next available address in the given bus. - storage String
- The UUID of the storage to attach to the server.
- type String
- The device type the storage will be attached as
- address string
- The device address the storage will be attached to (
scsi
|virtio
|ide
). Leaveaddress_position
field empty to auto-select next available address from that bus. - address
Position string - The device position in the given bus (defined via field
address
). Valid values for addressvirtio
are0-15
(0
, for example). Valid values forscsi
oride
are0-1:0-1
(0:0
, for example). Leave empty to auto-select next available address in the given bus. - storage string
- The UUID of the storage to attach to the server.
- type string
- The device type the storage will be attached as
- address str
- The device address the storage will be attached to (
scsi
|virtio
|ide
). Leaveaddress_position
field empty to auto-select next available address from that bus. - address_
position str - The device position in the given bus (defined via field
address
). Valid values for addressvirtio
are0-15
(0
, for example). Valid values forscsi
oride
are0-1:0-1
(0:0
, for example). Leave empty to auto-select next available address in the given bus. - storage str
- The UUID of the storage to attach to the server.
- type str
- The device type the storage will be attached as
- address String
- The device address the storage will be attached to (
scsi
|virtio
|ide
). Leaveaddress_position
field empty to auto-select next available address from that bus. - address
Position String - The device position in the given bus (defined via field
address
). Valid values for addressvirtio
are0-15
(0
, for example). Valid values forscsi
oride
are0-1:0-1
(0:0
, for example). Leave empty to auto-select next available address in the given bus. - storage String
- The UUID of the storage to attach to the server.
- type String
- The device type the storage will be attached as
ServerTemplate, ServerTemplateArgs
- Address string
- The device address the storage will be attached to (
scsi
|virtio
|ide
). Leaveaddress_position
field empty to auto-select next available address from that bus. - Address
Position string - The device position in the given bus (defined via field
address
). For example0:0
, or0
. Leave empty to auto-select next available address in the given bus. - Backup
Rule UpCloud. Pulumi. Up Cloud. Inputs. Server Template Backup Rule - Delete
Autoresize boolBackup - If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
- Encrypt bool
- Sets if the storage is encrypted at rest
- Filesystem
Autoresize bool - If set to true, provider will attempt to resize partition and filesystem when the size of template storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
- Id string
- The unique identifier for the storage
- Size int
- The size of the storage in gigabytes
- Storage string
- A valid storage UUID or template name. You can list available public templates with
upctl storage list --public --template
and available private templates withupctl storage list --template
. - Tier string
- The storage tier to use.
- Title string
- A short, informative description
- Address string
- The device address the storage will be attached to (
scsi
|virtio
|ide
). Leaveaddress_position
field empty to auto-select next available address from that bus. - Address
Position string - The device position in the given bus (defined via field
address
). For example0:0
, or0
. Leave empty to auto-select next available address in the given bus. - Backup
Rule ServerTemplate Backup Rule - Delete
Autoresize boolBackup - If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
- Encrypt bool
- Sets if the storage is encrypted at rest
- Filesystem
Autoresize bool - If set to true, provider will attempt to resize partition and filesystem when the size of template storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
- Id string
- The unique identifier for the storage
- Size int
- The size of the storage in gigabytes
- Storage string
- A valid storage UUID or template name. You can list available public templates with
upctl storage list --public --template
and available private templates withupctl storage list --template
. - Tier string
- The storage tier to use.
- Title string
- A short, informative description
- address String
- The device address the storage will be attached to (
scsi
|virtio
|ide
). Leaveaddress_position
field empty to auto-select next available address from that bus. - address
Position String - The device position in the given bus (defined via field
address
). For example0:0
, or0
. Leave empty to auto-select next available address in the given bus. - backup
Rule ServerTemplate Backup Rule - delete
Autoresize BooleanBackup - If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
- encrypt Boolean
- Sets if the storage is encrypted at rest
- filesystem
Autoresize Boolean - If set to true, provider will attempt to resize partition and filesystem when the size of template storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
- id String
- The unique identifier for the storage
- size Integer
- The size of the storage in gigabytes
- storage String
- A valid storage UUID or template name. You can list available public templates with
upctl storage list --public --template
and available private templates withupctl storage list --template
. - tier String
- The storage tier to use.
- title String
- A short, informative description
- address string
- The device address the storage will be attached to (
scsi
|virtio
|ide
). Leaveaddress_position
field empty to auto-select next available address from that bus. - address
Position string - The device position in the given bus (defined via field
address
). For example0:0
, or0
. Leave empty to auto-select next available address in the given bus. - backup
Rule ServerTemplate Backup Rule - delete
Autoresize booleanBackup - If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
- encrypt boolean
- Sets if the storage is encrypted at rest
- filesystem
Autoresize boolean - If set to true, provider will attempt to resize partition and filesystem when the size of template storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
- id string
- The unique identifier for the storage
- size number
- The size of the storage in gigabytes
- storage string
- A valid storage UUID or template name. You can list available public templates with
upctl storage list --public --template
and available private templates withupctl storage list --template
. - tier string
- The storage tier to use.
- title string
- A short, informative description
- address str
- The device address the storage will be attached to (
scsi
|virtio
|ide
). Leaveaddress_position
field empty to auto-select next available address from that bus. - address_
position str - The device position in the given bus (defined via field
address
). For example0:0
, or0
. Leave empty to auto-select next available address in the given bus. - backup_
rule ServerTemplate Backup Rule - delete_
autoresize_ boolbackup - If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
- encrypt bool
- Sets if the storage is encrypted at rest
- filesystem_
autoresize bool - If set to true, provider will attempt to resize partition and filesystem when the size of template storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
- id str
- The unique identifier for the storage
- size int
- The size of the storage in gigabytes
- storage str
- A valid storage UUID or template name. You can list available public templates with
upctl storage list --public --template
and available private templates withupctl storage list --template
. - tier str
- The storage tier to use.
- title str
- A short, informative description
- address String
- The device address the storage will be attached to (
scsi
|virtio
|ide
). Leaveaddress_position
field empty to auto-select next available address from that bus. - address
Position String - The device position in the given bus (defined via field
address
). For example0:0
, or0
. Leave empty to auto-select next available address in the given bus. - backup
Rule Property Map - delete
Autoresize BooleanBackup - If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
- encrypt Boolean
- Sets if the storage is encrypted at rest
- filesystem
Autoresize Boolean - If set to true, provider will attempt to resize partition and filesystem when the size of template storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
- id String
- The unique identifier for the storage
- size Number
- The size of the storage in gigabytes
- storage String
- A valid storage UUID or template name. You can list available public templates with
upctl storage list --public --template
and available private templates withupctl storage list --template
. - tier String
- The storage tier to use.
- title String
- A short, informative description
ServerTemplateBackupRule, ServerTemplateBackupRuleArgs
Import
$ pulumi import upcloud:index/server:Server example_server ead4544f-10bf-42a3-b98a-a0fea2e2ad14
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- upcloud UpCloudLtd/pulumi-upcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
upcloud
Terraform Provider.