scaleway.getBaremetalServer

Gets information about a baremetal server. For more information, see the documentation.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Scaleway = Pulumi.Scaleway;

return await Deployment.RunAsync(() => 
{
    var byName = Scaleway.GetBaremetalServer.Invoke(new()
    {
        Name = "foobar",
        Zone = "fr-par-2",
    });

    var byId = Scaleway.GetBaremetalServer.Invoke(new()
    {
        ServerId = "11111111-1111-1111-1111-111111111111",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scaleway.LookupBaremetalServer(ctx, &scaleway.LookupBaremetalServerArgs{
			Name: pulumi.StringRef("foobar"),
			Zone: pulumi.StringRef("fr-par-2"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = scaleway.LookupBaremetalServer(ctx, &scaleway.LookupBaremetalServerArgs{
			ServerId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.inputs.GetBaremetalServerArgs;
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 byName = ScalewayFunctions.getBaremetalServer(GetBaremetalServerArgs.builder()
            .name("foobar")
            .zone("fr-par-2")
            .build());

        final var byId = ScalewayFunctions.getBaremetalServer(GetBaremetalServerArgs.builder()
            .serverId("11111111-1111-1111-1111-111111111111")
            .build());

    }
}
import pulumi
import pulumi_scaleway as scaleway

by_name = scaleway.get_baremetal_server(name="foobar",
    zone="fr-par-2")
by_id = scaleway.get_baremetal_server(server_id="11111111-1111-1111-1111-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

const byName = scaleway.getBaremetalServer({
    name: "foobar",
    zone: "fr-par-2",
});
const byId = scaleway.getBaremetalServer({
    serverId: "11111111-1111-1111-1111-111111111111",
});
variables:
  byName:
    fn::invoke:
      Function: scaleway:getBaremetalServer
      Arguments:
        name: foobar
        zone: fr-par-2
  byId:
    fn::invoke:
      Function: scaleway:getBaremetalServer
      Arguments:
        serverId: 11111111-1111-1111-1111-111111111111

Using getBaremetalServer

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 getBaremetalServer(args: GetBaremetalServerArgs, opts?: InvokeOptions): Promise<GetBaremetalServerResult>
function getBaremetalServerOutput(args: GetBaremetalServerOutputArgs, opts?: InvokeOptions): Output<GetBaremetalServerResult>
def get_baremetal_server(name: Optional[str] = None,
                         server_id: Optional[str] = None,
                         zone: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetBaremetalServerResult
def get_baremetal_server_output(name: Optional[pulumi.Input[str]] = None,
                         server_id: Optional[pulumi.Input[str]] = None,
                         zone: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetBaremetalServerResult]
func LookupBaremetalServer(ctx *Context, args *LookupBaremetalServerArgs, opts ...InvokeOption) (*LookupBaremetalServerResult, error)
func LookupBaremetalServerOutput(ctx *Context, args *LookupBaremetalServerOutputArgs, opts ...InvokeOption) LookupBaremetalServerResultOutput

> Note: This function is named LookupBaremetalServer in the Go SDK.

public static class GetBaremetalServer 
{
    public static Task<GetBaremetalServerResult> InvokeAsync(GetBaremetalServerArgs args, InvokeOptions? opts = null)
    public static Output<GetBaremetalServerResult> Invoke(GetBaremetalServerInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBaremetalServerResult> getBaremetalServer(GetBaremetalServerArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: scaleway:index/getBaremetalServer:getBaremetalServer
  arguments:
    # arguments dictionary

The following arguments are supported:

Name string

The server name. Only one of name and server_id should be specified.

ServerId string
Zone string

zone) The zone in which the server exists.

Name string

The server name. Only one of name and server_id should be specified.

ServerId string
Zone string

zone) The zone in which the server exists.

name String

The server name. Only one of name and server_id should be specified.

serverId String
zone String

zone) The zone in which the server exists.

name string

The server name. Only one of name and server_id should be specified.

serverId string
zone string

zone) The zone in which the server exists.

name str

The server name. Only one of name and server_id should be specified.

server_id str
zone str

zone) The zone in which the server exists.

name String

The server name. Only one of name and server_id should be specified.

serverId String
zone String

zone) The zone in which the server exists.

getBaremetalServer Result

The following output properties are available:

Description string
Domain string
Hostname string
Id string

The provider-assigned unique ID for this managed resource.

Ips []GetBaremetalServerIp
Offer string
OfferId string
Options []GetBaremetalServerOption
OrganizationId string
Os string
OsId string
Password string
PrivateNetworks []GetBaremetalServerPrivateNetwork
ProjectId string
ReinstallOnConfigChanges bool
ServicePassword string
ServiceUser string
SshKeyIds []string
Tags []string
User string
Name string
ServerId string
Zone string
description String
domain String
hostname String
id String

The provider-assigned unique ID for this managed resource.

ips List<GetBaremetalServerIp>
offer String
offerId String
options List<GetBaremetalServerOption>
organizationId String
os String
osId String
password String
privateNetworks List<GetBaremetalServerPrivateNetwork>
projectId String
reinstallOnConfigChanges Boolean
servicePassword String
serviceUser String
sshKeyIds List<String>
tags List<String>
user String
name String
serverId String
zone String
description string
domain string
hostname string
id string

The provider-assigned unique ID for this managed resource.

ips GetBaremetalServerIp[]
offer string
offerId string
options GetBaremetalServerOption[]
organizationId string
os string
osId string
password string
privateNetworks GetBaremetalServerPrivateNetwork[]
projectId string
reinstallOnConfigChanges boolean
servicePassword string
serviceUser string
sshKeyIds string[]
tags string[]
user string
name string
serverId string
zone string
description String
domain String
hostname String
id String

The provider-assigned unique ID for this managed resource.

ips List<Property Map>
offer String
offerId String
options List<Property Map>
organizationId String
os String
osId String
password String
privateNetworks List<Property Map>
projectId String
reinstallOnConfigChanges Boolean
servicePassword String
serviceUser String
sshKeyIds List<String>
tags List<String>
user String
name String
serverId String
zone String

Supporting Types

GetBaremetalServerIp

Address string
Id string
Reverse string
Version string
Address string
Id string
Reverse string
Version string
address String
id String
reverse String
version String
address string
id string
reverse string
version string
address str
id str
reverse str
version str
address String
id String
reverse String
version String

GetBaremetalServerOption

ExpiresAt string
Id string
Name string

The server name. Only one of name and server_id should be specified.

ExpiresAt string
Id string
Name string

The server name. Only one of name and server_id should be specified.

expiresAt String
id String
name String

The server name. Only one of name and server_id should be specified.

expiresAt string
id string
name string

The server name. Only one of name and server_id should be specified.

expires_at str
id str
name str

The server name. Only one of name and server_id should be specified.

expiresAt String
id String
name String

The server name. Only one of name and server_id should be specified.

GetBaremetalServerPrivateNetwork

CreatedAt string
Id string
Status string
UpdatedAt string
Vlan int
CreatedAt string
Id string
Status string
UpdatedAt string
Vlan int
createdAt String
id String
status String
updatedAt String
vlan Integer
createdAt string
id string
status string
updatedAt string
vlan number
createdAt String
id String
status String
updatedAt String
vlan Number

Package Details

Repository
scaleway lbrlabs/pulumi-scaleway
License
Apache-2.0
Notes

This Pulumi package is based on the scaleway Terraform Provider.