1. Packages
  2. Vra Provider
  3. API Docs
  4. getRegionEnumerationVsphere
vra 0.16.0 published on Tuesday, Dec 30, 2025 by vmware
vra logo
vra 0.16.0 published on Tuesday, Dec 30, 2025 by vmware

    Example Usage

    S

    This is an example of how to lookup a region enumeration data source for vSphere cloud account.

    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: vraDataCollectorId,
        hostname: hostname,
        password: password,
        username: username,
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.get_region_enumeration_vsphere(accept_self_signed_cert=False,
        dc_id=vra_data_collector_id,
        hostname=hostname,
        password=password,
        username=username)
    
    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(vraDataCollectorId),
    			Hostname:             hostname,
    			Password:             password,
    			Username:             username,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 = vraDataCollectorId,
            Hostname = hostname,
            Password = password,
            Username = username,
        });
    
    });
    
    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(vraDataCollectorId)
                .hostname(hostname)
                .password(password)
                .username(username)
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: vra:getRegionEnumerationVsphere
          arguments:
            acceptSelfSignedCert: false
            dcId: ${vraDataCollectorId}
            hostname: ${hostname}
            password: ${password}
            username: ${username}
    

    The region enumeration data source for vSphere cloud account supports the following arguments:

    Using getRegionEnumerationVsphere

    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 getRegionEnumerationVsphere(args: GetRegionEnumerationVsphereArgs, opts?: InvokeOptions): Promise<GetRegionEnumerationVsphereResult>
    function getRegionEnumerationVsphereOutput(args: GetRegionEnumerationVsphereOutputArgs, opts?: InvokeOptions): Output<GetRegionEnumerationVsphereResult>
    def get_region_enumeration_vsphere(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) -> GetRegionEnumerationVsphereResult
    def get_region_enumeration_vsphere_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[GetRegionEnumerationVsphereResult]
    func GetRegionEnumerationVsphere(ctx *Context, args *GetRegionEnumerationVsphereArgs, opts ...InvokeOption) (*GetRegionEnumerationVsphereResult, error)
    func GetRegionEnumerationVsphereOutput(ctx *Context, args *GetRegionEnumerationVsphereOutputArgs, opts ...InvokeOption) GetRegionEnumerationVsphereResultOutput

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

    public static class GetRegionEnumerationVsphere 
    {
        public static Task<GetRegionEnumerationVsphereResult> InvokeAsync(GetRegionEnumerationVsphereArgs args, InvokeOptions? opts = null)
        public static Output<GetRegionEnumerationVsphereResult> Invoke(GetRegionEnumerationVsphereInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRegionEnumerationVsphereResult> getRegionEnumerationVsphere(GetRegionEnumerationVsphereArgs args, InvokeOptions options)
    public static Output<GetRegionEnumerationVsphereResult> getRegionEnumerationVsphere(GetRegionEnumerationVsphereArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vra:index/getRegionEnumerationVsphere:getRegionEnumerationVsphere
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Hostname string
    Host name for the cloud account endpoint. Example: dc1-lnd.example.com
    Password string
    Password for the user used to authenticate with the cloud Account
    Username 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 string
    Host name for the cloud account endpoint. Example: dc1-lnd.example.com
    Password string
    Password for the user used to authenticate with the cloud Account
    Username 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 String
    Host name for the cloud account endpoint. Example: dc1-lnd.example.com
    password String
    Password for the user used to authenticate with the cloud Account
    username 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 string
    Host name for the cloud account endpoint. Example: dc1-lnd.example.com
    password string
    Password for the user used to authenticate with the cloud Account
    username 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 str
    Host name for the cloud account endpoint. Example: dc1-lnd.example.com
    password str
    Password for the user used to authenticate with the cloud Account
    username 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 String
    Host name for the cloud account endpoint. Example: dc1-lnd.example.com
    password String
    Password for the user used to authenticate with the cloud Account
    username 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

    getRegionEnumerationVsphere Result

    The following output properties are available:

    ExternalRegions List<GetRegionEnumerationVsphereExternalRegion>
    A set of regions that can be enabled for this cloud account.
    Hostname string
    Id string
    Password string
    Regions List<string>
    A set of region ids that can be enabled for this cloud account. Example: ["Datacenter:datacenter-2"]
    Username string
    AcceptSelfSignedCert bool
    DcId string
    ExternalRegions []GetRegionEnumerationVsphereExternalRegion
    A set of regions that can be enabled for this cloud account.
    Hostname string
    Id string
    Password string
    Regions []string
    A set of region ids that can be enabled for this cloud account. Example: ["Datacenter:datacenter-2"]
    Username string
    AcceptSelfSignedCert bool
    DcId string
    externalRegions List<GetRegionEnumerationVsphereExternalRegion>
    A set of regions that can be enabled for this cloud account.
    hostname String
    id String
    password String
    regions List<String>
    A set of region ids that can be enabled for this cloud account. Example: ["Datacenter:datacenter-2"]
    username String
    acceptSelfSignedCert Boolean
    dcId String
    externalRegions GetRegionEnumerationVsphereExternalRegion[]
    A set of regions that can be enabled for this cloud account.
    hostname string
    id string
    password string
    regions string[]
    A set of region ids that can be enabled for this cloud account. Example: ["Datacenter:datacenter-2"]
    username string
    acceptSelfSignedCert boolean
    dcId string
    external_regions Sequence[GetRegionEnumerationVsphereExternalRegion]
    A set of regions that can be enabled for this cloud account.
    hostname str
    id str
    password str
    regions Sequence[str]
    A set of region ids that can be enabled for this cloud account. Example: ["Datacenter:datacenter-2"]
    username str
    accept_self_signed_cert bool
    dc_id str
    externalRegions List<Property Map>
    A set of regions that can be enabled for this cloud account.
    hostname String
    id String
    password String
    regions List<String>
    A set of region ids that can be enabled for this cloud account. Example: ["Datacenter:datacenter-2"]
    username String
    acceptSelfSignedCert Boolean
    dcId String

    Supporting Types

    GetRegionEnumerationVsphereExternalRegion

    ExternalRegionId string
    Unique identifier of the region on the provider side. Example: Datacenter:datacenter-2
    Name string
    Name of the region on the provider side. Example: vcfcons-mgmt-vc01
    ExternalRegionId string
    Unique identifier of the region on the provider side. Example: Datacenter:datacenter-2
    Name string
    Name of the region on the provider side. Example: vcfcons-mgmt-vc01
    externalRegionId String
    Unique identifier of the region on the provider side. Example: Datacenter:datacenter-2
    name String
    Name of the region on the provider side. Example: vcfcons-mgmt-vc01
    externalRegionId string
    Unique identifier of the region on the provider side. Example: Datacenter:datacenter-2
    name string
    Name of the region on the provider side. Example: vcfcons-mgmt-vc01
    external_region_id str
    Unique identifier of the region on the provider side. Example: Datacenter:datacenter-2
    name str
    Name of the region on the provider side. Example: vcfcons-mgmt-vc01
    externalRegionId String
    Unique identifier of the region on the provider side. Example: Datacenter:datacenter-2
    name String
    Name of the region on the provider side. Example: vcfcons-mgmt-vc01

    Package Details

    Repository
    vra vmware/terraform-provider-vra
    License
    Notes
    This Pulumi package is based on the vra Terraform Provider.
    vra logo
    vra 0.16.0 published on Tuesday, Dec 30, 2025 by vmware
      Meet Neo: Your AI Platform Teammate