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

ovh.Vrack.DedicatedServer

Explore with Pulumi AI

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

    NOTE: The resource ovh.Vrack.DedicatedServer is DEPRECATED and will be removed in a future version. Use the resource ovh.Vrack.DedicatedServerInterface instead.

    Attach a dedicated server to a VRack.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const vds = new ovh.vrack.DedicatedServer("vds", {
        serverId: "67890",
        serviceName: "XXXX",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    vds = ovh.vrack.DedicatedServer("vds",
        server_id="67890",
        service_name="XXXX")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Vrack"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Vrack.NewDedicatedServer(ctx, "vds", &Vrack.DedicatedServerArgs{
    			ServerId:    pulumi.String("67890"),
    			ServiceName: pulumi.String("XXXX"),
    		})
    		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 vds = new Ovh.Vrack.DedicatedServer("vds", new()
        {
            ServerId = "67890",
            ServiceName = "XXXX",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Vrack.DedicatedServer;
    import com.pulumi.ovh.Vrack.DedicatedServerArgs;
    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) {
            var vds = new DedicatedServer("vds", DedicatedServerArgs.builder()        
                .serverId("67890")
                .serviceName("XXXX")
                .build());
    
        }
    }
    
    resources:
      vds:
        type: ovh:Vrack:DedicatedServer
        properties:
          serverId: '67890'
          serviceName: XXXX
    

    Create DedicatedServer Resource

    new DedicatedServer(name: string, args: DedicatedServerArgs, opts?: CustomResourceOptions);
    @overload
    def DedicatedServer(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        server_id: Optional[str] = None,
                        service_name: Optional[str] = None)
    @overload
    def DedicatedServer(resource_name: str,
                        args: DedicatedServerArgs,
                        opts: Optional[ResourceOptions] = None)
    func NewDedicatedServer(ctx *Context, name string, args DedicatedServerArgs, opts ...ResourceOption) (*DedicatedServer, error)
    public DedicatedServer(string name, DedicatedServerArgs args, CustomResourceOptions? opts = null)
    public DedicatedServer(String name, DedicatedServerArgs args)
    public DedicatedServer(String name, DedicatedServerArgs args, CustomResourceOptions options)
    
    type: ovh:Vrack:DedicatedServer
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args DedicatedServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DedicatedServerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DedicatedServerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DedicatedServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DedicatedServerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DedicatedServer Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The DedicatedServer resource accepts the following input properties:

    ServerId string
    The id of the dedicated server.
    ServiceName string
    The service name of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.
    ServerId string
    The id of the dedicated server.
    ServiceName string
    The service name of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.
    serverId String
    The id of the dedicated server.
    serviceName String
    The service name of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.
    serverId string
    The id of the dedicated server.
    serviceName string
    The service name of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.
    server_id str
    The id of the dedicated server.
    service_name str
    The service name of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.
    serverId String
    The id of the dedicated server.
    serviceName String
    The service name of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DedicatedServer resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DedicatedServer Resource

    Get an existing DedicatedServer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DedicatedServerState, opts?: CustomResourceOptions): DedicatedServer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            server_id: Optional[str] = None,
            service_name: Optional[str] = None) -> DedicatedServer
    func GetDedicatedServer(ctx *Context, name string, id IDInput, state *DedicatedServerState, opts ...ResourceOption) (*DedicatedServer, error)
    public static DedicatedServer Get(string name, Input<string> id, DedicatedServerState? state, CustomResourceOptions? opts = null)
    public static DedicatedServer get(String name, Output<String> id, DedicatedServerState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ServerId string
    The id of the dedicated server.
    ServiceName string
    The service name of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.
    ServerId string
    The id of the dedicated server.
    ServiceName string
    The service name of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.
    serverId String
    The id of the dedicated server.
    serviceName String
    The service name of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.
    serverId string
    The id of the dedicated server.
    serviceName string
    The service name of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.
    server_id str
    The id of the dedicated server.
    service_name str
    The service name of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.
    serverId String
    The id of the dedicated server.
    serviceName String
    The service name of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

    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