GetServer

Using GetServer

function getServer(args: GetServerArgs, opts?: InvokeOptions): Promise<GetServerResult>
function  get_server(id=None, name=None, selector=None, with_selector=None, with_statuses=None, opts=None)
func LookupServer(ctx *Context, args *LookupServerArgs, opts ...InvokeOption) (*LookupServerResult, error)

Note: This function is named LookupServer in the Go SDK.

public static class GetServer {
    public static Task<GetServerResult> InvokeAsync(GetServerArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Id int
Name string
Selector string

Deprecated: Please use the with_selector property instead.

WithSelector string
WithStatuses List<string>
Id int
Name string
Selector string

Deprecated: Please use the with_selector property instead.

WithSelector string
WithStatuses []string
id number
name string
selector string

Deprecated: Please use the with_selector property instead.

withSelector string
withStatuses string[]
id float
name str
selector str

Deprecated: Please use the with_selector property instead.

with_selector str
with_statuses List[str]

GetServer Result

The following output properties are available:

BackupWindow string
Backups bool
Datacenter string
Id int
Image string
Ipv4Address string
Ipv6Address string
Ipv6Network string
Iso string
Labels Dictionary<string, object>
Location string
Name string
Rescue string
ServerType string
Status string
Selector string

Deprecated: Please use the with_selector property instead.

WithSelector string
WithStatuses List<string>
BackupWindow string
Backups bool
Datacenter string
Id int
Image string
Ipv4Address string
Ipv6Address string
Ipv6Network string
Iso string
Labels map[string]interface{}
Location string
Name string
Rescue string
ServerType string
Status string
Selector string

Deprecated: Please use the with_selector property instead.

WithSelector string
WithStatuses []string
backupWindow string
backups boolean
datacenter string
id number
image string
ipv4Address string
ipv6Address string
ipv6Network string
iso string
labels {[key: string]: any}
location string
name string
rescue string
serverType string
status string
selector string

Deprecated: Please use the with_selector property instead.

withSelector string
withStatuses string[]
backup_window str
backups bool
datacenter str
id float
image str
ipv4_address str
ipv6_address str
ipv6_network str
iso str
labels Dict[str, Any]
location str
name str
rescue str
server_type str
status str
selector str

Deprecated: Please use the with_selector property instead.

with_selector str
with_statuses List[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.