1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getVrack
Viewing docs for OVHCloud v2.14.0
published on Monday, Jun 15, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.14.0
published on Monday, Jun 15, 2026 by OVHcloud

    Use this data source to get Vrack information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const myVrack = ovh.getVrack({
        serviceName: "pn-000000",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    my_vrack = ovh.get_vrack(service_name="pn-000000")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ovh.GetVrack(ctx, &ovh.GetVrackArgs{
    			ServiceName: "pn-000000",
    		}, 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 myVrack = Ovh.GetVrack.Invoke(new()
        {
            ServiceName = "pn-000000",
        });
    
    });
    
    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.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 myVrack = OvhFunctions.getVrack(GetVrackArgs.builder()
                .serviceName("pn-000000")
                .build());
    
        }
    }
    
    variables:
      myVrack:
        fn::invoke:
          function: ovh:getVrack
          arguments:
            serviceName: pn-000000
    
    Example coming soon!
    

    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>
    def get_vrack(service_name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetVrackResult
    def get_vrack_output(service_name: pulumi.Input[Optional[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetVrackResult]
    func GetVrack(ctx *Context, args *GetVrackArgs, opts ...InvokeOption) (*GetVrackResult, error)
    func GetVrackOutput(ctx *Context, args *GetVrackOutputArgs, opts ...InvokeOption) GetVrackResultOutput

    > 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)
    }
    public static CompletableFuture<GetVrackResult> getVrack(GetVrackArgs args, InvokeOptions options)
    public static Output<GetVrackResult> getVrack(GetVrackArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getVrack:getVrack
      arguments:
        # arguments dictionary
    data "ovh_getvrack" "name" {
        # arguments
    }

    The following arguments are supported:

    ServiceName string
    The vrack service name for your OVHcloud account, e.g pn-000000.
    ServiceName string
    The vrack service name for your OVHcloud account, e.g pn-000000.
    service_name string
    The vrack service name for your OVHcloud account, e.g pn-000000.
    serviceName String
    The vrack service name for your OVHcloud account, e.g pn-000000.
    serviceName string
    The vrack service name for your OVHcloud account, e.g pn-000000.
    service_name str
    The vrack service name for your OVHcloud account, e.g pn-000000.
    serviceName String
    The vrack service name for your OVHcloud account, e.g pn-000000.

    getVrack Result

    The following output properties are available:

    Description string
    The vrack description
    Iam GetVrackIam
    (Attributes) IAM resource metadata (see below for nested schema)
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name defined for the vrack
    ServiceName string
    The vrack service name for your OVHcloud account, e.g pn-000000.
    Description string
    The vrack description
    Iam GetVrackIam
    (Attributes) IAM resource metadata (see below for nested schema)
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name defined for the vrack
    ServiceName string
    The vrack service name for your OVHcloud account, e.g pn-000000.
    description string
    The vrack description
    iam object
    (Attributes) IAM resource metadata (see below for nested schema)
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name defined for the vrack
    service_name string
    The vrack service name for your OVHcloud account, e.g pn-000000.
    description String
    The vrack description
    iam GetVrackIam
    (Attributes) IAM resource metadata (see below for nested schema)
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name defined for the vrack
    serviceName String
    The vrack service name for your OVHcloud account, e.g pn-000000.
    description string
    The vrack description
    iam GetVrackIam
    (Attributes) IAM resource metadata (see below for nested schema)
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name defined for the vrack
    serviceName string
    The vrack service name for your OVHcloud account, e.g pn-000000.
    description str
    The vrack description
    iam GetVrackIam
    (Attributes) IAM resource metadata (see below for nested schema)
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name defined for the vrack
    service_name str
    The vrack service name for your OVHcloud account, e.g pn-000000.
    description String
    The vrack description
    iam Property Map
    (Attributes) IAM resource metadata (see below for nested schema)
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name defined for the vrack
    serviceName String
    The vrack service name for your OVHcloud account, e.g pn-000000.

    Supporting Types

    GetVrackIam

    DisplayName string
    Resource display name
    Id string
    (String) Unique identifier of the resource
    Tags Dictionary<string, string>
    Resource tags. Tags that were internally computed are prefixed with ovh:
    Urn string
    (String) Unique resource name used in policies
    DisplayName string
    Resource display name
    Id string
    (String) Unique identifier of the resource
    Tags map[string]string
    Resource tags. Tags that were internally computed are prefixed with ovh:
    Urn string
    (String) Unique resource name used in policies
    display_name string
    Resource display name
    id string
    (String) Unique identifier of the resource
    tags map(string)
    Resource tags. Tags that were internally computed are prefixed with ovh:
    urn string
    (String) Unique resource name used in policies
    displayName String
    Resource display name
    id String
    (String) Unique identifier of the resource
    tags Map<String,String>
    Resource tags. Tags that were internally computed are prefixed with ovh:
    urn String
    (String) Unique resource name used in policies
    displayName string
    Resource display name
    id string
    (String) Unique identifier of the resource
    tags {[key: string]: string}
    Resource tags. Tags that were internally computed are prefixed with ovh:
    urn string
    (String) Unique resource name used in policies
    display_name str
    Resource display name
    id str
    (String) Unique identifier of the resource
    tags Mapping[str, str]
    Resource tags. Tags that were internally computed are prefixed with ovh:
    urn str
    (String) Unique resource name used in policies
    displayName String
    Resource display name
    id String
    (String) Unique identifier of the resource
    tags Map<String>
    Resource tags. Tags that were internally computed are prefixed with ovh:
    urn String
    (String) Unique resource name used in policies

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.14.0
    published on Monday, Jun 15, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial