1. Packages
  2. OVH
  3. API Docs
  4. getServer
OVHCloud v0.40.1 published on Tuesday, Mar 26, 2024 by OVHcloud

ovh.getServer

Explore with Pulumi AI

ovh logo
OVHCloud v0.40.1 published on Tuesday, Mar 26, 2024 by OVHcloud

    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:

    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.

    getServer Result

    The following output properties are available:

    BootId int
    Boot id of the server
    BootScript string
    Boot script of the server
    CommercialRange string
    Dedicated server commercial range
    Datacenter string
    Dedicated datacenter localisation (bhs1,bhs2,...)
    DisplayName string
    Dedicated server display name
    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
    Server id
    ServerURN string
    URN of the dedicated server instance
    ServiceName string
    State string
    Error, hacked, hackedBlocked, ok
    SupportLevel string
    Dedicated server support level (critical, fastpath, gs, pro)
    Vnis List<GetServerVni>
    The list of Virtualnetworkinterface associated with this server
    BootId int
    Boot id of the server
    BootScript string
    Boot script of the server
    CommercialRange string
    Dedicated server commercial range
    Datacenter string
    Dedicated datacenter localisation (bhs1,bhs2,...)
    DisplayName string
    Dedicated server display name
    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
    Server id
    ServerURN string
    URN of the dedicated server instance
    ServiceName string
    State string
    Error, hacked, hackedBlocked, ok
    SupportLevel string
    Dedicated server support level (critical, fastpath, gs, pro)
    Vnis []GetServerVni
    The list of Virtualnetworkinterface associated with this server
    ServerURN String
    URN of the dedicated server instance
    bootId Integer
    Boot id of the server
    bootScript String
    Boot script of the server
    commercialRange String
    Dedicated server commercial range
    datacenter String
    Dedicated datacenter localisation (bhs1,bhs2,...)
    displayName String
    Dedicated server display name
    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
    Server id
    serviceName String
    state String
    Error, hacked, hackedBlocked, ok
    supportLevel String
    Dedicated server support level (critical, fastpath, gs, pro)
    vnis List<GetServerVni>
    The list of Virtualnetworkinterface associated with this server
    ServerURN string
    URN of the dedicated server instance
    bootId number
    Boot id of the server
    bootScript string
    Boot script of the server
    commercialRange string
    Dedicated server commercial range
    datacenter string
    Dedicated datacenter localisation (bhs1,bhs2,...)
    displayName string
    Dedicated server display name
    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
    Server id
    serviceName string
    state string
    Error, hacked, hackedBlocked, ok
    supportLevel string
    Dedicated server support level (critical, fastpath, gs, pro)
    vnis GetServerVni[]
    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_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
    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[GetServerVni]
    The list of Virtualnetworkinterface associated with this server
    ServerURN String
    URN of the dedicated server instance
    bootId Number
    Boot id of the server
    bootScript String
    Boot script of the server
    commercialRange String
    Dedicated server commercial range
    datacenter String
    Dedicated datacenter localisation (bhs1,bhs2,...)
    displayName String
    Dedicated server display name
    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
    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 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
    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
    NetworkInterfaceControllers bound to this VirtualNetworkInterface
    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>
    NetworkInterfaceControllers bound to this VirtualNetworkInterface
    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[]
    NetworkInterfaceControllers bound to this VirtualNetworkInterface
    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]
    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
    serverName 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.
    ovh logo
    OVHCloud v0.40.1 published on Tuesday, Mar 26, 2024 by OVHcloud