1. Packages
  2. Vra Provider
  3. API Docs
  4. getRegionEnumeration
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

vra.getRegionEnumeration

Explore with Pulumi AI

Example Usage

S

This is an example of how to lookup a region enumeration data source.

DeprecationMessage: ‘region_enumeration’ is deprecated. Use ‘region_enumeration_vsphere’ instead.

Region enumeration data source for vSphere

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

const _this = vra.getRegionEnumerationVsphere({
    acceptSelfSignedCert: false,
    dcId: _var.vra_data_collector_id,
    hostname: _var.hostname,
    password: _var.password,
    username: _var.username,
});
Copy
import pulumi
import pulumi_vra as vra

this = vra.get_region_enumeration_vsphere(accept_self_signed_cert=False,
    dc_id=var["vra_data_collector_id"],
    hostname=var["hostname"],
    password=var["password"],
    username=var["username"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vra.GetRegionEnumerationVsphere(ctx, &vra.GetRegionEnumerationVsphereArgs{
			AcceptSelfSignedCert: pulumi.BoolRef(false),
			DcId:                 pulumi.StringRef(_var.Vra_data_collector_id),
			Hostname:             _var.Hostname,
			Password:             _var.Password,
			Username:             _var.Username,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;

return await Deployment.RunAsync(() => 
{
    var @this = Vra.GetRegionEnumerationVsphere.Invoke(new()
    {
        AcceptSelfSignedCert = false,
        DcId = @var.Vra_data_collector_id,
        Hostname = @var.Hostname,
        Password = @var.Password,
        Username = @var.Username,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.VraFunctions;
import com.pulumi.vra.inputs.GetRegionEnumerationVsphereArgs;
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 this = VraFunctions.getRegionEnumerationVsphere(GetRegionEnumerationVsphereArgs.builder()
            .acceptSelfSignedCert(false)
            .dcId(var_.vra_data_collector_id())
            .hostname(var_.hostname())
            .password(var_.password())
            .username(var_.username())
            .build());

    }
}
Copy
variables:
  this:
    fn::invoke:
      function: vra:getRegionEnumerationVsphere
      arguments:
        acceptSelfSignedCert: false
        dcId: ${var.vra_data_collector_id}
        hostname: ${var.hostname}
        password: ${var.password}
        username: ${var.username}
Copy

The region enumeration data source supports the following arguments:

Using getRegionEnumeration

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 getRegionEnumeration(args: GetRegionEnumerationArgs, opts?: InvokeOptions): Promise<GetRegionEnumerationResult>
function getRegionEnumerationOutput(args: GetRegionEnumerationOutputArgs, opts?: InvokeOptions): Output<GetRegionEnumerationResult>
Copy
def get_region_enumeration(accept_self_signed_cert: Optional[bool] = None,
                           dc_id: Optional[str] = None,
                           hostname: Optional[str] = None,
                           id: Optional[str] = None,
                           password: Optional[str] = None,
                           username: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetRegionEnumerationResult
def get_region_enumeration_output(accept_self_signed_cert: Optional[pulumi.Input[bool]] = None,
                           dc_id: Optional[pulumi.Input[str]] = None,
                           hostname: Optional[pulumi.Input[str]] = None,
                           id: Optional[pulumi.Input[str]] = None,
                           password: Optional[pulumi.Input[str]] = None,
                           username: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetRegionEnumerationResult]
Copy
func GetRegionEnumeration(ctx *Context, args *GetRegionEnumerationArgs, opts ...InvokeOption) (*GetRegionEnumerationResult, error)
func GetRegionEnumerationOutput(ctx *Context, args *GetRegionEnumerationOutputArgs, opts ...InvokeOption) GetRegionEnumerationResultOutput
Copy

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

public static class GetRegionEnumeration 
{
    public static Task<GetRegionEnumerationResult> InvokeAsync(GetRegionEnumerationArgs args, InvokeOptions? opts = null)
    public static Output<GetRegionEnumerationResult> Invoke(GetRegionEnumerationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRegionEnumerationResult> getRegionEnumeration(GetRegionEnumerationArgs args, InvokeOptions options)
public static Output<GetRegionEnumerationResult> getRegionEnumeration(GetRegionEnumerationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vra:index/getRegionEnumeration:getRegionEnumeration
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Hostname This property is required. string
Host name for the cloud account endpoint. Example: dc1-lnd.mycompany.com
Password This property is required. string
Password for the user used to authenticate with the cloud Account
Username This property is required. string
Username to authenticate with the cloud account
AcceptSelfSignedCert bool
Accept self signed certificate when connecting to vSphere. Example: false
DcId string
ID of a data collector vm deployed in the on premise infrastructure. Example: d5316b00-f3b8-4895-9e9a-c4b98649c2ca
Id string
Hostname This property is required. string
Host name for the cloud account endpoint. Example: dc1-lnd.mycompany.com
Password This property is required. string
Password for the user used to authenticate with the cloud Account
Username This property is required. string
Username to authenticate with the cloud account
AcceptSelfSignedCert bool
Accept self signed certificate when connecting to vSphere. Example: false
DcId string
ID of a data collector vm deployed in the on premise infrastructure. Example: d5316b00-f3b8-4895-9e9a-c4b98649c2ca
Id string
hostname This property is required. String
Host name for the cloud account endpoint. Example: dc1-lnd.mycompany.com
password This property is required. String
Password for the user used to authenticate with the cloud Account
username This property is required. String
Username to authenticate with the cloud account
acceptSelfSignedCert Boolean
Accept self signed certificate when connecting to vSphere. Example: false
dcId String
ID of a data collector vm deployed in the on premise infrastructure. Example: d5316b00-f3b8-4895-9e9a-c4b98649c2ca
id String
hostname This property is required. string
Host name for the cloud account endpoint. Example: dc1-lnd.mycompany.com
password This property is required. string
Password for the user used to authenticate with the cloud Account
username This property is required. string
Username to authenticate with the cloud account
acceptSelfSignedCert boolean
Accept self signed certificate when connecting to vSphere. Example: false
dcId string
ID of a data collector vm deployed in the on premise infrastructure. Example: d5316b00-f3b8-4895-9e9a-c4b98649c2ca
id string
hostname This property is required. str
Host name for the cloud account endpoint. Example: dc1-lnd.mycompany.com
password This property is required. str
Password for the user used to authenticate with the cloud Account
username This property is required. str
Username to authenticate with the cloud account
accept_self_signed_cert bool
Accept self signed certificate when connecting to vSphere. Example: false
dc_id str
ID of a data collector vm deployed in the on premise infrastructure. Example: d5316b00-f3b8-4895-9e9a-c4b98649c2ca
id str
hostname This property is required. String
Host name for the cloud account endpoint. Example: dc1-lnd.mycompany.com
password This property is required. String
Password for the user used to authenticate with the cloud Account
username This property is required. String
Username to authenticate with the cloud account
acceptSelfSignedCert Boolean
Accept self signed certificate when connecting to vSphere. Example: false
dcId String
ID of a data collector vm deployed in the on premise infrastructure. Example: d5316b00-f3b8-4895-9e9a-c4b98649c2ca
id String

getRegionEnumeration Result

The following output properties are available:

Hostname string
Id string
Password string
Regions List<string>
A set of datacenter managed object reference identifiers to enable provisioning on. Example: Datacenter:datacenter-2
Username string
AcceptSelfSignedCert bool
DcId string
Hostname string
Id string
Password string
Regions []string
A set of datacenter managed object reference identifiers to enable provisioning on. Example: Datacenter:datacenter-2
Username string
AcceptSelfSignedCert bool
DcId string
hostname String
id String
password String
regions List<String>
A set of datacenter managed object reference identifiers to enable provisioning on. Example: Datacenter:datacenter-2
username String
acceptSelfSignedCert Boolean
dcId String
hostname string
id string
password string
regions string[]
A set of datacenter managed object reference identifiers to enable provisioning on. Example: Datacenter:datacenter-2
username string
acceptSelfSignedCert boolean
dcId string
hostname str
id str
password str
regions Sequence[str]
A set of datacenter managed object reference identifiers to enable provisioning on. Example: Datacenter:datacenter-2
username str
accept_self_signed_cert bool
dc_id str
hostname String
id String
password String
regions List<String>
A set of datacenter managed object reference identifiers to enable provisioning on. Example: Datacenter:datacenter-2
username String
acceptSelfSignedCert Boolean
dcId String

Package Details

Repository
vra vmware/terraform-provider-vra
License
Notes
This Pulumi package is based on the vra Terraform Provider.