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

ovh.CloudProject.getVRack

Explore with Pulumi AI

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

Use this data source to get the linked vrack on your public cloud project.

Example Usage

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

const vrackVRack = ovh.CloudProject.getVRack({
    serviceName: "XXXXXX",
});
export const vrack = vrackVRack;
Copy
import pulumi
import pulumi_ovh as ovh

vrack_v_rack = ovh.CloudProject.get_v_rack(service_name="XXXXXX")
pulumi.export("vrack", vrack_v_rack)
Copy
package main

import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		vrackVRack, err := cloudproject.GetVRack(ctx, &cloudproject.GetVRackArgs{
			ServiceName: "XXXXXX",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("vrack", vrackVRack)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var vrackVRack = Ovh.CloudProject.GetVRack.Invoke(new()
    {
        ServiceName = "XXXXXX",
    });

    return new Dictionary<string, object?>
    {
        ["vrack"] = vrackVRack,
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetVRackArgs;
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 vrackVRack = CloudProjectFunctions.getVRack(GetVRackArgs.builder()
            .serviceName("XXXXXX")
            .build());

        ctx.export("vrack", vrackVRack);
    }
}
Copy
variables:
  vrackVRack:
    fn::invoke:
      function: ovh:CloudProject:getVRack
      arguments:
        serviceName: XXXXXX
outputs:
  vrack: ${vrackVRack}
Copy

Using getVRack

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 getVRack(args: GetVRackArgs, opts?: InvokeOptions): Promise<GetVRackResult>
function getVRackOutput(args: GetVRackOutputArgs, opts?: InvokeOptions): Output<GetVRackResult>
Copy
def get_v_rack(service_name: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetVRackResult
def get_v_rack_output(service_name: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetVRackResult]
Copy
func GetVRack(ctx *Context, args *GetVRackArgs, opts ...InvokeOption) (*GetVRackResult, error)
func GetVRackOutput(ctx *Context, args *GetVRackOutputArgs, opts ...InvokeOption) GetVRackResultOutput
Copy

> Note: This function is named GetVRack in the Go SDK.

public static class GetVRack 
{
    public static Task<GetVRackResult> InvokeAsync(GetVRackArgs args, InvokeOptions? opts = null)
    public static Output<GetVRackResult> Invoke(GetVRackInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVRackResult> getVRack(GetVRackArgs args, InvokeOptions options)
public static Output<GetVRackResult> getVRack(GetVRackArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ovh:CloudProject/getVRack:getVRack
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ServiceName This property is required. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
ServiceName This property is required. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
serviceName This property is required. String
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
serviceName This property is required. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
service_name This property is required. str
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
serviceName This property is required. String
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

getVRack Result

The following output properties are available:

Description string
Id string
The id of the vrack
Name string
The name of the vrack
ServiceName string
The id of the public cloud project
Description string
Id string
The id of the vrack
Name string
The name of the vrack
ServiceName string
The id of the public cloud project
description String
id String
The id of the vrack
name String
The name of the vrack
serviceName String
The id of the public cloud project
description string
id string
The id of the vrack
name string
The name of the vrack
serviceName string
The id of the public cloud project
description str
id str
The id of the vrack
name str
The name of the vrack
service_name str
The id of the public cloud project
description String
id String
The id of the vrack
name String
The name of the vrack
serviceName String
The id of the public cloud project

Package Details

Repository
ovh ovh/pulumi-ovh
License
Apache-2.0
Notes
This Pulumi package is based on the ovh Terraform Provider.
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud