1. Packages
  2. OVH
  3. API Docs
  4. Vrack
  5. getVracks
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

ovh.Vrack.getVracks

Explore with Pulumi AI

ovh logo
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

    Use this data source to get the list of Vrack IDs available for your OVHcloud account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const vracks = ovh.Vrack.getVracks({});
    
    import pulumi
    import pulumi_ovh as ovh
    
    vracks = ovh.Vrack.get_vracks()
    
    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.GetVracks(ctx, map[string]interface{}{}, 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 vracks = Ovh.Vrack.GetVracks.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Vrack.VrackFunctions;
    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 vracks = VrackFunctions.getVracks();
    
        }
    }
    
    variables:
      vracks:
        fn::invoke:
          Function: ovh:Vrack:getVracks
          Arguments: {}
    

    Using getVracks

    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 getVracks(opts?: InvokeOptions): Promise<GetVracksResult>
    function getVracksOutput(opts?: InvokeOptions): Output<GetVracksResult>
    def get_vracks(opts: Optional[InvokeOptions] = None) -> GetVracksResult
    def get_vracks_output(opts: Optional[InvokeOptions] = None) -> Output[GetVracksResult]
    func GetVracks(ctx *Context, opts ...InvokeOption) (*GetVracksResult, error)
    func GetVracksOutput(ctx *Context, opts ...InvokeOption) GetVracksResultOutput

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

    public static class GetVracks 
    {
        public static Task<GetVracksResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetVracksResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVracksResult> getVracks(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Vrack/getVracks:getVracks
      arguments:
        # arguments dictionary

    getVracks Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<string>
    The list of vrack service name available for your OVHcloud account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []string
    The list of vrack service name available for your OVHcloud account.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<String>
    The list of vrack service name available for your OVHcloud account.
    id string
    The provider-assigned unique ID for this managed resource.
    results string[]
    The list of vrack service name available for your OVHcloud account.
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[str]
    The list of vrack service name available for your OVHcloud account.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<String>
    The list of vrack service name available for your OVHcloud account.

    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 v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud