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

ovh.Vrack.Vrackservices

Explore with Pulumi AI

Attach a vrackServices to the vrack.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";

const vrackVrackservices = new ovh.vrack.Vrackservices("vrackVrackservices", {
    serviceName: "<vRack service name>",
    vrackServices: "<vrackServices service name>",
});
Copy
import pulumi
import pulumi_ovh as ovh

vrack_vrackservices = ovh.vrack.Vrackservices("vrackVrackservices",
    service_name="<vRack service name>",
    vrack_services="<vrackServices service name>")
Copy
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.NewVrackservices(ctx, "vrackVrackservices", &vrack.VrackservicesArgs{
			ServiceName:   pulumi.String("<vRack service name>"),
			VrackServices: pulumi.String("<vrackServices service name>"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var vrackVrackservices = new Ovh.Vrack.Vrackservices("vrackVrackservices", new()
    {
        ServiceName = "<vRack service name>",
        VrackServices = "<vrackServices service name>",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ovhcloud.pulumi.ovh.Vrack.Vrackservices;
import com.ovhcloud.pulumi.ovh.Vrack.VrackservicesArgs;
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 vrackVrackservices = new Vrackservices("vrackVrackservices", VrackservicesArgs.builder()
            .serviceName("<vRack service name>")
            .vrackServices("<vrackServices service name>")
            .build());

    }
}
Copy
resources:
  vrackVrackservices:
    type: ovh:Vrack:Vrackservices
    properties:
      serviceName: <vRack service name>
      vrackServices: <vrackServices service name>
Copy

Create Vrackservices Resource

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

Constructor syntax

new Vrackservices(name: string, args: VrackservicesArgs, opts?: CustomResourceOptions);
@overload
def Vrackservices(resource_name: str,
                  args: VrackservicesArgs,
                  opts: Optional[ResourceOptions] = None)

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

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VrackservicesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. VrackservicesArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. VrackservicesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VrackservicesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VrackservicesArgs
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 vrackservicesResource = new Ovh.Vrack.Vrackservices("vrackservicesResource", new()
{
    ServiceName = "string",
    VrackServices = "string",
});
Copy
example, err := Vrack.NewVrackservices(ctx, "vrackservicesResource", &Vrack.VrackservicesArgs{
	ServiceName:   pulumi.String("string"),
	VrackServices: pulumi.String("string"),
})
Copy
var vrackservicesResource = new Vrackservices("vrackservicesResource", VrackservicesArgs.builder()
    .serviceName("string")
    .vrackServices("string")
    .build());
Copy
vrackservices_resource = ovh.vrack.Vrackservices("vrackservicesResource",
    service_name="string",
    vrack_services="string")
Copy
const vrackservicesResource = new ovh.vrack.Vrackservices("vrackservicesResource", {
    serviceName: "string",
    vrackServices: "string",
});
Copy
type: ovh:Vrack:Vrackservices
properties:
    serviceName: string
    vrackServices: string
Copy

Vrackservices 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 Vrackservices resource accepts the following input properties:

ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The internal name of your vrack
VrackServices
This property is required.
Changes to this property will trigger replacement.
string
Your vrackServices service name.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The internal name of your vrack
VrackServices
This property is required.
Changes to this property will trigger replacement.
string
Your vrackServices service name.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The internal name of your vrack
vrackServices
This property is required.
Changes to this property will trigger replacement.
String
Your vrackServices service name.
serviceName
This property is required.
Changes to this property will trigger replacement.
string
The internal name of your vrack
vrackServices
This property is required.
Changes to this property will trigger replacement.
string
Your vrackServices service name.
service_name
This property is required.
Changes to this property will trigger replacement.
str
The internal name of your vrack
vrack_services
This property is required.
Changes to this property will trigger replacement.
str
Your vrackServices service name.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The internal name of your vrack
vrackServices
This property is required.
Changes to this property will trigger replacement.
String
Your vrackServices service name.

Outputs

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

Get an existing Vrackservices 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?: VrackservicesState, opts?: CustomResourceOptions): Vrackservices
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        service_name: Optional[str] = None,
        vrack_services: Optional[str] = None) -> Vrackservices
func GetVrackservices(ctx *Context, name string, id IDInput, state *VrackservicesState, opts ...ResourceOption) (*Vrackservices, error)
public static Vrackservices Get(string name, Input<string> id, VrackservicesState? state, CustomResourceOptions? opts = null)
public static Vrackservices get(String name, Output<String> id, VrackservicesState state, CustomResourceOptions options)
resources:  _:    type: ovh:Vrack:Vrackservices    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ServiceName Changes to this property will trigger replacement. string
The internal name of your vrack
VrackServices Changes to this property will trigger replacement. string
Your vrackServices service name.
ServiceName Changes to this property will trigger replacement. string
The internal name of your vrack
VrackServices Changes to this property will trigger replacement. string
Your vrackServices service name.
serviceName Changes to this property will trigger replacement. String
The internal name of your vrack
vrackServices Changes to this property will trigger replacement. String
Your vrackServices service name.
serviceName Changes to this property will trigger replacement. string
The internal name of your vrack
vrackServices Changes to this property will trigger replacement. string
Your vrackServices service name.
service_name Changes to this property will trigger replacement. str
The internal name of your vrack
vrack_services Changes to this property will trigger replacement. str
Your vrackServices service name.
serviceName Changes to this property will trigger replacement. String
The internal name of your vrack
vrackServices Changes to this property will trigger replacement. String
Your vrackServices service name.

Import

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

bash

$ pulumi import ovh:Vrack/vrackservices:Vrackservices myattach "<service_name>/<vrackServices service name>"
Copy

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.