Viewing docs for UpCloud v0.17.0
published on Wednesday, Jul 29, 2026 by UpCloudLtd
published on Wednesday, Jul 29, 2026 by UpCloudLtd
Viewing docs for UpCloud v0.17.0
published on Wednesday, Jul 29, 2026 by UpCloudLtd
published on Wednesday, Jul 29, 2026 by UpCloudLtd
Provides details about an existing UpCloud cloud server by UUID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as upcloud from "@upcloud/pulumi-upcloud";
const _this = upcloud.getServer({
id: "00f60089-7bb0-4e19-9481-fbb1cb4378ab",
});
import pulumi
import pulumi_upcloud as upcloud
this = upcloud.get_server(id="00f60089-7bb0-4e19-9481-fbb1cb4378ab")
package main
import (
"github.com/UpCloudLtd/pulumi-upcloud/sdk/go/upcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := upcloud.LookupServer(ctx, &upcloud.LookupServerArgs{
Id: "00f60089-7bb0-4e19-9481-fbb1cb4378ab",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using UpCloud = UpCloud.Pulumi.UpCloud;
return await Deployment.RunAsync(() =>
{
var @this = UpCloud.GetServer.Invoke(new()
{
Id = "00f60089-7bb0-4e19-9481-fbb1cb4378ab",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.upcloud.UpcloudFunctions;
import com.pulumi.upcloud.inputs.GetServerArgs;
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) {
final var this = UpcloudFunctions.getServer(GetServerArgs.builder()
.id("00f60089-7bb0-4e19-9481-fbb1cb4378ab")
.build());
}
}
variables:
this:
fn::invoke:
function: upcloud:getServer
arguments:
id: 00f60089-7bb0-4e19-9481-fbb1cb4378ab
Example coming soon!
Using getServer
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getServer(args: GetServerArgs, opts?: InvokeOptions): Promise<GetServerResult>
function getServerOutput(args: GetServerOutputArgs, opts?: InvokeOptions): Output<GetServerResult>def get_server(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServerResult
def get_server_output(id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServerResult]func LookupServer(ctx *Context, args *LookupServerArgs, opts ...InvokeOption) (*LookupServerResult, error)
func LookupServerOutput(ctx *Context, args *LookupServerOutputArgs, opts ...InvokeOption) LookupServerResultOutput> Note: This function is named LookupServer in the Go SDK.
public static class GetServer
{
public static Task<GetServerResult> InvokeAsync(GetServerArgs args, InvokeOptions? opts = null)
public static Output<GetServerResult> Invoke(GetServerInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServerResult> getServer(GetServerArgs args, InvokeOptions options)
public static Output<GetServerResult> getServer(GetServerArgs args, InvokeOptions options)
fn::invoke:
function: upcloud:index/getServer:getServer
arguments:
# arguments dictionarydata "upcloud_get_server" "name" {
# arguments
}The following arguments are supported:
- Id string
- Id string
- id string
- id String
- id string
- id str
- id String
getServer Result
The following output properties are available:
- Boot
Order string - Cpu int
- Firewall bool
- Host int
- Hostname string
- Id string
- Labels Dictionary<string, string>
- Mem int
- Metadata bool
- Network
Interfaces List<UpCloud. Pulumi. Up Cloud. Outputs. Get Server Network Interface> - Nic
Model string - Plan string
- Server
Group string - State string
- List<string>
- Timezone string
- Title string
- Video
Model string - Zone string
- Boot
Order string - Cpu int
- Firewall bool
- Host int
- Hostname string
- Id string
- Labels map[string]string
- Mem int
- Metadata bool
- Network
Interfaces []GetServer Network Interface - Nic
Model string - Plan string
- Server
Group string - State string
- []string
- Timezone string
- Title string
- Video
Model string - Zone string
- boot_
order string - cpu number
- firewall bool
- host number
- hostname string
- id string
- labels map(string)
- mem number
- metadata bool
- network_
interfaces list(object) - nic_
model string - plan string
- server_
group string - state string
- list(string)
- timezone string
- title string
- video_
model string - zone string
- boot
Order String - cpu Integer
- firewall Boolean
- host Integer
- hostname String
- id String
- labels Map<String,String>
- mem Integer
- metadata Boolean
- network
Interfaces List<GetServer Network Interface> - nic
Model String - plan String
- server
Group String - state String
- List<String>
- timezone String
- title String
- video
Model String - zone String
- boot
Order string - cpu number
- firewall boolean
- host number
- hostname string
- id string
- labels {[key: string]: string}
- mem number
- metadata boolean
- network
Interfaces GetServer Network Interface[] - nic
Model string - plan string
- server
Group string - state string
- string[]
- timezone string
- title string
- video
Model string - zone string
- boot_
order str - cpu int
- firewall bool
- host int
- hostname str
- id str
- labels Mapping[str, str]
- mem int
- metadata bool
- network_
interfaces Sequence[GetServer Network Interface] - nic_
model str - plan str
- server_
group str - state str
- Sequence[str]
- timezone str
- title str
- video_
model str - zone str
- boot
Order String - cpu Number
- firewall Boolean
- host Number
- hostname String
- id String
- labels Map<String>
- mem Number
- metadata Boolean
- network
Interfaces List<Property Map> - nic
Model String - plan String
- server
Group String - state String
- List<String>
- timezone String
- title String
- video
Model String - zone String
Supporting Types
GetServerNetworkInterface
- Additional
Ip List<UpAddresses Cloud. Pulumi. Up Cloud. Inputs. Get Server Network Interface Additional Ip Address> - Additional IP addresses for this interface. Only available for private network interfaces.
- Bootable bool
trueindicates that the server can boot from this interface.- 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 (
IPv4orIPv6). - Ip
Address boolFloating trueindicates 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 the interface is attached to.
- Source
Ip boolFiltering trueindicates that source IP filtering is enabled for this interface.- Type string
- The type of the network interface (
public,private, orutility).
- Additional
Ip []GetAddresses Server Network Interface Additional Ip Address - Additional IP addresses for this interface. Only available for private network interfaces.
- Bootable bool
trueindicates that the server can boot from this interface.- 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 (
IPv4orIPv6). - Ip
Address boolFloating trueindicates 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 the interface is attached to.
- Source
Ip boolFiltering trueindicates that source IP filtering is enabled for this interface.- Type string
- The type of the network interface (
public,private, orutility).
- additional_
ip_ list(object)addresses - Additional IP addresses for this interface. Only available for private network interfaces.
- bootable bool
trueindicates that the server can boot from this interface.- 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 (
IPv4orIPv6). - ip_
address_ boolfloating trueindicates 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 the interface is attached to.
- source_
ip_ boolfiltering trueindicates that source IP filtering is enabled for this interface.- type string
- The type of the network interface (
public,private, orutility).
- additional
Ip List<GetAddresses Server Network Interface Additional Ip Address> - Additional IP addresses for this interface. Only available for private network interfaces.
- bootable Boolean
trueindicates that the server can boot from this interface.- 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 (
IPv4orIPv6). - ip
Address BooleanFloating trueindicates 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 the interface is attached to.
- source
Ip BooleanFiltering trueindicates that source IP filtering is enabled for this interface.- type String
- The type of the network interface (
public,private, orutility).
- additional
Ip GetAddresses Server Network Interface Additional Ip Address[] - Additional IP addresses for this interface. Only available for private network interfaces.
- bootable boolean
trueindicates that the server can boot from this interface.- 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 (
IPv4orIPv6). - ip
Address booleanFloating trueindicates 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 the interface is attached to.
- source
Ip booleanFiltering trueindicates that source IP filtering is enabled for this interface.- type string
- The type of the network interface (
public,private, orutility).
- additional_
ip_ Sequence[Getaddresses Server Network Interface Additional Ip Address] - Additional IP addresses for this interface. Only available for private network interfaces.
- bootable bool
trueindicates that the server can boot from this interface.- 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 (
IPv4orIPv6). - ip_
address_ boolfloating trueindicates 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 the interface is attached to.
- source_
ip_ boolfiltering trueindicates that source IP filtering is enabled for this interface.- type str
- The type of the network interface (
public,private, orutility).
- additional
Ip List<Property Map>Addresses - Additional IP addresses for this interface. Only available for private network interfaces.
- bootable Boolean
trueindicates that the server can boot from this interface.- 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 (
IPv4orIPv6). - ip
Address BooleanFloating trueindicates 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 the interface is attached to.
- source
Ip BooleanFiltering trueindicates that source IP filtering is enabled for this interface.- type String
- The type of the network interface (
public,private, orutility).
GetServerNetworkInterfaceAdditionalIpAddress
- Ip
Address string - An additional IP address for this interface.
- Ip
Address stringFamily - The type of the additional IP address (
IPv4orIPv6). - Ip
Address boolFloating trueindicates 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 (
IPv4orIPv6). - Ip
Address boolFloating trueindicates 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 (
IPv4orIPv6). - ip_
address_ boolfloating trueindicates 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 (
IPv4orIPv6). - ip
Address BooleanFloating trueindicates 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 (
IPv4orIPv6). - ip
Address booleanFloating trueindicates 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 (
IPv4orIPv6). - ip_
address_ boolfloating trueindicates 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 (
IPv4orIPv6). - ip
Address BooleanFloating trueindicates that the additional IP address is a floating IP address.
Package Details
- Repository
- upcloud UpCloudLtd/pulumi-upcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
upcloudTerraform Provider.
Viewing docs for UpCloud v0.17.0
published on Wednesday, Jul 29, 2026 by UpCloudLtd
published on Wednesday, Jul 29, 2026 by UpCloudLtd