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 dictionary
The 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
vra
Terraform Provider.