vra 0.12.0 published on Monday, Apr 14, 2025 by vmware
vra.getRegionEnumerationVmc
Explore with Pulumi AI
Example Usage
S
This is an example of how to lookup a region enumeration data source for VMC cloud account.
Region enumeration data source for VMC
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getRegionEnumerationVmc({
    acceptSelfSignedCert: true,
    dcId: _var.vra_data_collector_id,
    apiToken: _var.api_token,
    sddcName: _var.sddc_name,
    nsxHostname: _var.nsx_hostname,
    vcenterHostname: _var.vcenter_hostname,
    vcenterPassword: _var.vcenter_password,
    vcenterUsername: _var.vcenter_username,
});
import pulumi
import pulumi_vra as vra
this = vra.get_region_enumeration_vmc(accept_self_signed_cert=True,
    dc_id=var["vra_data_collector_id"],
    api_token=var["api_token"],
    sddc_name=var["sddc_name"],
    nsx_hostname=var["nsx_hostname"],
    vcenter_hostname=var["vcenter_hostname"],
    vcenter_password=var["vcenter_password"],
    vcenter_username=var["vcenter_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.GetRegionEnumerationVmc(ctx, &vra.GetRegionEnumerationVmcArgs{
			AcceptSelfSignedCert: pulumi.BoolRef(true),
			DcId:                 pulumi.StringRef(_var.Vra_data_collector_id),
			ApiToken:             _var.Api_token,
			SddcName:             _var.Sddc_name,
			NsxHostname:          _var.Nsx_hostname,
			VcenterHostname:      _var.Vcenter_hostname,
			VcenterPassword:      _var.Vcenter_password,
			VcenterUsername:      _var.Vcenter_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.GetRegionEnumerationVmc.Invoke(new()
    {
        AcceptSelfSignedCert = true,
        DcId = @var.Vra_data_collector_id,
        ApiToken = @var.Api_token,
        SddcName = @var.Sddc_name,
        NsxHostname = @var.Nsx_hostname,
        VcenterHostname = @var.Vcenter_hostname,
        VcenterPassword = @var.Vcenter_password,
        VcenterUsername = @var.Vcenter_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.GetRegionEnumerationVmcArgs;
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.getRegionEnumerationVmc(GetRegionEnumerationVmcArgs.builder()
            .acceptSelfSignedCert(true)
            .dcId(var_.vra_data_collector_id())
            .apiToken(var_.api_token())
            .sddcName(var_.sddc_name())
            .nsxHostname(var_.nsx_hostname())
            .vcenterHostname(var_.vcenter_hostname())
            .vcenterPassword(var_.vcenter_password())
            .vcenterUsername(var_.vcenter_username())
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getRegionEnumerationVmc
      arguments:
        acceptSelfSignedCert: true
        dcId: ${var.vra_data_collector_id}
        apiToken: ${var.api_token}
        sddcName: ${var.sddc_name}
        nsxHostname: ${var.nsx_hostname}
        vcenterHostname: ${var.vcenter_hostname}
        vcenterPassword: ${var.vcenter_password}
        vcenterUsername: ${var.vcenter_username}
The region enumeration data source for VMC cloud account supports the following arguments:
Using getRegionEnumerationVmc
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 getRegionEnumerationVmc(args: GetRegionEnumerationVmcArgs, opts?: InvokeOptions): Promise<GetRegionEnumerationVmcResult>
function getRegionEnumerationVmcOutput(args: GetRegionEnumerationVmcOutputArgs, opts?: InvokeOptions): Output<GetRegionEnumerationVmcResult>def get_region_enumeration_vmc(accept_self_signed_cert: Optional[bool] = None,
                               api_token: Optional[str] = None,
                               dc_id: Optional[str] = None,
                               id: Optional[str] = None,
                               nsx_hostname: Optional[str] = None,
                               sddc_name: Optional[str] = None,
                               vcenter_hostname: Optional[str] = None,
                               vcenter_password: Optional[str] = None,
                               vcenter_username: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetRegionEnumerationVmcResult
def get_region_enumeration_vmc_output(accept_self_signed_cert: Optional[pulumi.Input[bool]] = None,
                               api_token: Optional[pulumi.Input[str]] = None,
                               dc_id: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               nsx_hostname: Optional[pulumi.Input[str]] = None,
                               sddc_name: Optional[pulumi.Input[str]] = None,
                               vcenter_hostname: Optional[pulumi.Input[str]] = None,
                               vcenter_password: Optional[pulumi.Input[str]] = None,
                               vcenter_username: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetRegionEnumerationVmcResult]func GetRegionEnumerationVmc(ctx *Context, args *GetRegionEnumerationVmcArgs, opts ...InvokeOption) (*GetRegionEnumerationVmcResult, error)
func GetRegionEnumerationVmcOutput(ctx *Context, args *GetRegionEnumerationVmcOutputArgs, opts ...InvokeOption) GetRegionEnumerationVmcResultOutput> Note: This function is named GetRegionEnumerationVmc in the Go SDK.
public static class GetRegionEnumerationVmc 
{
    public static Task<GetRegionEnumerationVmcResult> InvokeAsync(GetRegionEnumerationVmcArgs args, InvokeOptions? opts = null)
    public static Output<GetRegionEnumerationVmcResult> Invoke(GetRegionEnumerationVmcInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRegionEnumerationVmcResult> getRegionEnumerationVmc(GetRegionEnumerationVmcArgs args, InvokeOptions options)
public static Output<GetRegionEnumerationVmcResult> getRegionEnumerationVmc(GetRegionEnumerationVmcArgs args, InvokeOptions options)
fn::invoke:
  function: vra:index/getRegionEnumerationVmc:getRegionEnumerationVmc
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ApiToken string
- API Token for the cloud account endpoint.
- NsxHostname string
- The IP address of the NSX Manager server in the specified SDDC / FQDN.
- SddcName string
- Identifier of the on-premise SDDC to be used by this cloud account.
- VcenterHostname string
- The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- VcenterPassword string
- Password for the user used to authenticate with the cloud Account
- VcenterUsername string
- vCenter user name for the specified SDDC.The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- AcceptSelf boolSigned Cert 
- Accept self signed certificate when connecting to vSphere. Example: false
- DcId string
- ID of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collectors.
- Id string
- ApiToken string
- API Token for the cloud account endpoint.
- NsxHostname string
- The IP address of the NSX Manager server in the specified SDDC / FQDN.
- SddcName string
- Identifier of the on-premise SDDC to be used by this cloud account.
- VcenterHostname string
- The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- VcenterPassword string
- Password for the user used to authenticate with the cloud Account
- VcenterUsername string
- vCenter user name for the specified SDDC.The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- AcceptSelf boolSigned Cert 
- Accept self signed certificate when connecting to vSphere. Example: false
- DcId string
- ID of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collectors.
- Id string
- apiToken String
- API Token for the cloud account endpoint.
- nsxHostname String
- The IP address of the NSX Manager server in the specified SDDC / FQDN.
- sddcName String
- Identifier of the on-premise SDDC to be used by this cloud account.
- vcenterHostname String
- The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- vcenterPassword String
- Password for the user used to authenticate with the cloud Account
- vcenterUsername String
- vCenter user name for the specified SDDC.The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- acceptSelf BooleanSigned Cert 
- Accept self signed certificate when connecting to vSphere. Example: false
- dcId String
- ID of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collectors.
- id String
- apiToken string
- API Token for the cloud account endpoint.
- nsxHostname string
- The IP address of the NSX Manager server in the specified SDDC / FQDN.
- sddcName string
- Identifier of the on-premise SDDC to be used by this cloud account.
- vcenterHostname string
- The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- vcenterPassword string
- Password for the user used to authenticate with the cloud Account
- vcenterUsername string
- vCenter user name for the specified SDDC.The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- acceptSelf booleanSigned Cert 
- Accept self signed certificate when connecting to vSphere. Example: false
- dcId string
- ID of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collectors.
- id string
- api_token str
- API Token for the cloud account endpoint.
- nsx_hostname str
- The IP address of the NSX Manager server in the specified SDDC / FQDN.
- sddc_name str
- Identifier of the on-premise SDDC to be used by this cloud account.
- vcenter_hostname str
- The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- vcenter_password str
- Password for the user used to authenticate with the cloud Account
- vcenter_username str
- vCenter user name for the specified SDDC.The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- accept_self_ boolsigned_ cert 
- 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. Refer to the data-collector API to create or list data collectors.
- id str
- apiToken String
- API Token for the cloud account endpoint.
- nsxHostname String
- The IP address of the NSX Manager server in the specified SDDC / FQDN.
- sddcName String
- Identifier of the on-premise SDDC to be used by this cloud account.
- vcenterHostname String
- The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- vcenterPassword String
- Password for the user used to authenticate with the cloud Account
- vcenterUsername String
- vCenter user name for the specified SDDC.The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- acceptSelf BooleanSigned Cert 
- Accept self signed certificate when connecting to vSphere. Example: false
- dcId String
- ID of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collectors.
- id String
getRegionEnumerationVmc Result
The following output properties are available:
- ApiToken string
- Id string
- NsxHostname string
- Regions List<string>
- A set of Region names to enable provisioning on. Example: ["northamerica-northeast1"]
- SddcName string
- VcenterHostname string
- VcenterPassword string
- VcenterUsername string
- AcceptSelf boolSigned Cert 
- DcId string
- ApiToken string
- Id string
- NsxHostname string
- Regions []string
- A set of Region names to enable provisioning on. Example: ["northamerica-northeast1"]
- SddcName string
- VcenterHostname string
- VcenterPassword string
- VcenterUsername string
- AcceptSelf boolSigned Cert 
- DcId string
- apiToken String
- id String
- nsxHostname String
- regions List<String>
- A set of Region names to enable provisioning on. Example: ["northamerica-northeast1"]
- sddcName String
- vcenterHostname String
- vcenterPassword String
- vcenterUsername String
- acceptSelf BooleanSigned Cert 
- dcId String
- apiToken string
- id string
- nsxHostname string
- regions string[]
- A set of Region names to enable provisioning on. Example: ["northamerica-northeast1"]
- sddcName string
- vcenterHostname string
- vcenterPassword string
- vcenterUsername string
- acceptSelf booleanSigned Cert 
- dcId string
- api_token str
- id str
- nsx_hostname str
- regions Sequence[str]
- A set of Region names to enable provisioning on. Example: ["northamerica-northeast1"]
- sddc_name str
- vcenter_hostname str
- vcenter_password str
- vcenter_username str
- accept_self_ boolsigned_ cert 
- dc_id str
- apiToken String
- id String
- nsxHostname String
- regions List<String>
- A set of Region names to enable provisioning on. Example: ["northamerica-northeast1"]
- sddcName String
- vcenterHostname String
- vcenterPassword String
- vcenterUsername String
- acceptSelf BooleanSigned Cert 
- dcId String
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the vraTerraform Provider.