vra 0.15.0 published on Tuesday, Aug 19, 2025 by vmware
vra.getCloudAccountVsphere
Provides a vra.CloudAccountVsphere data source.
Example Usage
S
vSphere 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.getCloudAccountVsphere({
    id: _var.vra_cloud_account_vsphere_id,
});
import pulumi
import pulumi_vra as vra
this = vra.get_cloud_account_vsphere(id=var["vra_cloud_account_vsphere_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.LookupCloudAccountVsphere(ctx, &vra.LookupCloudAccountVsphereArgs{
			Id: pulumi.StringRef(_var.Vra_cloud_account_vsphere_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.GetCloudAccountVsphere.Invoke(new()
    {
        Id = @var.Vra_cloud_account_vsphere_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.GetCloudAccountVsphereArgs;
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.getCloudAccountVsphere(GetCloudAccountVsphereArgs.builder()
            .id(var_.vra_cloud_account_vsphere_id())
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getCloudAccountVsphere
      arguments:
        id: ${var.vra_cloud_account_vsphere_id}
vSphere 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.getCloudAccountVsphere({
    name: _var.vra_cloud_account_vsphere_name,
});
import pulumi
import pulumi_vra as vra
this = vra.get_cloud_account_vsphere(name=var["vra_cloud_account_vsphere_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.LookupCloudAccountVsphere(ctx, &vra.LookupCloudAccountVsphereArgs{
			Name: pulumi.StringRef(_var.Vra_cloud_account_vsphere_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.GetCloudAccountVsphere.Invoke(new()
    {
        Name = @var.Vra_cloud_account_vsphere_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.GetCloudAccountVsphereArgs;
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.getCloudAccountVsphere(GetCloudAccountVsphereArgs.builder()
            .name(var_.vra_cloud_account_vsphere_name())
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getCloudAccountVsphere
      arguments:
        name: ${var.vra_cloud_account_vsphere_name}
Using getCloudAccountVsphere
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 getCloudAccountVsphere(args: GetCloudAccountVsphereArgs, opts?: InvokeOptions): Promise<GetCloudAccountVsphereResult>
function getCloudAccountVsphereOutput(args: GetCloudAccountVsphereOutputArgs, opts?: InvokeOptions): Output<GetCloudAccountVsphereResult>def get_cloud_account_vsphere(id: Optional[str] = None,
                              name: Optional[str] = None,
                              tags: Optional[Sequence[GetCloudAccountVsphereTag]] = None,
                              opts: Optional[InvokeOptions] = None) -> GetCloudAccountVsphereResult
def get_cloud_account_vsphere_output(id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetCloudAccountVsphereTagArgs]]]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetCloudAccountVsphereResult]func LookupCloudAccountVsphere(ctx *Context, args *LookupCloudAccountVsphereArgs, opts ...InvokeOption) (*LookupCloudAccountVsphereResult, error)
func LookupCloudAccountVsphereOutput(ctx *Context, args *LookupCloudAccountVsphereOutputArgs, opts ...InvokeOption) LookupCloudAccountVsphereResultOutput> Note: This function is named LookupCloudAccountVsphere in the Go SDK.
public static class GetCloudAccountVsphere 
{
    public static Task<GetCloudAccountVsphereResult> InvokeAsync(GetCloudAccountVsphereArgs args, InvokeOptions? opts = null)
    public static Output<GetCloudAccountVsphereResult> Invoke(GetCloudAccountVsphereInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudAccountVsphereResult> getCloudAccountVsphere(GetCloudAccountVsphereArgs args, InvokeOptions options)
public static Output<GetCloudAccountVsphereResult> getCloudAccountVsphere(GetCloudAccountVsphereArgs args, InvokeOptions options)
fn::invoke:
  function: vra:index/getCloudAccountVsphere:getCloudAccountVsphere
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- The id of this vSphere cloud account.
- Name string
- The name of this vSphere cloud account.
- 
List<GetCloud Account Vsphere 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 vSphere cloud account.
- Name string
- The name of this vSphere cloud account.
- 
[]GetCloud Account Vsphere 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 vSphere cloud account.
- name String
- The name of this vSphere cloud account.
- 
List<GetCloud Account Vsphere 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 vSphere cloud account.
- name string
- The name of this vSphere cloud account.
- 
GetCloud Account Vsphere 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 vSphere cloud account.
- name str
- The name of this vSphere cloud account.
- 
Sequence[GetCloud Account Vsphere 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 vSphere cloud account.
- name String
- The name of this vSphere cloud account.
- List<Property Map>
- A set of tag keys and optional values that were set on this resource. Example: [ { "key" : "vmware", "value": "provider" } ]
getCloudAccountVsphere Result
The following output properties are available:
- AssociatedCloud List<string>Account Ids 
- Cloud accounts associated with this cloud account.
- 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.
- Description string
- A human-friendly description.
- EnabledRegions List<GetCloud Account Vsphere Enabled Region> 
- A set of regions that are enabled for this cloud account.
- Hostname string
- The IP address or FQDN of the vCenter Server. The cloud proxy belongs on this vCenter.
- Id string
- Unique identifier of the region. Example: 6196725b-6f5d-497c-8777-abe7814ee5ec
- Links
List<GetCloud Account Vsphere Link> 
- Name string
- Name of the region on the provider side. Example: vcfcons-mgmt-vc01
- 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 IDs that are enabled for this account.
- UpdatedAt string
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- Username string
- The vSphere username to authenticate the vsphere account.
- 
List<GetCloud Account Vsphere Tag> 
- A set of tag keys and optional values that were set on this resource. Example: [ { "key" : "vmware", "value": "provider" } ]
- AssociatedCloud []stringAccount Ids 
- Cloud accounts associated with this cloud account.
- 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.
- Description string
- A human-friendly description.
- EnabledRegions []GetCloud Account Vsphere Enabled Region 
- A set of regions that are enabled for this cloud account.
- Hostname string
- The IP address or FQDN of the vCenter Server. The cloud proxy belongs on this vCenter.
- Id string
- Unique identifier of the region. Example: 6196725b-6f5d-497c-8777-abe7814ee5ec
- Links
[]GetCloud Account Vsphere Link 
- Name string
- Name of the region on the provider side. Example: vcfcons-mgmt-vc01
- 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 IDs that are enabled for this account.
- UpdatedAt string
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- Username string
- The vSphere username to authenticate the vsphere account.
- 
[]GetCloud Account Vsphere Tag 
- A set of tag keys and optional values that were set on this resource. Example: [ { "key" : "vmware", "value": "provider" } ]
- associatedCloud List<String>Account Ids 
- Cloud accounts associated with this cloud account.
- 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.
- description String
- A human-friendly description.
- enabledRegions List<GetCloud Account Vsphere Enabled Region> 
- A set of regions that are enabled for this cloud account.
- hostname String
- The IP address or FQDN of the vCenter Server. The cloud proxy belongs on this vCenter.
- id String
- Unique identifier of the region. Example: 6196725b-6f5d-497c-8777-abe7814ee5ec
- links
List<GetCloud Account Vsphere Link> 
- name String
- Name of the region on the provider side. Example: vcfcons-mgmt-vc01
- 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 IDs that are enabled for this account.
- updatedAt String
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- username String
- The vSphere username to authenticate the vsphere account.
- 
List<GetCloud Account Vsphere Tag> 
- A set of tag keys and optional values that were set on this resource. Example: [ { "key" : "vmware", "value": "provider" } ]
- associatedCloud string[]Account Ids 
- Cloud accounts associated with this cloud account.
- 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.
- description string
- A human-friendly description.
- enabledRegions GetCloud Account Vsphere Enabled Region[] 
- A set of regions that are enabled for this cloud account.
- hostname string
- The IP address or FQDN of the vCenter Server. The cloud proxy belongs on this vCenter.
- id string
- Unique identifier of the region. Example: 6196725b-6f5d-497c-8777-abe7814ee5ec
- links
GetCloud Account Vsphere Link[] 
- name string
- Name of the region on the provider side. Example: vcfcons-mgmt-vc01
- 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 IDs that are enabled for this account.
- updatedAt string
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- username string
- The vSphere username to authenticate the vsphere account.
- 
GetCloud Account Vsphere Tag[] 
- A set of tag keys and optional values that were set on this resource. Example: [ { "key" : "vmware", "value": "provider" } ]
- associated_cloud_ Sequence[str]account_ ids 
- Cloud accounts associated with this cloud account.
- 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.
- description str
- A human-friendly description.
- enabled_regions Sequence[GetCloud Account Vsphere Enabled Region] 
- A set of regions that are enabled for this cloud account.
- hostname str
- The IP address or FQDN of the vCenter Server. The cloud proxy belongs on this vCenter.
- id str
- Unique identifier of the region. Example: 6196725b-6f5d-497c-8777-abe7814ee5ec
- links
Sequence[GetCloud Account Vsphere Link] 
- name str
- Name of the region on the provider side. Example: vcfcons-mgmt-vc01
- 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 IDs that are enabled for this account.
- updated_at str
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- username str
- The vSphere username to authenticate the vsphere account.
- 
Sequence[GetCloud Account Vsphere Tag] 
- A set of tag keys and optional values that were set on this resource. Example: [ { "key" : "vmware", "value": "provider" } ]
- associatedCloud List<String>Account Ids 
- Cloud accounts associated with this cloud account.
- 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.
- description String
- A human-friendly description.
- enabledRegions List<Property Map>
- A set of regions that are enabled for this cloud account.
- hostname String
- The IP address or FQDN of the vCenter Server. The cloud proxy belongs on this vCenter.
- id String
- Unique identifier of the region. Example: 6196725b-6f5d-497c-8777-abe7814ee5ec
- links List<Property Map>
- name String
- Name of the region on the provider side. Example: vcfcons-mgmt-vc01
- 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 IDs that are enabled for this account.
- updatedAt String
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- username String
- The vSphere username to authenticate the vsphere account.
- List<Property Map>
- A set of tag keys and optional values that were set on this resource. Example: [ { "key" : "vmware", "value": "provider" } ]
Supporting Types
GetCloudAccountVsphereEnabledRegion     
- ExternalRegion stringId 
- Unique identifier of the region on the provider side. Example: Datacenter:datacenter-2
- Id string
- The id of this vSphere cloud account.
- Name string
- The name of this vSphere cloud account.
- ExternalRegion stringId 
- Unique identifier of the region on the provider side. Example: Datacenter:datacenter-2
- Id string
- The id of this vSphere cloud account.
- Name string
- The name of this vSphere cloud account.
- externalRegion StringId 
- Unique identifier of the region on the provider side. Example: Datacenter:datacenter-2
- id String
- The id of this vSphere cloud account.
- name String
- The name of this vSphere cloud account.
- externalRegion stringId 
- Unique identifier of the region on the provider side. Example: Datacenter:datacenter-2
- id string
- The id of this vSphere cloud account.
- name string
- The name of this vSphere cloud account.
- external_region_ strid 
- Unique identifier of the region on the provider side. Example: Datacenter:datacenter-2
- id str
- The id of this vSphere cloud account.
- name str
- The name of this vSphere cloud account.
- externalRegion StringId 
- Unique identifier of the region on the provider side. Example: Datacenter:datacenter-2
- id String
- The id of this vSphere cloud account.
- name String
- The name of this vSphere cloud account.
GetCloudAccountVsphereLink    
GetCloudAccountVsphereTag    
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the vraTerraform Provider.
