OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud
ovh.getServer
Explore with Pulumi AI
Use this data source to retrieve information about a dedicated server associated with your OVHcloud Account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const server = ovh.getServer({
serviceName: "XXXXXX",
});
import pulumi
import pulumi_ovh as ovh
server = ovh.get_server(service_name="XXXXXX")
package main
import (
"github.com/ovh/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
})
}
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 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());
}
}
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
- Boot
Script string - Boot script of the server
- Commercial
Range string - Dedicated server commercial range
- Datacenter string
- Dedicated datacenter localisation (bhs1,bhs2,...)
- Display
Name string - Dedicated server display name
- 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 - Server id
- Server
URN string - URN of the dedicated server instance
- 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 associated with this server
- Boot
Id int - Boot id of the server
- Boot
Script string - Boot script of the server
- Commercial
Range string - Dedicated server commercial range
- Datacenter string
- Dedicated datacenter localisation (bhs1,bhs2,...)
- Display
Name string - Dedicated server display name
- 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 - Server id
- Server
URN string - URN of the dedicated server instance
- 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 associated with this server
- Server
URN String - URN of the dedicated server instance
- boot
Id Integer - Boot id of the server
- boot
Script String - Boot script of the server
- commercial
Range String - Dedicated server commercial range
- datacenter String
- Dedicated datacenter localisation (bhs1,bhs2,...)
- display
Name String - Dedicated server display name
- 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 - 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 associated with this server
- Server
URN string - URN of the dedicated server instance
- boot
Id number - Boot id of the server
- boot
Script string - Boot script of the server
- commercial
Range string - Dedicated server commercial range
- datacenter string
- Dedicated datacenter localisation (bhs1,bhs2,...)
- display
Name string - Dedicated server display name
- 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 - 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 associated with this server
- boot_
id int - Boot id of the server
- boot_
script str - Boot script of the server
- commercial_
range str - Dedicated server commercial range
- datacenter str
- Dedicated datacenter localisation (bhs1,bhs2,...)
- display_
name str - Dedicated server display name
- 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 - Server id
- server_
urn str - URN of the dedicated server instance
- 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 associated with this server
- Server
URN String - URN of the dedicated server instance
- boot
Id Number - Boot id of the server
- boot
Script String - Boot script of the server
- commercial
Range String - Dedicated server commercial range
- datacenter String
- Dedicated datacenter localisation (bhs1,bhs2,...)
- display
Name String - Dedicated server display name
- 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 - 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 associated 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>
- NetworkInterfaceControllers bound to this VirtualNetworkInterface
- 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
- NetworkInterfaceControllers bound to this VirtualNetworkInterface
- 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>
- NetworkInterfaceControllers bound to this VirtualNetworkInterface
- 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[]
- NetworkInterfaceControllers bound to this VirtualNetworkInterface
- 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]
- NetworkInterfaceControllers bound to this VirtualNetworkInterface
- 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>
- NetworkInterfaceControllers bound to this VirtualNetworkInterface
- server
Name String - Server bound to this VirtualNetworkInterface
- uuid String
- VirtualNetworkInterface unique id
- vrack String
- vRack name
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.