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<Get
Cloud 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.
 - 
[]Get
Cloud 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<Get
Cloud 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.
 - 
Get
Cloud 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[Get
Cloud 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:
- Created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
 - Dc
Id 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<Get
Cloud Account Vmc Link>  - HATEOAS of the entity.
 - Name string
 - Nsx
Hostname string - The IP address of the NSX Manager server in the specified SDDC / FQDN.
 - Org
Id 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.
 - Sddc
Name string - Identifier of the on-premise SDDC to be used by this cloud account. Note that NSX-V SDDCs are not supported.
 - Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - Vcenter
Hostname string - The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
 - Vcenter
Username string - vCenter user name for the specified SDDC. The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
 - 
List<Get
Cloud Account Vmc Tag>  - A set of tag keys and optional values that were set on this resource.
example: 
[ { "key" : "vmware", "value": "provider" } ] 
- Created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
 - Dc
Id 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
[]Get
Cloud Account Vmc Link  - HATEOAS of the entity.
 - Name string
 - Nsx
Hostname string - The IP address of the NSX Manager server in the specified SDDC / FQDN.
 - Org
Id 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.
 - Sddc
Name string - Identifier of the on-premise SDDC to be used by this cloud account. Note that NSX-V SDDCs are not supported.
 - Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - Vcenter
Hostname string - The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
 - Vcenter
Username string - vCenter user name for the specified SDDC. The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
 - 
[]Get
Cloud Account Vmc Tag  - A set of tag keys and optional values that were set on this resource.
example: 
[ { "key" : "vmware", "value": "provider" } ] 
- created
At String - Date when the entity was created. The date is in ISO 6801 and UTC.
 - dc
Id 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<Get
Cloud Account Vmc Link>  - HATEOAS of the entity.
 - name String
 - nsx
Hostname String - The IP address of the NSX Manager server in the specified SDDC / FQDN.
 - org
Id 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.
 - sddc
Name String - Identifier of the on-premise SDDC to be used by this cloud account. Note that NSX-V SDDCs are not supported.
 - updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - vcenter
Hostname String - The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
 - vcenter
Username String - vCenter user name for the specified SDDC. The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
 - 
List<Get
Cloud Account Vmc Tag>  - A set of tag keys and optional values that were set on this resource.
example: 
[ { "key" : "vmware", "value": "provider" } ] 
- created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
 - dc
Id 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
Get
Cloud Account Vmc Link[]  - HATEOAS of the entity.
 - name string
 - nsx
Hostname string - The IP address of the NSX Manager server in the specified SDDC / FQDN.
 - org
Id 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.
 - sddc
Name string - Identifier of the on-premise SDDC to be used by this cloud account. Note that NSX-V SDDCs are not supported.
 - updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - vcenter
Hostname string - The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
 - vcenter
Username string - vCenter user name for the specified SDDC. The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
 - 
Get
Cloud 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[Get
Cloud 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[Get
Cloud Account Vmc Tag]  - A set of tag keys and optional values that were set on this resource.
example: 
[ { "key" : "vmware", "value": "provider" } ] 
- created
At String - Date when the entity was created. The date is in ISO 6801 and UTC.
 - dc
Id 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
 - nsx
Hostname String - The IP address of the NSX Manager server in the specified SDDC / FQDN.
 - org
Id 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.
 - sddc
Name String - Identifier of the on-premise SDDC to be used by this cloud account. Note that NSX-V SDDCs are not supported.
 - updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - vcenter
Hostname String - The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
 - vcenter
Username 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.