Server

Create a Server Resource

new Server(name: string, args: ServerArgs, opts?: CustomResourceOptions);
def Server(resource_name, opts=None, backups=None, datacenter=None, image=None, iso=None, keep_disk=None, labels=None, location=None, name=None, rescue=None, server_type=None, ssh_keys=None, user_data=None, __props__=None);
func NewServer(ctx *Context, name string, args ServerArgs, opts ...ResourceOption) (*Server, error)
public Server(string name, ServerArgs args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

Server Resource Properties

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

Inputs

The Server resource accepts the following input properties:

Image string
ServerType string
Backups bool
Datacenter string
Iso string
KeepDisk bool
Labels Dictionary<string, object>
Location string
Name string
Rescue string
SshKeys List<string>
UserData string
Image string
ServerType string
Backups bool
Datacenter string
Iso string
KeepDisk bool
Labels map[string]interface{}
Location string
Name string
Rescue string
SshKeys []string
UserData string
image string
serverType string
backups boolean
datacenter string
iso string
keepDisk boolean
labels {[key: string]: any}
location string
name string
rescue string
sshKeys string[]
userData string
image str
server_type str
backups bool
datacenter str
iso str
keep_disk bool
labels Dict[str, Any]
location str
name str
rescue str
ssh_keys List[str]
user_data str

Outputs

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

BackupWindow string

Deprecated: You should remove this property from your terraform configuration.

Id string
The provider-assigned unique ID for this managed resource.
Ipv4Address string
Ipv6Address string
Ipv6Network string
Status string
BackupWindow string

Deprecated: You should remove this property from your terraform configuration.

Id string
The provider-assigned unique ID for this managed resource.
Ipv4Address string
Ipv6Address string
Ipv6Network string
Status string
backupWindow string

Deprecated: You should remove this property from your terraform configuration.

id string
The provider-assigned unique ID for this managed resource.
ipv4Address string
ipv6Address string
ipv6Network string
status string
backup_window str

Deprecated: You should remove this property from your terraform configuration.

id str
The provider-assigned unique ID for this managed resource.
ipv4_address str
ipv6_address str
ipv6_network str
status str

Look up an 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
static get(resource_name, id, opts=None, backup_window=None, backups=None, datacenter=None, image=None, ipv4_address=None, ipv6_address=None, ipv6_network=None, iso=None, keep_disk=None, labels=None, location=None, name=None, rescue=None, server_type=None, ssh_keys=None, status=None, user_data=None, __props__=None);
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)
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.

The following state arguments are supported:

BackupWindow string

Deprecated: You should remove this property from your terraform configuration.

Backups bool
Datacenter string
Image string
Ipv4Address string
Ipv6Address string
Ipv6Network string
Iso string
KeepDisk bool
Labels Dictionary<string, object>
Location string
Name string
Rescue string
ServerType string
SshKeys List<string>
Status string
UserData string
BackupWindow string

Deprecated: You should remove this property from your terraform configuration.

Backups bool
Datacenter string
Image string
Ipv4Address string
Ipv6Address string
Ipv6Network string
Iso string
KeepDisk bool
Labels map[string]interface{}
Location string
Name string
Rescue string
ServerType string
SshKeys []string
Status string
UserData string
backupWindow string

Deprecated: You should remove this property from your terraform configuration.

backups boolean
datacenter string
image string
ipv4Address string
ipv6Address string
ipv6Network string
iso string
keepDisk boolean
labels {[key: string]: any}
location string
name string
rescue string
serverType string
sshKeys string[]
status string
userData string
backup_window str

Deprecated: You should remove this property from your terraform configuration.

backups bool
datacenter str
image str
ipv4_address str
ipv6_address str
ipv6_network str
iso str
keep_disk bool
labels Dict[str, Any]
location str
name str
rescue str
server_type str
ssh_keys List[str]
status str
user_data str

Package Details

Repository
https://github.com/pulumi/pulumi-hcloud
License
Apache-2.0
Notes
This Pulumi package is based on the hcloud Terraform Provider.