OVH v0.29.0, Apr 5 23
OVH v0.29.0, Apr 5 23
ovh.getServer
Explore with Pulumi AI
Use this data source to retrieve information about a dedicated server associated with your OVHcloud Account.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var server = Ovh.GetServer.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.GetServer(ctx, &ovh.GetServerArgs{
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.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 server = OvhFunctions.getServer(GetServerArgs.builder()
.serviceName("XXXXXX")
.build());
}
}
import pulumi
import pulumi_ovh as ovh
server = ovh.get_server(service_name="XXXXXX")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const server = ovh.getServer({
serviceName: "XXXXXX",
});
variables:
server:
fn::invoke:
Function: ovh:getServer
Arguments:
serviceName: XXXXXX
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(service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServerResult
def get_server_output(service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServerResult]
func GetServer(ctx *Context, args *GetServerArgs, opts ...InvokeOption) (*GetServerResult, error)
func GetServerOutput(ctx *Context, args *GetServerOutputArgs, opts ...InvokeOption) GetServerResultOutput
> Note: This function is named GetServer
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:index/getServer:getServer
arguments:
# arguments dictionary
The following arguments are supported:
- Service
Name string The service_name of your dedicated server.
- Service
Name string The service_name of your dedicated server.
- service
Name String The service_name of your dedicated server.
- service
Name string The service_name of your dedicated server.
- service_
name str The service_name of your dedicated server.
- service
Name String The service_name of your dedicated server.
getServer Result
The following output properties are available:
- Boot
Id int boot id of the server
- Commercial
Range string dedicater server commercial range
- Datacenter string
dedicated datacenter localisation (bhs1,bhs2,...)
- Enabled
Public List<string>Vnis List of enabled public VNI uuids
- Enabled
Vrack List<string>Aggregation Vnis List of enabled vrack_aggregation VNI uuids
- Enabled
Vrack List<string>Vnis 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
- Link
Speed int link speed of the server
- Monitoring bool
Icmp monitoring state
- Name string
User defined VirtualNetworkInterface name
- Os string
Operating system
- Professional
Use bool Does this server have professional use option
- Rack string
rack id of the server
- Rescue
Mail string rescue mail of the server
- Reverse string
dedicated server reverse
- Root
Device string root device of the server
- Server
Id int your server id
- Service
Name string - State string
error, hacked, hackedBlocked, ok
- Support
Level string Dedicated server support level (critical, fastpath, gs, pro)
- Vnis
List<Lbrlabs.
Pulumi Package. Ovh. Outputs. Get Server Vni> the list of Virtualnetworkinterface assiociated with this server
- Boot
Id int boot id of the server
- Commercial
Range string dedicater server commercial range
- Datacenter string
dedicated datacenter localisation (bhs1,bhs2,...)
- Enabled
Public []stringVnis List of enabled public VNI uuids
- Enabled
Vrack []stringAggregation Vnis List of enabled vrack_aggregation VNI uuids
- Enabled
Vrack []stringVnis 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
- Link
Speed int link speed of the server
- Monitoring bool
Icmp monitoring state
- Name string
User defined VirtualNetworkInterface name
- Os string
Operating system
- Professional
Use bool Does this server have professional use option
- Rack string
rack id of the server
- Rescue
Mail string rescue mail of the server
- Reverse string
dedicated server reverse
- Root
Device string root device of the server
- Server
Id int your server id
- Service
Name string - State string
error, hacked, hackedBlocked, ok
- Support
Level string Dedicated server support level (critical, fastpath, gs, pro)
- Vnis
[]Get
Server Vni the list of Virtualnetworkinterface assiociated with this server
- boot
Id Integer boot id of the server
- commercial
Range String dedicater server commercial range
- datacenter String
dedicated datacenter localisation (bhs1,bhs2,...)
- enabled
Public List<String>Vnis List of enabled public VNI uuids
- enabled
Vrack List<String>Aggregation Vnis List of enabled vrack_aggregation VNI uuids
- enabled
Vrack List<String>Vnis 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
- link
Speed Integer link speed of the server
- monitoring Boolean
Icmp monitoring state
- name String
User defined VirtualNetworkInterface name
- os String
Operating system
- professional
Use Boolean Does this server have professional use option
- rack String
rack id of the server
- rescue
Mail String rescue mail of the server
- reverse String
dedicated server reverse
- root
Device String root device of the server
- server
Id Integer your server id
- service
Name String - state String
error, hacked, hackedBlocked, ok
- support
Level String Dedicated server support level (critical, fastpath, gs, pro)
- vnis
List<Get
Server Vni> the list of Virtualnetworkinterface assiociated with this server
- boot
Id number boot id of the server
- commercial
Range string dedicater server commercial range
- datacenter string
dedicated datacenter localisation (bhs1,bhs2,...)
- enabled
Public string[]Vnis List of enabled public VNI uuids
- enabled
Vrack string[]Aggregation Vnis List of enabled vrack_aggregation VNI uuids
- enabled
Vrack string[]Vnis 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
- link
Speed number link speed of the server
- monitoring boolean
Icmp monitoring state
- name string
User defined VirtualNetworkInterface name
- os string
Operating system
- professional
Use boolean Does this server have professional use option
- rack string
rack id of the server
- rescue
Mail string rescue mail of the server
- reverse string
dedicated server reverse
- root
Device string root device of the server
- server
Id number your server id
- service
Name string - state string
error, hacked, hackedBlocked, ok
- support
Level string Dedicated server support level (critical, fastpath, gs, pro)
- vnis
Get
Server Vni[] 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_ Sequence[str]vnis List of enabled public VNI uuids
- enabled_
vrack_ Sequence[str]aggregation_ vnis List of enabled vrack_aggregation VNI uuids
- enabled_
vrack_ Sequence[str]vnis 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[Get
Server Vni] the list of Virtualnetworkinterface assiociated with this server
- boot
Id Number boot id of the server
- commercial
Range String dedicater server commercial range
- datacenter String
dedicated datacenter localisation (bhs1,bhs2,...)
- enabled
Public List<String>Vnis List of enabled public VNI uuids
- enabled
Vrack List<String>Aggregation Vnis List of enabled vrack_aggregation VNI uuids
- enabled
Vrack List<String>Vnis 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
- link
Speed Number link speed of the server
- monitoring Boolean
Icmp monitoring state
- name String
User defined VirtualNetworkInterface name
- os String
Operating system
- professional
Use Boolean Does this server have professional use option
- rack String
rack id of the server
- rescue
Mail String rescue mail of the server
- reverse String
dedicated server reverse
- root
Device String root device of the server
- server
Id Number your server id
- service
Name String - state String
error, hacked, hackedBlocked, ok
- support
Level String Dedicated server support level (critical, fastpath, gs, pro)
- vnis List<Property Map>
the list of Virtualnetworkinterface assiociated with this server
Supporting Types
GetServerVni
- Enabled bool
VirtualNetworkInterface activation state
- Mode string
VirtualNetworkInterface mode (public,vrack,vrack_aggregation)
- Name string
User defined VirtualNetworkInterface name
- Nics List<string>
- Server
Name 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
- Server
Name 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>
- server
Name 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[]
- server
Name 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>
- server
Name String Server bound to this VirtualNetworkInterface
- uuid String
VirtualNetworkInterface unique id
- vrack String
vRack name
Package Details
- Repository
- ovh lbrlabs/pulumi-ovh
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
ovh
Terraform Provider.