1. Packages
  2. OVH
  3. API Docs
  4. Vrack
  5. VrackDedicatedCloud
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

ovh.Vrack.VrackDedicatedCloud

Explore with Pulumi AI

ovh logo
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

    Attach a Dedicated Cloud to the vrack.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const vrack_dedicatedCloud = new ovh.vrack.VrackDedicatedCloud("vrack-dedicatedCloud", {
        dedicatedCloud: "<Dedicated Cloud service name>",
        serviceName: "<vRack service name>",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    vrack_dedicated_cloud = ovh.vrack.VrackDedicatedCloud("vrack-dedicatedCloud",
        dedicated_cloud="<Dedicated Cloud service name>",
        service_name="<vRack service name>")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/vrack"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vrack.NewVrackDedicatedCloud(ctx, "vrack-dedicatedCloud", &vrack.VrackDedicatedCloudArgs{
    			DedicatedCloud: pulumi.String("<Dedicated Cloud service name>"),
    			ServiceName:    pulumi.String("<vRack service name>"),
    		})
    		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 vrack_dedicatedCloud = new Ovh.Vrack.VrackDedicatedCloud("vrack-dedicatedCloud", new()
        {
            DedicatedCloud = "<Dedicated Cloud service name>",
            ServiceName = "<vRack service name>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.ovhcloud.pulumi.ovh.Vrack.VrackDedicatedCloud;
    import com.ovhcloud.pulumi.ovh.Vrack.VrackDedicatedCloudArgs;
    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 vrack_dedicatedCloud = new VrackDedicatedCloud("vrack-dedicatedCloud", VrackDedicatedCloudArgs.builder()
                .dedicatedCloud("<Dedicated Cloud service name>")
                .serviceName("<vRack service name>")
                .build());
    
        }
    }
    
    resources:
      vrack-dedicatedCloud:
        type: ovh:Vrack:VrackDedicatedCloud
        properties:
          dedicatedCloud: <Dedicated Cloud service name>
          serviceName: <vRack service name>
    

    Create VrackDedicatedCloud Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VrackDedicatedCloud(name: string, args: VrackDedicatedCloudArgs, opts?: CustomResourceOptions);
    @overload
    def VrackDedicatedCloud(resource_name: str,
                            args: VrackDedicatedCloudArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def VrackDedicatedCloud(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            dedicated_cloud: Optional[str] = None,
                            service_name: Optional[str] = None)
    func NewVrackDedicatedCloud(ctx *Context, name string, args VrackDedicatedCloudArgs, opts ...ResourceOption) (*VrackDedicatedCloud, error)
    public VrackDedicatedCloud(string name, VrackDedicatedCloudArgs args, CustomResourceOptions? opts = null)
    public VrackDedicatedCloud(String name, VrackDedicatedCloudArgs args)
    public VrackDedicatedCloud(String name, VrackDedicatedCloudArgs args, CustomResourceOptions options)
    
    type: ovh:Vrack:VrackDedicatedCloud
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VrackDedicatedCloudArgs
    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 VrackDedicatedCloudArgs
    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 VrackDedicatedCloudArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VrackDedicatedCloudArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VrackDedicatedCloudArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var vrackDedicatedCloudResource = new Ovh.Vrack.VrackDedicatedCloud("vrackDedicatedCloudResource", new()
    {
        DedicatedCloud = "string",
        ServiceName = "string",
    });
    
    example, err := vrack.NewVrackDedicatedCloud(ctx, "vrackDedicatedCloudResource", &vrack.VrackDedicatedCloudArgs{
    	DedicatedCloud: pulumi.String("string"),
    	ServiceName:    pulumi.String("string"),
    })
    
    var vrackDedicatedCloudResource = new VrackDedicatedCloud("vrackDedicatedCloudResource", VrackDedicatedCloudArgs.builder()
        .dedicatedCloud("string")
        .serviceName("string")
        .build());
    
    vrack_dedicated_cloud_resource = ovh.vrack.VrackDedicatedCloud("vrackDedicatedCloudResource",
        dedicated_cloud="string",
        service_name="string")
    
    const vrackDedicatedCloudResource = new ovh.vrack.VrackDedicatedCloud("vrackDedicatedCloudResource", {
        dedicatedCloud: "string",
        serviceName: "string",
    });
    
    type: ovh:Vrack:VrackDedicatedCloud
    properties:
        dedicatedCloud: string
        serviceName: string
    

    VrackDedicatedCloud Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VrackDedicatedCloud resource accepts the following input properties:

    DedicatedCloud string
    Your Dedicated Cloud service name
    ServiceName string
    The internal name of your vrack
    DedicatedCloud string
    Your Dedicated Cloud service name
    ServiceName string
    The internal name of your vrack
    dedicatedCloud String
    Your Dedicated Cloud service name
    serviceName String
    The internal name of your vrack
    dedicatedCloud string
    Your Dedicated Cloud service name
    serviceName string
    The internal name of your vrack
    dedicated_cloud str
    Your Dedicated Cloud service name
    service_name str
    The internal name of your vrack
    dedicatedCloud String
    Your Dedicated Cloud service name
    serviceName String
    The internal name of your vrack

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VrackDedicatedCloud 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 VrackDedicatedCloud Resource

    Get an existing VrackDedicatedCloud 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?: VrackDedicatedCloudState, opts?: CustomResourceOptions): VrackDedicatedCloud
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dedicated_cloud: Optional[str] = None,
            service_name: Optional[str] = None) -> VrackDedicatedCloud
    func GetVrackDedicatedCloud(ctx *Context, name string, id IDInput, state *VrackDedicatedCloudState, opts ...ResourceOption) (*VrackDedicatedCloud, error)
    public static VrackDedicatedCloud Get(string name, Input<string> id, VrackDedicatedCloudState? state, CustomResourceOptions? opts = null)
    public static VrackDedicatedCloud get(String name, Output<String> id, VrackDedicatedCloudState state, CustomResourceOptions options)
    resources:  _:    type: ovh:Vrack:VrackDedicatedCloud    get:      id: ${id}
    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:
    DedicatedCloud string
    Your Dedicated Cloud service name
    ServiceName string
    The internal name of your vrack
    DedicatedCloud string
    Your Dedicated Cloud service name
    ServiceName string
    The internal name of your vrack
    dedicatedCloud String
    Your Dedicated Cloud service name
    serviceName String
    The internal name of your vrack
    dedicatedCloud string
    Your Dedicated Cloud service name
    serviceName string
    The internal name of your vrack
    dedicated_cloud str
    Your Dedicated Cloud service name
    service_name str
    The internal name of your vrack
    dedicatedCloud String
    Your Dedicated Cloud service name
    serviceName String
    The internal name of your vrack

    Import

    Attachment of a Dedicated Cloud and a vRack can be imported using the service_name (vRack identifier) and the dedicated_cloud (Dedicated Cloud service name), separated by “/” E.g.,

    bash

    $ pulumi import ovh:Vrack/vrackDedicatedCloud:VrackDedicatedCloud myattach "<vRack service name>/<Dedicated Cloud service name>"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud