OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud
ovh.CloudProject.getVRack
Explore with Pulumi AI
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;
import pulumi
import pulumi_ovh as ovh
vrack_v_rack = ovh.CloudProject.get_v_rack(service_name="XXXXXX")
pulumi.export("vrack", vrack_v_rack)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/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
})
}
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,
};
});
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.applyValue(getVRackResult -> getVRackResult));
}
}
variables:
vrackVRack:
fn::invoke:
Function: ovh:CloudProject:getVRack
Arguments:
serviceName: XXXXXX
outputs:
vrack: ${vrackVRack}
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_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]
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:CloudProject/getVRack:getVRack
arguments:
# arguments dictionary
The following arguments are supported:
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- service_
name str - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- service
Name 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
- Service
Name string - The id of the public cloud project
- Description string
- Id string
- The id of the vrack
- Name string
- The name of the vrack
- Service
Name string - The id of the public cloud project
- description String
- id String
- The id of the vrack
- name String
- The name of the vrack
- service
Name String - The id of the public cloud project
- description string
- id string
- The id of the vrack
- name string
- The name of the vrack
- service
Name 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
- service
Name 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.