Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

getCloudProjectRegion

Use this data source to retrieve information about a region associated with a public cloud project. The region must be associated with the project.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var gRA1 = Ovh.GetCloudProjectRegion.Invoke(new()
    {
        Name = "GRA1",
        ServiceName = "XXXXXX",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.GetCloudProjectRegion(ctx, &GetCloudProjectRegionArgs{
			Name:        "GRA1",
			ServiceName: "XXXXXX",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.GetCloudProjectRegionArgs;
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 gRA1 = OvhFunctions.getCloudProjectRegion(GetCloudProjectRegionArgs.builder()
            .name("GRA1")
            .serviceName("XXXXXX")
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

g_ra1 = ovh.get_cloud_project_region(name="GRA1",
    service_name="XXXXXX")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const gRA1 = pulumi.output(ovh.getCloudProjectRegion({
    name: "GRA1",
    serviceName: "XXXXXX",
}));
variables:
  gRA1:
    Fn::Invoke:
      Function: ovh:getCloudProjectRegion
      Arguments:
        name: GRA1
        serviceName: XXXXXX

Using getCloudProjectRegion

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 getCloudProjectRegion(args: GetCloudProjectRegionArgs, opts?: InvokeOptions): Promise<GetCloudProjectRegionResult>
function getCloudProjectRegionOutput(args: GetCloudProjectRegionOutputArgs, opts?: InvokeOptions): Output<GetCloudProjectRegionResult>
def get_cloud_project_region(name: Optional[str] = None,
                             service_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetCloudProjectRegionResult
def get_cloud_project_region_output(name: Optional[pulumi.Input[str]] = None,
                             service_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetCloudProjectRegionResult]
func GetCloudProjectRegion(ctx *Context, args *GetCloudProjectRegionArgs, opts ...InvokeOption) (*GetCloudProjectRegionResult, error)
func GetCloudProjectRegionOutput(ctx *Context, args *GetCloudProjectRegionOutputArgs, opts ...InvokeOption) GetCloudProjectRegionResultOutput

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

public static class GetCloudProjectRegion 
{
    public static Task<GetCloudProjectRegionResult> InvokeAsync(GetCloudProjectRegionArgs args, InvokeOptions? opts = null)
    public static Output<GetCloudProjectRegionResult> Invoke(GetCloudProjectRegionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCloudProjectRegionResult> getCloudProjectRegion(GetCloudProjectRegionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: ovh:index/getCloudProjectRegion:getCloudProjectRegion
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

The name of the region associated with the public cloud project.

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Name string

The name of the region associated with the public cloud project.

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

name String

The name of the region associated with the public cloud project.

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

name string

The name of the region associated with the public cloud project.

serviceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

name str

The name of the region associated with the public cloud project.

service_name str

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

name String

The name of the region associated with the public cloud project.

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

getCloudProjectRegion Result

The following output properties are available:

ContinentCode string

the code of the geographic continent the region is running. E.g.: EU for Europe, US for America...

DatacenterLocation string

The location code of the datacenter. E.g.: "GRA", meaning Gravelines, for region "GRA1"

Id string

The provider-assigned unique ID for this managed resource.

Name string

the name of the public cloud service

ServiceName string
Services List<Lbrlabs.PulumiPackage.Ovh.Outputs.GetCloudProjectRegionService>

The list of public cloud services running within the region

ContinentCode string

the code of the geographic continent the region is running. E.g.: EU for Europe, US for America...

DatacenterLocation string

The location code of the datacenter. E.g.: "GRA", meaning Gravelines, for region "GRA1"

Id string

The provider-assigned unique ID for this managed resource.

Name string

the name of the public cloud service

ServiceName string
Services []GetCloudProjectRegionService

The list of public cloud services running within the region

continentCode String

the code of the geographic continent the region is running. E.g.: EU for Europe, US for America...

datacenterLocation String

The location code of the datacenter. E.g.: "GRA", meaning Gravelines, for region "GRA1"

id String

The provider-assigned unique ID for this managed resource.

name String

the name of the public cloud service

serviceName String
services List<GetCloudProjectRegionService>

The list of public cloud services running within the region

continentCode string

the code of the geographic continent the region is running. E.g.: EU for Europe, US for America...

datacenterLocation string

The location code of the datacenter. E.g.: "GRA", meaning Gravelines, for region "GRA1"

id string

The provider-assigned unique ID for this managed resource.

name string

the name of the public cloud service

serviceName string
services GetCloudProjectRegionService[]

The list of public cloud services running within the region

continent_code str

the code of the geographic continent the region is running. E.g.: EU for Europe, US for America...

datacenter_location str

The location code of the datacenter. E.g.: "GRA", meaning Gravelines, for region "GRA1"

id str

The provider-assigned unique ID for this managed resource.

name str

the name of the public cloud service

service_name str
services Sequence[GetCloudProjectRegionService]

The list of public cloud services running within the region

continentCode String

the code of the geographic continent the region is running. E.g.: EU for Europe, US for America...

datacenterLocation String

The location code of the datacenter. E.g.: "GRA", meaning Gravelines, for region "GRA1"

id String

The provider-assigned unique ID for this managed resource.

name String

the name of the public cloud service

serviceName String
services List<Property Map>

The list of public cloud services running within the region

Supporting Types

GetCloudProjectRegionService

Name string

The name of the region associated with the public cloud project.

Status string

the status of the service

Name string

The name of the region associated with the public cloud project.

Status string

the status of the service

name String

The name of the region associated with the public cloud project.

status String

the status of the service

name string

The name of the region associated with the public cloud project.

status string

the status of the service

name str

The name of the region associated with the public cloud project.

status str

the status of the service

name String

The name of the region associated with the public cloud project.

status String

the status of the service

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.