1. Packages
  2. Vra Provider
  3. API Docs
  4. getCloudAccountGcp
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

vra.getCloudAccountGcp

Explore with Pulumi AI

Provides a VMware vRA vra.CloudAccountGcp data source.

Example Usage

S

GCP cloud account data source by its id:

This is an example of how to create an GCP cloud account resource and read it as a data source using its id.

import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";

const _this = vra.getCloudAccountGcp({
    id: _var.vra_cloud_account_gcp_id,
});
Copy
import pulumi
import pulumi_vra as vra

this = vra.get_cloud_account_gcp(id=var["vra_cloud_account_gcp_id"])
Copy
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.LookupCloudAccountGcp(ctx, &vra.LookupCloudAccountGcpArgs{
			Id: pulumi.StringRef(_var.Vra_cloud_account_gcp_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;

return await Deployment.RunAsync(() => 
{
    var @this = Vra.GetCloudAccountGcp.Invoke(new()
    {
        Id = @var.Vra_cloud_account_gcp_id,
    });

});
Copy
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.GetCloudAccountGcpArgs;
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.getCloudAccountGcp(GetCloudAccountGcpArgs.builder()
            .id(var_.vra_cloud_account_gcp_id())
            .build());

    }
}
Copy
variables:
  this:
    fn::invoke:
      function: vra:getCloudAccountGcp
      arguments:
        id: ${var.vra_cloud_account_gcp_id}
Copy

GCP 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.getCloudAccountGcp({
    name: _var.vra_cloud_account_gcp_name,
});
Copy
import pulumi
import pulumi_vra as vra

this = vra.get_cloud_account_gcp(name=var["vra_cloud_account_gcp_name"])
Copy
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.LookupCloudAccountGcp(ctx, &vra.LookupCloudAccountGcpArgs{
			Name: pulumi.StringRef(_var.Vra_cloud_account_gcp_name),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;

return await Deployment.RunAsync(() => 
{
    var @this = Vra.GetCloudAccountGcp.Invoke(new()
    {
        Name = @var.Vra_cloud_account_gcp_name,
    });

});
Copy
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.GetCloudAccountGcpArgs;
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.getCloudAccountGcp(GetCloudAccountGcpArgs.builder()
            .name(var_.vra_cloud_account_gcp_name())
            .build());

    }
}
Copy
variables:
  this:
    fn::invoke:
      function: vra:getCloudAccountGcp
      arguments:
        name: ${var.vra_cloud_account_gcp_name}
Copy

Using getCloudAccountGcp

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 getCloudAccountGcp(args: GetCloudAccountGcpArgs, opts?: InvokeOptions): Promise<GetCloudAccountGcpResult>
function getCloudAccountGcpOutput(args: GetCloudAccountGcpOutputArgs, opts?: InvokeOptions): Output<GetCloudAccountGcpResult>
Copy
def get_cloud_account_gcp(id: Optional[str] = None,
                          name: Optional[str] = None,
                          tags: Optional[Sequence[GetCloudAccountGcpTag]] = None,
                          opts: Optional[InvokeOptions] = None) -> GetCloudAccountGcpResult
def get_cloud_account_gcp_output(id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetCloudAccountGcpTagArgs]]]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetCloudAccountGcpResult]
Copy
func LookupCloudAccountGcp(ctx *Context, args *LookupCloudAccountGcpArgs, opts ...InvokeOption) (*LookupCloudAccountGcpResult, error)
func LookupCloudAccountGcpOutput(ctx *Context, args *LookupCloudAccountGcpOutputArgs, opts ...InvokeOption) LookupCloudAccountGcpResultOutput
Copy

> Note: This function is named LookupCloudAccountGcp in the Go SDK.

public static class GetCloudAccountGcp 
{
    public static Task<GetCloudAccountGcpResult> InvokeAsync(GetCloudAccountGcpArgs args, InvokeOptions? opts = null)
    public static Output<GetCloudAccountGcpResult> Invoke(GetCloudAccountGcpInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCloudAccountGcpResult> getCloudAccountGcp(GetCloudAccountGcpArgs args, InvokeOptions options)
public static Output<GetCloudAccountGcpResult> getCloudAccountGcp(GetCloudAccountGcpArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vra:index/getCloudAccountGcp:getCloudAccountGcp
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
The id of this GCP cloud account.
Name string
The name of this GCP cloud account.
Tags List<GetCloudAccountGcpTag>
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 GCP cloud account.
Name string
The name of this GCP cloud account.
Tags []GetCloudAccountGcpTag
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 GCP cloud account.
name String
The name of this GCP cloud account.
tags List<GetCloudAccountGcpTag>
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 GCP cloud account.
name string
The name of this GCP cloud account.
tags GetCloudAccountGcpTag[]
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 GCP cloud account.
name str
The name of this GCP cloud account.
tags Sequence[GetCloudAccountGcpTag]
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 GCP cloud account.
name String
The name of this GCP cloud account.
tags List<Property Map>
A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]

getCloudAccountGcp Result

The following output properties are available:

ClientEmail string
GCP Client email.
CreatedAt string
Date when the entity was created. The date is in ISO 6801 and UTC.
Description string
A human-friendly description.
Id string
Links List<GetCloudAccountGcpLink>
HATEOAS of the entity.
Name string
OrgId string
The id of the organization this entity belongs to.
Owner string
Email of the user that owns the entity.
PrivateKeyId string
GCP Private key ID.
ProjectId string
GCP Project ID.
Regions List<string>
A set of region names that are enabled for this account.
UpdatedAt string
Date when the entity was last updated. The date is ISO 8601 and UTC.
Tags List<GetCloudAccountGcpTag>
A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
ClientEmail string
GCP Client email.
CreatedAt string
Date when the entity was created. The date is in ISO 6801 and UTC.
Description string
A human-friendly description.
Id string
Links []GetCloudAccountGcpLink
HATEOAS of the entity.
Name string
OrgId string
The id of the organization this entity belongs to.
Owner string
Email of the user that owns the entity.
PrivateKeyId string
GCP Private key ID.
ProjectId string
GCP Project ID.
Regions []string
A set of region names that are enabled for this account.
UpdatedAt string
Date when the entity was last updated. The date is ISO 8601 and UTC.
Tags []GetCloudAccountGcpTag
A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
clientEmail String
GCP Client email.
createdAt String
Date when the entity was created. The date is in ISO 6801 and UTC.
description String
A human-friendly description.
id String
links List<GetCloudAccountGcpLink>
HATEOAS of the entity.
name String
orgId String
The id of the organization this entity belongs to.
owner String
Email of the user that owns the entity.
privateKeyId String
GCP Private key ID.
projectId String
GCP Project ID.
regions List<String>
A set of region names that are enabled for this account.
updatedAt String
Date when the entity was last updated. The date is ISO 8601 and UTC.
tags List<GetCloudAccountGcpTag>
A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
clientEmail string
GCP Client email.
createdAt string
Date when the entity was created. The date is in ISO 6801 and UTC.
description string
A human-friendly description.
id string
links GetCloudAccountGcpLink[]
HATEOAS of the entity.
name string
orgId string
The id of the organization this entity belongs to.
owner string
Email of the user that owns the entity.
privateKeyId string
GCP Private key ID.
projectId string
GCP Project ID.
regions string[]
A set of region names that are enabled for this account.
updatedAt string
Date when the entity was last updated. The date is ISO 8601 and UTC.
tags GetCloudAccountGcpTag[]
A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
client_email str
GCP Client email.
created_at str
Date when the entity was created. The date is in ISO 6801 and UTC.
description str
A human-friendly description.
id str
links Sequence[GetCloudAccountGcpLink]
HATEOAS of the entity.
name str
org_id str
The id of the organization this entity belongs to.
owner str
Email of the user that owns the entity.
private_key_id str
GCP Private key ID.
project_id str
GCP Project ID.
regions Sequence[str]
A set of region names that are enabled for this account.
updated_at str
Date when the entity was last updated. The date is ISO 8601 and UTC.
tags Sequence[GetCloudAccountGcpTag]
A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
clientEmail String
GCP Client email.
createdAt String
Date when the entity was created. The date is in ISO 6801 and UTC.
description String
A human-friendly description.
id String
links List<Property Map>
HATEOAS of the entity.
name String
orgId String
The id of the organization this entity belongs to.
owner String
Email of the user that owns the entity.
privateKeyId String
GCP Private key ID.
projectId String
GCP Project ID.
regions List<String>
A set of region names that are enabled for this account.
updatedAt String
Date when the entity was last updated. The date is ISO 8601 and UTC.
tags List<Property Map>
A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]

Supporting Types

Href This property is required. string
Hrefs This property is required. List<string>
Rel This property is required. string
Href This property is required. string
Hrefs This property is required. []string
Rel This property is required. string
href This property is required. String
hrefs This property is required. List<String>
rel This property is required. String
href This property is required. string
hrefs This property is required. string[]
rel This property is required. string
href This property is required. str
hrefs This property is required. Sequence[str]
rel This property is required. str
href This property is required. String
hrefs This property is required. List<String>
rel This property is required. String

GetCloudAccountGcpTag

Key This property is required. string
Tag’s key.
Value This property is required. string
Tag’s value.
Key This property is required. string
Tag’s key.
Value This property is required. string
Tag’s value.
key This property is required. String
Tag’s key.
value This property is required. String
Tag’s value.
key This property is required. string
Tag’s key.
value This property is required. string
Tag’s value.
key This property is required. str
Tag’s key.
value This property is required. str
Tag’s value.
key This property is required. String
Tag’s key.
value This property is required. String
Tag’s value.

Package Details

Repository
vra vmware/terraform-provider-vra
License
Notes
This Pulumi package is based on the vra Terraform Provider.