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

vra.CloudAccountGcp

Explore with Pulumi AI

vra logo
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

    Creates a VMware vRealize Automation GCP cloud account resource.

    Example Usage

    S

    The following example shows how to create a GCP cloud account resource.

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = new vra.CloudAccountGcp("this", {
        clientEmail: "client_email",
        description: "terraform test cloud account gcp",
        privateKey: "private_key",
        privateKeyId: "private_key_id",
        projectId: "project_id",
        regions: [
            "us-west1",
            "us-west2",
        ],
        tags: [{
            key: "foo",
            value: "bar",
        }],
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.CloudAccountGcp("this",
        client_email="client_email",
        description="terraform test cloud account gcp",
        private_key="private_key",
        private_key_id="private_key_id",
        project_id="project_id",
        regions=[
            "us-west1",
            "us-west2",
        ],
        tags=[{
            "key": "foo",
            "value": "bar",
        }])
    
    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.NewCloudAccountGcp(ctx, "this", &vra.CloudAccountGcpArgs{
    			ClientEmail:  pulumi.String("client_email"),
    			Description:  pulumi.String("terraform test cloud account gcp"),
    			PrivateKey:   pulumi.String("private_key"),
    			PrivateKeyId: pulumi.String("private_key_id"),
    			ProjectId:    pulumi.String("project_id"),
    			Regions: pulumi.StringArray{
    				pulumi.String("us-west1"),
    				pulumi.String("us-west2"),
    			},
    			Tags: vra.CloudAccountGcpTagArray{
    				&vra.CloudAccountGcpTagArgs{
    					Key:   pulumi.String("foo"),
    					Value: pulumi.String("bar"),
    				},
    			},
    		})
    		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 = new Vra.CloudAccountGcp("this", new()
        {
            ClientEmail = "client_email",
            Description = "terraform test cloud account gcp",
            PrivateKey = "private_key",
            PrivateKeyId = "private_key_id",
            ProjectId = "project_id",
            Regions = new[]
            {
                "us-west1",
                "us-west2",
            },
            Tags = new[]
            {
                new Vra.Inputs.CloudAccountGcpTagArgs
                {
                    Key = "foo",
                    Value = "bar",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vra.CloudAccountGcp;
    import com.pulumi.vra.CloudAccountGcpArgs;
    import com.pulumi.vra.inputs.CloudAccountGcpTagArgs;
    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) {
            var this_ = new CloudAccountGcp("this", CloudAccountGcpArgs.builder()
                .clientEmail("client_email")
                .description("terraform test cloud account gcp")
                .privateKey("private_key")
                .privateKeyId("private_key_id")
                .projectId("project_id")
                .regions(            
                    "us-west1",
                    "us-west2")
                .tags(CloudAccountGcpTagArgs.builder()
                    .key("foo")
                    .value("bar")
                    .build())
                .build());
    
        }
    }
    
    resources:
      this:
        type: vra:CloudAccountGcp
        properties:
          clientEmail: client_email
          description: terraform test cloud account gcp
          privateKey: private_key
          privateKeyId: private_key_id
          projectId: project_id
          regions:
            - us-west1
            - us-west2
          tags:
            - key: foo
              value: bar
    

    Create CloudAccountGcp Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CloudAccountGcp(name: string, args: CloudAccountGcpArgs, opts?: CustomResourceOptions);
    @overload
    def CloudAccountGcp(resource_name: str,
                        args: CloudAccountGcpArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudAccountGcp(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        client_email: Optional[str] = None,
                        private_key: Optional[str] = None,
                        private_key_id: Optional[str] = None,
                        project_id: Optional[str] = None,
                        regions: Optional[Sequence[str]] = None,
                        cloud_account_gcp_id: Optional[str] = None,
                        description: Optional[str] = None,
                        name: Optional[str] = None,
                        tags: Optional[Sequence[CloudAccountGcpTagArgs]] = None)
    func NewCloudAccountGcp(ctx *Context, name string, args CloudAccountGcpArgs, opts ...ResourceOption) (*CloudAccountGcp, error)
    public CloudAccountGcp(string name, CloudAccountGcpArgs args, CustomResourceOptions? opts = null)
    public CloudAccountGcp(String name, CloudAccountGcpArgs args)
    public CloudAccountGcp(String name, CloudAccountGcpArgs args, CustomResourceOptions options)
    
    type: vra:CloudAccountGcp
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CloudAccountGcpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CloudAccountGcpArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CloudAccountGcpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudAccountGcpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudAccountGcpArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cloudAccountGcpResource = new Vra.CloudAccountGcp("cloudAccountGcpResource", new()
    {
        ClientEmail = "string",
        PrivateKey = "string",
        PrivateKeyId = "string",
        ProjectId = "string",
        Regions = new[]
        {
            "string",
        },
        CloudAccountGcpId = "string",
        Description = "string",
        Name = "string",
        Tags = new[]
        {
            new Vra.Inputs.CloudAccountGcpTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := vra.NewCloudAccountGcp(ctx, "cloudAccountGcpResource", &vra.CloudAccountGcpArgs{
    	ClientEmail:  pulumi.String("string"),
    	PrivateKey:   pulumi.String("string"),
    	PrivateKeyId: pulumi.String("string"),
    	ProjectId:    pulumi.String("string"),
    	Regions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	CloudAccountGcpId: pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	Tags: vra.CloudAccountGcpTagArray{
    		&vra.CloudAccountGcpTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var cloudAccountGcpResource = new CloudAccountGcp("cloudAccountGcpResource", CloudAccountGcpArgs.builder()
        .clientEmail("string")
        .privateKey("string")
        .privateKeyId("string")
        .projectId("string")
        .regions("string")
        .cloudAccountGcpId("string")
        .description("string")
        .name("string")
        .tags(CloudAccountGcpTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    cloud_account_gcp_resource = vra.CloudAccountGcp("cloudAccountGcpResource",
        client_email="string",
        private_key="string",
        private_key_id="string",
        project_id="string",
        regions=["string"],
        cloud_account_gcp_id="string",
        description="string",
        name="string",
        tags=[{
            "key": "string",
            "value": "string",
        }])
    
    const cloudAccountGcpResource = new vra.CloudAccountGcp("cloudAccountGcpResource", {
        clientEmail: "string",
        privateKey: "string",
        privateKeyId: "string",
        projectId: "string",
        regions: ["string"],
        cloudAccountGcpId: "string",
        description: "string",
        name: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: vra:CloudAccountGcp
    properties:
        clientEmail: string
        cloudAccountGcpId: string
        description: string
        name: string
        privateKey: string
        privateKeyId: string
        projectId: string
        regions:
            - string
        tags:
            - key: string
              value: string
    

    CloudAccountGcp Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CloudAccountGcp resource accepts the following input properties:

    ClientEmail string
    GCP Client email.
    PrivateKey string
    GCP Private key.
    PrivateKeyId string
    GCP Private key ID.
    ProjectId string
    GCP Project ID.
    Regions List<string>
    Set of region names enabled for the cloud account.
    CloudAccountGcpId string
    ID of GCP cloud account.
    Description string
    Human-friendly description.
    Name string
    Name of GCP cloud account.
    Tags List<CloudAccountGcpTag>
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    ClientEmail string
    GCP Client email.
    PrivateKey string
    GCP Private key.
    PrivateKeyId string
    GCP Private key ID.
    ProjectId string
    GCP Project ID.
    Regions []string
    Set of region names enabled for the cloud account.
    CloudAccountGcpId string
    ID of GCP cloud account.
    Description string
    Human-friendly description.
    Name string
    Name of GCP cloud account.
    Tags []CloudAccountGcpTagArgs
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    clientEmail String
    GCP Client email.
    privateKey String
    GCP Private key.
    privateKeyId String
    GCP Private key ID.
    projectId String
    GCP Project ID.
    regions List<String>
    Set of region names enabled for the cloud account.
    cloudAccountGcpId String
    ID of GCP cloud account.
    description String
    Human-friendly description.
    name String
    Name of GCP cloud account.
    tags List<CloudAccountGcpTag>
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    clientEmail string
    GCP Client email.
    privateKey string
    GCP Private key.
    privateKeyId string
    GCP Private key ID.
    projectId string
    GCP Project ID.
    regions string[]
    Set of region names enabled for the cloud account.
    cloudAccountGcpId string
    ID of GCP cloud account.
    description string
    Human-friendly description.
    name string
    Name of GCP cloud account.
    tags CloudAccountGcpTag[]
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    client_email str
    GCP Client email.
    private_key str
    GCP Private key.
    private_key_id str
    GCP Private key ID.
    project_id str
    GCP Project ID.
    regions Sequence[str]
    Set of region names enabled for the cloud account.
    cloud_account_gcp_id str
    ID of GCP cloud account.
    description str
    Human-friendly description.
    name str
    Name of GCP cloud account.
    tags Sequence[CloudAccountGcpTagArgs]
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    clientEmail String
    GCP Client email.
    privateKey String
    GCP Private key.
    privateKeyId String
    GCP Private key ID.
    projectId String
    GCP Project ID.
    regions List<String>
    Set of region names enabled for the cloud account.
    cloudAccountGcpId String
    ID of GCP cloud account.
    description String
    Human-friendly description.
    name String
    Name of GCP cloud account.
    tags List<Property Map>
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CloudAccountGcp resource produces the following output properties:

    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links List<CloudAccountGcpLink>
    HATEOAS of entity.
    OrgId string
    ID of organization that entity belongs to.
    Owner string
    Email of entity owner.
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links []CloudAccountGcpLink
    HATEOAS of entity.
    OrgId string
    ID of organization that entity belongs to.
    Owner string
    Email of entity owner.
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<CloudAccountGcpLink>
    HATEOAS of entity.
    orgId String
    ID of organization that entity belongs to.
    owner String
    Email of entity owner.
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    createdAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    links CloudAccountGcpLink[]
    HATEOAS of entity.
    orgId string
    ID of organization that entity belongs to.
    owner string
    Email of entity owner.
    updatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    created_at str
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    id str
    The provider-assigned unique ID for this managed resource.
    links Sequence[CloudAccountGcpLink]
    HATEOAS of entity.
    org_id str
    ID of organization that entity belongs to.
    owner str
    Email of entity owner.
    updated_at str
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<Property Map>
    HATEOAS of entity.
    orgId String
    ID of organization that entity belongs to.
    owner String
    Email of entity owner.
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.

    Look up Existing CloudAccountGcp Resource

    Get an existing CloudAccountGcp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CloudAccountGcpState, opts?: CustomResourceOptions): CloudAccountGcp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            client_email: Optional[str] = None,
            cloud_account_gcp_id: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            links: Optional[Sequence[CloudAccountGcpLinkArgs]] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            owner: Optional[str] = None,
            private_key: Optional[str] = None,
            private_key_id: Optional[str] = None,
            project_id: Optional[str] = None,
            regions: Optional[Sequence[str]] = None,
            tags: Optional[Sequence[CloudAccountGcpTagArgs]] = None,
            updated_at: Optional[str] = None) -> CloudAccountGcp
    func GetCloudAccountGcp(ctx *Context, name string, id IDInput, state *CloudAccountGcpState, opts ...ResourceOption) (*CloudAccountGcp, error)
    public static CloudAccountGcp Get(string name, Input<string> id, CloudAccountGcpState? state, CustomResourceOptions? opts = null)
    public static CloudAccountGcp get(String name, Output<String> id, CloudAccountGcpState state, CustomResourceOptions options)
    resources:  _:    type: vra:CloudAccountGcp    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ClientEmail string
    GCP Client email.
    CloudAccountGcpId string
    ID of GCP cloud account.
    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    Description string
    Human-friendly description.
    Links List<CloudAccountGcpLink>
    HATEOAS of entity.
    Name string
    Name of GCP cloud account.
    OrgId string
    ID of organization that entity belongs to.
    Owner string
    Email of entity owner.
    PrivateKey string
    GCP Private key.
    PrivateKeyId string
    GCP Private key ID.
    ProjectId string
    GCP Project ID.
    Regions List<string>
    Set of region names enabled for the cloud account.
    Tags List<CloudAccountGcpTag>
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    ClientEmail string
    GCP Client email.
    CloudAccountGcpId string
    ID of GCP cloud account.
    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    Description string
    Human-friendly description.
    Links []CloudAccountGcpLinkArgs
    HATEOAS of entity.
    Name string
    Name of GCP cloud account.
    OrgId string
    ID of organization that entity belongs to.
    Owner string
    Email of entity owner.
    PrivateKey string
    GCP Private key.
    PrivateKeyId string
    GCP Private key ID.
    ProjectId string
    GCP Project ID.
    Regions []string
    Set of region names enabled for the cloud account.
    Tags []CloudAccountGcpTagArgs
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    clientEmail String
    GCP Client email.
    cloudAccountGcpId String
    ID of GCP cloud account.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    description String
    Human-friendly description.
    links List<CloudAccountGcpLink>
    HATEOAS of entity.
    name String
    Name of GCP cloud account.
    orgId String
    ID of organization that entity belongs to.
    owner String
    Email of entity owner.
    privateKey String
    GCP Private key.
    privateKeyId String
    GCP Private key ID.
    projectId String
    GCP Project ID.
    regions List<String>
    Set of region names enabled for the cloud account.
    tags List<CloudAccountGcpTag>
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    clientEmail string
    GCP Client email.
    cloudAccountGcpId string
    ID of GCP cloud account.
    createdAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    description string
    Human-friendly description.
    links CloudAccountGcpLink[]
    HATEOAS of entity.
    name string
    Name of GCP cloud account.
    orgId string
    ID of organization that entity belongs to.
    owner string
    Email of entity owner.
    privateKey string
    GCP Private key.
    privateKeyId string
    GCP Private key ID.
    projectId string
    GCP Project ID.
    regions string[]
    Set of region names enabled for the cloud account.
    tags CloudAccountGcpTag[]
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    updatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    client_email str
    GCP Client email.
    cloud_account_gcp_id str
    ID of GCP cloud account.
    created_at str
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    description str
    Human-friendly description.
    links Sequence[CloudAccountGcpLinkArgs]
    HATEOAS of entity.
    name str
    Name of GCP cloud account.
    org_id str
    ID of organization that entity belongs to.
    owner str
    Email of entity owner.
    private_key str
    GCP Private key.
    private_key_id str
    GCP Private key ID.
    project_id str
    GCP Project ID.
    regions Sequence[str]
    Set of region names enabled for the cloud account.
    tags Sequence[CloudAccountGcpTagArgs]
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    updated_at str
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    clientEmail String
    GCP Client email.
    cloudAccountGcpId String
    ID of GCP cloud account.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    description String
    Human-friendly description.
    links List<Property Map>
    HATEOAS of entity.
    name String
    Name of GCP cloud account.
    orgId String
    ID of organization that entity belongs to.
    owner String
    Email of entity owner.
    privateKey String
    GCP Private key.
    privateKeyId String
    GCP Private key ID.
    projectId String
    GCP Project ID.
    regions List<String>
    Set of region names enabled for the cloud account.
    tags List<Property Map>
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.

    Supporting Types

    Href string
    Hrefs List<string>
    Rel string
    Href string
    Hrefs []string
    Rel string
    href String
    hrefs List<String>
    rel String
    href string
    hrefs string[]
    rel string
    href str
    hrefs Sequence[str]
    rel str
    href String
    hrefs List<String>
    rel String

    CloudAccountGcpTag, CloudAccountGcpTagArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    Import

    To import the GCP cloud account, use the ID as in the following example:

    $ pulumi import vra:index/cloudAccountGcp:CloudAccountGcp new_gcp 05956583-6488-4e7d-84c9-92a7b7219a15`
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    vra vmware/terraform-provider-vra
    License
    Notes
    This Pulumi package is based on the vra Terraform Provider.
    vra logo
    vra 0.12.0 published on Monday, Apr 14, 2025 by vmware