vra 0.12.0 published on Monday, Apr 14, 2025 by vmware
vra.getCloudAccountVmc
Explore with Pulumi AI
Provides a VMware vRA vra.CloudAccountVmc data source.
Example Usage
S
VMC cloud account data source by its id:
This is an example of how to read the cloud account data source using its id.
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getCloudAccountVmc({
    id: _var.vra_cloud_account_vmc_id,
});
import pulumi
import pulumi_vra as vra
this = vra.get_cloud_account_vmc(id=var["vra_cloud_account_vmc_id"])
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.LookupCloudAccountVmc(ctx, &vra.LookupCloudAccountVmcArgs{
			Id: pulumi.StringRef(_var.Vra_cloud_account_vmc_id),
		}, 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.GetCloudAccountVmc.Invoke(new()
    {
        Id = @var.Vra_cloud_account_vmc_id,
    });
});
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.GetCloudAccountVmcArgs;
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.getCloudAccountVmc(GetCloudAccountVmcArgs.builder()
            .id(var_.vra_cloud_account_vmc_id())
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getCloudAccountVmc
      arguments:
        id: ${var.vra_cloud_account_vmc_id}
vmc cloud account data source by its name:
This is an example of how to read the cloud account data source using its name.
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getCloudAccountVmc({
    name: _var.vra_cloud_account_vmc_name,
});
import pulumi
import pulumi_vra as vra
this = vra.get_cloud_account_vmc(name=var["vra_cloud_account_vmc_name"])
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.LookupCloudAccountVmc(ctx, &vra.LookupCloudAccountVmcArgs{
			Name: pulumi.StringRef(_var.Vra_cloud_account_vmc_name),
		}, 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.GetCloudAccountVmc.Invoke(new()
    {
        Name = @var.Vra_cloud_account_vmc_name,
    });
});
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.GetCloudAccountVmcArgs;
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.getCloudAccountVmc(GetCloudAccountVmcArgs.builder()
            .name(var_.vra_cloud_account_vmc_name())
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getCloudAccountVmc
      arguments:
        name: ${var.vra_cloud_account_vmc_name}
Using getCloudAccountVmc
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 getCloudAccountVmc(args: GetCloudAccountVmcArgs, opts?: InvokeOptions): Promise<GetCloudAccountVmcResult>
function getCloudAccountVmcOutput(args: GetCloudAccountVmcOutputArgs, opts?: InvokeOptions): Output<GetCloudAccountVmcResult>def get_cloud_account_vmc(id: Optional[str] = None,
                          name: Optional[str] = None,
                          tags: Optional[Sequence[GetCloudAccountVmcTag]] = None,
                          opts: Optional[InvokeOptions] = None) -> GetCloudAccountVmcResult
def get_cloud_account_vmc_output(id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetCloudAccountVmcTagArgs]]]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetCloudAccountVmcResult]func LookupCloudAccountVmc(ctx *Context, args *LookupCloudAccountVmcArgs, opts ...InvokeOption) (*LookupCloudAccountVmcResult, error)
func LookupCloudAccountVmcOutput(ctx *Context, args *LookupCloudAccountVmcOutputArgs, opts ...InvokeOption) LookupCloudAccountVmcResultOutput> Note: This function is named LookupCloudAccountVmc in the Go SDK.
public static class GetCloudAccountVmc 
{
    public static Task<GetCloudAccountVmcResult> InvokeAsync(GetCloudAccountVmcArgs args, InvokeOptions? opts = null)
    public static Output<GetCloudAccountVmcResult> Invoke(GetCloudAccountVmcInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudAccountVmcResult> getCloudAccountVmc(GetCloudAccountVmcArgs args, InvokeOptions options)
public static Output<GetCloudAccountVmcResult> getCloudAccountVmc(GetCloudAccountVmcArgs args, InvokeOptions options)
fn::invoke:
  function: vra:index/getCloudAccountVmc:getCloudAccountVmc
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- The id of this vmc cloud account.
- Name string
- The name of this vmc cloud account.
- 
List<GetCloud Account Vmc Tag> 
- A set of tag keys and optional values that were set on this resource.
example: [ { "key" : "vmware", "value": "provider" } ]
- Id string
- The id of this vmc cloud account.
- Name string
- The name of this vmc cloud account.
- 
[]GetCloud Account Vmc Tag 
- A set of tag keys and optional values that were set on this resource.
example: [ { "key" : "vmware", "value": "provider" } ]
- id String
- The id of this vmc cloud account.
- name String
- The name of this vmc cloud account.
- 
List<GetCloud Account Vmc Tag> 
- A set of tag keys and optional values that were set on this resource.
example: [ { "key" : "vmware", "value": "provider" } ]
- id string
- The id of this vmc cloud account.
- name string
- The name of this vmc cloud account.
- 
GetCloud Account Vmc Tag[] 
- A set of tag keys and optional values that were set on this resource.
example: [ { "key" : "vmware", "value": "provider" } ]
- id str
- The id of this vmc cloud account.
- name str
- The name of this vmc cloud account.
- 
Sequence[GetCloud Account Vmc Tag] 
- A set of tag keys and optional values that were set on this resource.
example: [ { "key" : "vmware", "value": "provider" } ]
- id String
- The id of this vmc cloud account.
- name String
- The name of this vmc cloud account.
- List<Property Map>
- A set of tag keys and optional values that were set on this resource.
example: [ { "key" : "vmware", "value": "provider" } ]
getCloudAccountVmc Result
The following output properties are available:
- CreatedAt string
- Date when the entity was created. The date is in ISO 6801 and UTC.
- DcId string
- Identifier of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collector.
- Description string
- A human-friendly description.
- Id string
- Links
List<GetCloud Account Vmc Link> 
- HATEOAS of the entity.
- Name string
- NsxHostname string
- The IP address of the NSX Manager server in the specified SDDC / FQDN.
- OrgId string
- The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Regions List<string>
- A set of region names that are enabled for this account.
- SddcName string
- Identifier of the on-premise SDDC to be used by this cloud account. Note that NSX-V SDDCs are not supported.
- UpdatedAt string
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- VcenterHostname string
- The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- VcenterUsername string
- vCenter user name for the specified SDDC. The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- 
List<GetCloud Account Vmc Tag> 
- A set of tag keys and optional values that were set on this resource.
example: [ { "key" : "vmware", "value": "provider" } ]
- CreatedAt string
- Date when the entity was created. The date is in ISO 6801 and UTC.
- DcId string
- Identifier of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collector.
- Description string
- A human-friendly description.
- Id string
- Links
[]GetCloud Account Vmc Link 
- HATEOAS of the entity.
- Name string
- NsxHostname string
- The IP address of the NSX Manager server in the specified SDDC / FQDN.
- OrgId string
- The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Regions []string
- A set of region names that are enabled for this account.
- SddcName string
- Identifier of the on-premise SDDC to be used by this cloud account. Note that NSX-V SDDCs are not supported.
- UpdatedAt string
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- VcenterHostname string
- The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- VcenterUsername string
- vCenter user name for the specified SDDC. The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- 
[]GetCloud Account Vmc Tag 
- A set of tag keys and optional values that were set on this resource.
example: [ { "key" : "vmware", "value": "provider" } ]
- createdAt String
- Date when the entity was created. The date is in ISO 6801 and UTC.
- dcId String
- Identifier of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collector.
- description String
- A human-friendly description.
- id String
- links
List<GetCloud Account Vmc Link> 
- HATEOAS of the entity.
- name String
- nsxHostname String
- The IP address of the NSX Manager server in the specified SDDC / FQDN.
- orgId String
- The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- regions List<String>
- A set of region names that are enabled for this account.
- sddcName String
- Identifier of the on-premise SDDC to be used by this cloud account. Note that NSX-V SDDCs are not supported.
- updatedAt String
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- vcenterHostname String
- The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- vcenterUsername String
- vCenter user name for the specified SDDC. The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- 
List<GetCloud Account Vmc Tag> 
- A set of tag keys and optional values that were set on this resource.
example: [ { "key" : "vmware", "value": "provider" } ]
- createdAt string
- Date when the entity was created. The date is in ISO 6801 and UTC.
- dcId string
- Identifier of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collector.
- description string
- A human-friendly description.
- id string
- links
GetCloud Account Vmc Link[] 
- HATEOAS of the entity.
- name string
- nsxHostname string
- The IP address of the NSX Manager server in the specified SDDC / FQDN.
- orgId string
- The id of the organization this entity belongs to.
- owner string
- Email of the user that owns the entity.
- regions string[]
- A set of region names that are enabled for this account.
- sddcName string
- Identifier of the on-premise SDDC to be used by this cloud account. Note that NSX-V SDDCs are not supported.
- updatedAt string
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- vcenterHostname string
- The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- vcenterUsername string
- vCenter user name for the specified SDDC. The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- 
GetCloud Account Vmc Tag[] 
- A set of tag keys and optional values that were set on this resource.
example: [ { "key" : "vmware", "value": "provider" } ]
- created_at str
- Date when the entity was created. The date is in ISO 6801 and UTC.
- dc_id str
- Identifier of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collector.
- description str
- A human-friendly description.
- id str
- links
Sequence[GetCloud Account Vmc Link] 
- HATEOAS of the entity.
- name str
- nsx_hostname str
- The IP address of the NSX Manager server in the specified SDDC / FQDN.
- org_id str
- The id of the organization this entity belongs to.
- owner str
- Email of the user that owns the entity.
- regions Sequence[str]
- A set of region names that are enabled for this account.
- sddc_name str
- Identifier of the on-premise SDDC to be used by this cloud account. Note that NSX-V SDDCs are not supported.
- updated_at str
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- vcenter_hostname str
- The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- vcenter_username str
- vCenter user name for the specified SDDC. The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- 
Sequence[GetCloud Account Vmc Tag] 
- A set of tag keys and optional values that were set on this resource.
example: [ { "key" : "vmware", "value": "provider" } ]
- createdAt String
- Date when the entity was created. The date is in ISO 6801 and UTC.
- dcId String
- Identifier of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collector.
- description String
- A human-friendly description.
- id String
- links List<Property Map>
- HATEOAS of the entity.
- name String
- nsxHostname String
- The IP address of the NSX Manager server in the specified SDDC / FQDN.
- orgId String
- The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- regions List<String>
- A set of region names that are enabled for this account.
- sddcName String
- Identifier of the on-premise SDDC to be used by this cloud account. Note that NSX-V SDDCs are not supported.
- updatedAt String
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- vcenterHostname String
- The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
- vcenterUsername String
- vCenter user name for the specified SDDC. The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
- List<Property Map>
- A set of tag keys and optional values that were set on this resource.
example: [ { "key" : "vmware", "value": "provider" } ]
Supporting Types
GetCloudAccountVmcLink    
GetCloudAccountVmcTag    
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the vraTerraform Provider.