Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

getDedicatedServer

Use this data source to retrieve information about a dedicated server associated with your OVH Account.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var server = Ovh.GetDedicatedServer.Invoke(new()
    {
        ServiceName = "XXXXXX",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.GetDedicatedServer(ctx, &GetDedicatedServerArgs{
			ServiceName: "XXXXXX",
		}, 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.ovh.OvhFunctions;
import com.pulumi.ovh.inputs.GetDedicatedServerArgs;
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 server = OvhFunctions.getDedicatedServer(GetDedicatedServerArgs.builder()
            .serviceName("XXXXXX")
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

server = ovh.get_dedicated_server(service_name="XXXXXX")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const server = pulumi.output(ovh.getDedicatedServer({
    serviceName: "XXXXXX",
}));
variables:
  server:
    Fn::Invoke:
      Function: ovh:getDedicatedServer
      Arguments:
        serviceName: XXXXXX

Using getDedicatedServer

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 getDedicatedServer(args: GetDedicatedServerArgs, opts?: InvokeOptions): Promise<GetDedicatedServerResult>
function getDedicatedServerOutput(args: GetDedicatedServerOutputArgs, opts?: InvokeOptions): Output<GetDedicatedServerResult>
def get_dedicated_server(service_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDedicatedServerResult
def get_dedicated_server_output(service_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedServerResult]
func GetDedicatedServer(ctx *Context, args *GetDedicatedServerArgs, opts ...InvokeOption) (*GetDedicatedServerResult, error)
func GetDedicatedServerOutput(ctx *Context, args *GetDedicatedServerOutputArgs, opts ...InvokeOption) GetDedicatedServerResultOutput

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

public static class GetDedicatedServer 
{
    public static Task<GetDedicatedServerResult> InvokeAsync(GetDedicatedServerArgs args, InvokeOptions? opts = null)
    public static Output<GetDedicatedServerResult> Invoke(GetDedicatedServerInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDedicatedServerResult> getDedicatedServer(GetDedicatedServerArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: ovh:index/getDedicatedServer:getDedicatedServer
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ServiceName string

The service_name of your dedicated server.

ServiceName string

The service_name of your dedicated server.

serviceName String

The service_name of your dedicated server.

serviceName string

The service_name of your dedicated server.

service_name str

The service_name of your dedicated server.

serviceName String

The service_name of your dedicated server.

getDedicatedServer Result

The following output properties are available:

BootId int

boot id of the server

CommercialRange string

dedicater server commercial range

Datacenter string

dedicated datacenter localisation (bhs1,bhs2,...)

EnabledPublicVnis List<string>

List of enabled public VNI uuids

EnabledVrackAggregationVnis List<string>

List of enabled vrack_aggregation VNI uuids

EnabledVrackVnis List<string>

List of enabled vrack VNI uuids

Id string

The provider-assigned unique ID for this managed resource.

Ip string

dedicated server ip (IPv4)

Ips List<string>

dedicated server ip blocks

LinkSpeed int

link speed of the server

Monitoring bool

Icmp monitoring state

Name string

User defined VirtualNetworkInterface name

Os string

Operating system

ProfessionalUse bool

Does this server have professional use option

Rack string

rack id of the server

RescueMail string

rescue mail of the server

Reverse string

dedicated server reverse

RootDevice string

root device of the server

ServerId int

your server id

ServiceName string
State string

error, hacked, hackedBlocked, ok

SupportLevel string

Dedicated server support level (critical, fastpath, gs, pro)

Vnis List<Lbrlabs.PulumiPackage.Ovh.Outputs.GetDedicatedServerVni>

the list of Virtualnetworkinterface assiociated with this server

BootId int

boot id of the server

CommercialRange string

dedicater server commercial range

Datacenter string

dedicated datacenter localisation (bhs1,bhs2,...)

EnabledPublicVnis []string

List of enabled public VNI uuids

EnabledVrackAggregationVnis []string

List of enabled vrack_aggregation VNI uuids

EnabledVrackVnis []string

List of enabled vrack VNI uuids

Id string

The provider-assigned unique ID for this managed resource.

Ip string

dedicated server ip (IPv4)

Ips []string

dedicated server ip blocks

LinkSpeed int

link speed of the server

Monitoring bool

Icmp monitoring state

Name string

User defined VirtualNetworkInterface name

Os string

Operating system

ProfessionalUse bool

Does this server have professional use option

Rack string

rack id of the server

RescueMail string

rescue mail of the server

Reverse string

dedicated server reverse

RootDevice string

root device of the server

ServerId int

your server id

ServiceName string
State string

error, hacked, hackedBlocked, ok

SupportLevel string

Dedicated server support level (critical, fastpath, gs, pro)

Vnis []GetDedicatedServerVni

the list of Virtualnetworkinterface assiociated with this server

bootId Integer

boot id of the server

commercialRange String

dedicater server commercial range

datacenter String

dedicated datacenter localisation (bhs1,bhs2,...)

enabledPublicVnis List<String>

List of enabled public VNI uuids

enabledVrackAggregationVnis List<String>

List of enabled vrack_aggregation VNI uuids

enabledVrackVnis List<String>

List of enabled vrack VNI uuids

id String

The provider-assigned unique ID for this managed resource.

ip String

dedicated server ip (IPv4)

ips List<String>

dedicated server ip blocks

linkSpeed Integer

link speed of the server

monitoring Boolean

Icmp monitoring state

name String

User defined VirtualNetworkInterface name

os String

Operating system

professionalUse Boolean

Does this server have professional use option

rack String

rack id of the server

rescueMail String

rescue mail of the server

reverse String

dedicated server reverse

rootDevice String

root device of the server

serverId Integer

your server id

serviceName String
state String

error, hacked, hackedBlocked, ok

supportLevel String

Dedicated server support level (critical, fastpath, gs, pro)

vnis List<GetDedicatedServerVni>

the list of Virtualnetworkinterface assiociated with this server

bootId number

boot id of the server

commercialRange string

dedicater server commercial range

datacenter string

dedicated datacenter localisation (bhs1,bhs2,...)

enabledPublicVnis string[]

List of enabled public VNI uuids

enabledVrackAggregationVnis string[]

List of enabled vrack_aggregation VNI uuids

enabledVrackVnis string[]

List of enabled vrack VNI uuids

id string

The provider-assigned unique ID for this managed resource.

ip string

dedicated server ip (IPv4)

ips string[]

dedicated server ip blocks

linkSpeed number

link speed of the server

monitoring boolean

Icmp monitoring state

name string

User defined VirtualNetworkInterface name

os string

Operating system

professionalUse boolean

Does this server have professional use option

rack string

rack id of the server

rescueMail string

rescue mail of the server

reverse string

dedicated server reverse

rootDevice string

root device of the server

serverId number

your server id

serviceName string
state string

error, hacked, hackedBlocked, ok

supportLevel string

Dedicated server support level (critical, fastpath, gs, pro)

vnis GetDedicatedServerVni[]

the list of Virtualnetworkinterface assiociated with this server

boot_id int

boot id of the server

commercial_range str

dedicater server commercial range

datacenter str

dedicated datacenter localisation (bhs1,bhs2,...)

enabled_public_vnis Sequence[str]

List of enabled public VNI uuids

enabled_vrack_aggregation_vnis Sequence[str]

List of enabled vrack_aggregation VNI uuids

enabled_vrack_vnis Sequence[str]

List of enabled vrack VNI uuids

id str

The provider-assigned unique ID for this managed resource.

ip str

dedicated server ip (IPv4)

ips Sequence[str]

dedicated server ip blocks

link_speed int

link speed of the server

monitoring bool

Icmp monitoring state

name str

User defined VirtualNetworkInterface name

os str

Operating system

professional_use bool

Does this server have professional use option

rack str

rack id of the server

rescue_mail str

rescue mail of the server

reverse str

dedicated server reverse

root_device str

root device of the server

server_id int

your server id

service_name str
state str

error, hacked, hackedBlocked, ok

support_level str

Dedicated server support level (critical, fastpath, gs, pro)

vnis Sequence[GetDedicatedServerVni]

the list of Virtualnetworkinterface assiociated with this server

bootId Number

boot id of the server

commercialRange String

dedicater server commercial range

datacenter String

dedicated datacenter localisation (bhs1,bhs2,...)

enabledPublicVnis List<String>

List of enabled public VNI uuids

enabledVrackAggregationVnis List<String>

List of enabled vrack_aggregation VNI uuids

enabledVrackVnis List<String>

List of enabled vrack VNI uuids

id String

The provider-assigned unique ID for this managed resource.

ip String

dedicated server ip (IPv4)

ips List<String>

dedicated server ip blocks

linkSpeed Number

link speed of the server

monitoring Boolean

Icmp monitoring state

name String

User defined VirtualNetworkInterface name

os String

Operating system

professionalUse Boolean

Does this server have professional use option

rack String

rack id of the server

rescueMail String

rescue mail of the server

reverse String

dedicated server reverse

rootDevice String

root device of the server

serverId Number

your server id

serviceName String
state String

error, hacked, hackedBlocked, ok

supportLevel String

Dedicated server support level (critical, fastpath, gs, pro)

vnis List<Property Map>

the list of Virtualnetworkinterface assiociated with this server

Supporting Types

GetDedicatedServerVni

Enabled bool

VirtualNetworkInterface activation state

Mode string

VirtualNetworkInterface mode (public,vrack,vrack_aggregation)

Name string

User defined VirtualNetworkInterface name

Nics List<string>
ServerName string

Server bound to this VirtualNetworkInterface

Uuid string

VirtualNetworkInterface unique id

Vrack string

vRack name

Enabled bool

VirtualNetworkInterface activation state

Mode string

VirtualNetworkInterface mode (public,vrack,vrack_aggregation)

Name string

User defined VirtualNetworkInterface name

Nics []string
ServerName string

Server bound to this VirtualNetworkInterface

Uuid string

VirtualNetworkInterface unique id

Vrack string

vRack name

enabled Boolean

VirtualNetworkInterface activation state

mode String

VirtualNetworkInterface mode (public,vrack,vrack_aggregation)

name String

User defined VirtualNetworkInterface name

nics List<String>
serverName String

Server bound to this VirtualNetworkInterface

uuid String

VirtualNetworkInterface unique id

vrack String

vRack name

enabled boolean

VirtualNetworkInterface activation state

mode string

VirtualNetworkInterface mode (public,vrack,vrack_aggregation)

name string

User defined VirtualNetworkInterface name

nics string[]
serverName string

Server bound to this VirtualNetworkInterface

uuid string

VirtualNetworkInterface unique id

vrack string

vRack name

enabled bool

VirtualNetworkInterface activation state

mode str

VirtualNetworkInterface mode (public,vrack,vrack_aggregation)

name str

User defined VirtualNetworkInterface name

nics Sequence[str]
server_name str

Server bound to this VirtualNetworkInterface

uuid str

VirtualNetworkInterface unique id

vrack str

vRack name

enabled Boolean

VirtualNetworkInterface activation state

mode String

VirtualNetworkInterface mode (public,vrack,vrack_aggregation)

name String

User defined VirtualNetworkInterface name

nics List<String>
serverName String

Server bound to this VirtualNetworkInterface

uuid String

VirtualNetworkInterface unique id

vrack String

vRack name

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.