Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
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 VMware Cloud on AWS:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getRegionEnumerationVmc({
acceptSelfSignedCert: true,
dcId: vraDataCollectorId,
apiToken: apiToken,
sddcName: sddcName,
nsxHostname: nsxHostname,
vcenterHostname: vcenterHostname,
vcenterPassword: vcenterPassword,
vcenterUsername: vcenterUsername,
});
import pulumi
import pulumi_vra as vra
this = vra.get_region_enumeration_vmc(accept_self_signed_cert=True,
dc_id=vra_data_collector_id,
api_token=api_token,
sddc_name=sddc_name,
nsx_hostname=nsx_hostname,
vcenter_hostname=vcenter_hostname,
vcenter_password=vcenter_password,
vcenter_username=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(vraDataCollectorId),
ApiToken: apiToken,
SddcName: sddcName,
NsxHostname: nsxHostname,
VcenterHostname: vcenterHostname,
VcenterPassword: vcenterPassword,
VcenterUsername: vcenterUsername,
}, 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 = vraDataCollectorId,
ApiToken = apiToken,
SddcName = sddcName,
NsxHostname = nsxHostname,
VcenterHostname = vcenterHostname,
VcenterPassword = vcenterPassword,
VcenterUsername = vcenterUsername,
});
});
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(vraDataCollectorId)
.apiToken(apiToken)
.sddcName(sddcName)
.nsxHostname(nsxHostname)
.vcenterHostname(vcenterHostname)
.vcenterPassword(vcenterPassword)
.vcenterUsername(vcenterUsername)
.build());
}
}
variables:
this:
fn::invoke:
function: vra:getRegionEnumerationVmc
arguments:
acceptSelfSignedCert: true
dcId: ${vraDataCollectorId}
apiToken: ${apiToken}
sddcName: ${sddcName}
nsxHostname: ${nsxHostname}
vcenterHostname: ${vcenterHostname}
vcenterPassword: ${vcenterPassword}
vcenterUsername: ${vcenterUsername}
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:
- Api
Token string - API Token for the cloud account endpoint.
- Nsx
Hostname string - The IP address of the NSX Manager server in the specified SDDC / FQDN.
- Sddc
Name string - Identifier of the on-premise SDDC to be used by this cloud account.
- Vcenter
Hostname string - The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- Vcenter
Password string - Password for the user used to authenticate with the cloud Account
- Vcenter
Username string - 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 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 string - API Token for the cloud account endpoint.
- Nsx
Hostname string - The IP address of the NSX Manager server in the specified SDDC / FQDN.
- Sddc
Name string - Identifier of the on-premise SDDC to be used by this cloud account.
- Vcenter
Hostname string - The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- Vcenter
Password string - Password for the user used to authenticate with the cloud Account
- Vcenter
Username string - 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 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 String - API Token for the cloud account endpoint.
- nsx
Hostname String - The IP address of the NSX Manager server in the specified SDDC / FQDN.
- sddc
Name String - Identifier of the on-premise SDDC to be used by this cloud account.
- vcenter
Hostname String - The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- vcenter
Password String - Password for the user used to authenticate with the cloud Account
- vcenter
Username String - vCenter user name for the specified SDDC.The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- accept
Self BooleanSigned Cert - Accept self signed certificate when connecting to vSphere. Example:
false - dc
Id 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 string - API Token for the cloud account endpoint.
- nsx
Hostname string - The IP address of the NSX Manager server in the specified SDDC / FQDN.
- sddc
Name string - Identifier of the on-premise SDDC to be used by this cloud account.
- vcenter
Hostname string - The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- vcenter
Password string - Password for the user used to authenticate with the cloud Account
- vcenter
Username string - vCenter user name for the specified SDDC.The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- accept
Self booleanSigned Cert - Accept self signed certificate when connecting to vSphere. Example:
false - dc
Id 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
- api
Token String - API Token for the cloud account endpoint.
- nsx
Hostname String - The IP address of the NSX Manager server in the specified SDDC / FQDN.
- sddc
Name String - Identifier of the on-premise SDDC to be used by this cloud account.
- vcenter
Hostname String - The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- vcenter
Password String - Password for the user used to authenticate with the cloud Account
- vcenter
Username String - vCenter user name for the specified SDDC.The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- accept
Self BooleanSigned Cert - Accept self signed certificate when connecting to vSphere. Example:
false - dc
Id 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:
- Api
Token string - Id string
- Nsx
Hostname string - Regions List<string>
- A set of Region names to enable provisioning on. Example:
["northamerica-northeast1"] - Sddc
Name string - Vcenter
Hostname string - Vcenter
Password string - Vcenter
Username string - Accept
Self boolSigned Cert - Dc
Id string
- Api
Token string - Id string
- Nsx
Hostname string - Regions []string
- A set of Region names to enable provisioning on. Example:
["northamerica-northeast1"] - Sddc
Name string - Vcenter
Hostname string - Vcenter
Password string - Vcenter
Username string - Accept
Self boolSigned Cert - Dc
Id string
- api
Token String - id String
- nsx
Hostname String - regions List<String>
- A set of Region names to enable provisioning on. Example:
["northamerica-northeast1"] - sddc
Name String - vcenter
Hostname String - vcenter
Password String - vcenter
Username String - accept
Self BooleanSigned Cert - dc
Id String
- api
Token string - id string
- nsx
Hostname string - regions string[]
- A set of Region names to enable provisioning on. Example:
["northamerica-northeast1"] - sddc
Name string - vcenter
Hostname string - vcenter
Password string - vcenter
Username string - accept
Self booleanSigned Cert - dc
Id 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
- api
Token String - id String
- nsx
Hostname String - regions List<String>
- A set of Region names to enable provisioning on. Example:
["northamerica-northeast1"] - sddc
Name String - vcenter
Hostname String - vcenter
Password String - vcenter
Username String - accept
Self BooleanSigned Cert - dc
Id String
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the
vraTerraform Provider.
Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
