vra.CloudAccountGcp
Explore with Pulumi AI
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:
- Client
Email string - GCP Client email.
- Private
Key string - GCP Private key.
- Private
Key stringId - GCP Private key ID.
- Project
Id string - GCP Project ID.
- Regions List<string>
- Set of region names enabled for the cloud account.
- Cloud
Account stringGcp Id - ID of GCP cloud account.
- Description string
- Human-friendly description.
- Name string
- Name of GCP cloud account.
- List<Cloud
Account Gcp Tag> - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- Client
Email string - GCP Client email.
- Private
Key string - GCP Private key.
- Private
Key stringId - GCP Private key ID.
- Project
Id string - GCP Project ID.
- Regions []string
- Set of region names enabled for the cloud account.
- Cloud
Account stringGcp Id - ID of GCP cloud account.
- Description string
- Human-friendly description.
- Name string
- Name of GCP cloud account.
- []Cloud
Account Gcp Tag Args - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- client
Email String - GCP Client email.
- private
Key String - GCP Private key.
- private
Key StringId - GCP Private key ID.
- project
Id String - GCP Project ID.
- regions List<String>
- Set of region names enabled for the cloud account.
- cloud
Account StringGcp Id - ID of GCP cloud account.
- description String
- Human-friendly description.
- name String
- Name of GCP cloud account.
- List<Cloud
Account Gcp Tag> - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- client
Email string - GCP Client email.
- private
Key string - GCP Private key.
- private
Key stringId - GCP Private key ID.
- project
Id string - GCP Project ID.
- regions string[]
- Set of region names enabled for the cloud account.
- cloud
Account stringGcp Id - ID of GCP cloud account.
- description string
- Human-friendly description.
- name string
- Name of GCP cloud account.
- Cloud
Account Gcp Tag[] - 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_ strid - GCP Private key ID.
- project_
id str - GCP Project ID.
- regions Sequence[str]
- Set of region names enabled for the cloud account.
- cloud_
account_ strgcp_ id - ID of GCP cloud account.
- description str
- Human-friendly description.
- name str
- Name of GCP cloud account.
- Sequence[Cloud
Account Gcp Tag Args] - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- client
Email String - GCP Client email.
- private
Key String - GCP Private key.
- private
Key StringId - GCP Private key ID.
- project
Id String - GCP Project ID.
- regions List<String>
- Set of region names enabled for the cloud account.
- cloud
Account StringGcp Id - ID of GCP cloud account.
- description String
- Human-friendly description.
- name String
- Name of GCP cloud account.
- 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:
- Created
At 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<Cloud
Account Gcp Link> - HATEOAS of entity.
- Org
Id string - ID of organization that entity belongs to.
- Owner string
- Email of entity owner.
- Updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- Created
At 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
[]Cloud
Account Gcp Link - HATEOAS of entity.
- Org
Id string - ID of organization that entity belongs to.
- Owner string
- Email of entity owner.
- Updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- created
At 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<Cloud
Account Gcp Link> - HATEOAS of entity.
- org
Id String - ID of organization that entity belongs to.
- owner String
- Email of entity owner.
- updated
At String - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- created
At 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
Cloud
Account Gcp Link[] - HATEOAS of entity.
- org
Id string - ID of organization that entity belongs to.
- owner string
- Email of entity owner.
- updated
At 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[Cloud
Account Gcp Link] - 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.
- created
At 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.
- org
Id String - ID of organization that entity belongs to.
- owner String
- Email of entity owner.
- updated
At 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.
- Client
Email string - GCP Client email.
- Cloud
Account stringGcp Id - ID of GCP cloud account.
- Created
At string - Date when entity was created. Date and time format is ISO 8601 and UTC.
- Description string
- Human-friendly description.
- Links
List<Cloud
Account Gcp Link> - HATEOAS of entity.
- Name string
- Name of GCP cloud account.
- Org
Id string - ID of organization that entity belongs to.
- Owner string
- Email of entity owner.
- Private
Key string - GCP Private key.
- Private
Key stringId - GCP Private key ID.
- Project
Id string - GCP Project ID.
- Regions List<string>
- Set of region names enabled for the cloud account.
- List<Cloud
Account Gcp Tag> - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- Updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- Client
Email string - GCP Client email.
- Cloud
Account stringGcp Id - ID of GCP cloud account.
- Created
At string - Date when entity was created. Date and time format is ISO 8601 and UTC.
- Description string
- Human-friendly description.
- Links
[]Cloud
Account Gcp Link Args - HATEOAS of entity.
- Name string
- Name of GCP cloud account.
- Org
Id string - ID of organization that entity belongs to.
- Owner string
- Email of entity owner.
- Private
Key string - GCP Private key.
- Private
Key stringId - GCP Private key ID.
- Project
Id string - GCP Project ID.
- Regions []string
- Set of region names enabled for the cloud account.
- []Cloud
Account Gcp Tag Args - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- Updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- client
Email String - GCP Client email.
- cloud
Account StringGcp Id - ID of GCP cloud account.
- created
At String - Date when entity was created. Date and time format is ISO 8601 and UTC.
- description String
- Human-friendly description.
- links
List<Cloud
Account Gcp Link> - HATEOAS of entity.
- name String
- Name of GCP cloud account.
- org
Id String - ID of organization that entity belongs to.
- owner String
- Email of entity owner.
- private
Key String - GCP Private key.
- private
Key StringId - GCP Private key ID.
- project
Id String - GCP Project ID.
- regions List<String>
- Set of region names enabled for the cloud account.
- List<Cloud
Account Gcp Tag> - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- updated
At String - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- client
Email string - GCP Client email.
- cloud
Account stringGcp Id - ID of GCP cloud account.
- created
At string - Date when entity was created. Date and time format is ISO 8601 and UTC.
- description string
- Human-friendly description.
- links
Cloud
Account Gcp Link[] - HATEOAS of entity.
- name string
- Name of GCP cloud account.
- org
Id string - ID of organization that entity belongs to.
- owner string
- Email of entity owner.
- private
Key string - GCP Private key.
- private
Key stringId - GCP Private key ID.
- project
Id string - GCP Project ID.
- regions string[]
- Set of region names enabled for the cloud account.
- Cloud
Account Gcp Tag[] - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- client_
email str - GCP Client email.
- cloud_
account_ strgcp_ id - 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[Cloud
Account Gcp Link Args] - 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_ strid - GCP Private key ID.
- project_
id str - GCP Project ID.
- regions Sequence[str]
- Set of region names enabled for the cloud account.
- Sequence[Cloud
Account Gcp Tag Args] - 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.
- client
Email String - GCP Client email.
- cloud
Account StringGcp Id - ID of GCP cloud account.
- created
At 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.
- org
Id String - ID of organization that entity belongs to.
- owner String
- Email of entity owner.
- private
Key String - GCP Private key.
- private
Key StringId - GCP Private key ID.
- project
Id String - GCP Project ID.
- regions List<String>
- Set of region names enabled for the cloud account.
- List<Property Map>
- Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- updated
At String - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
Supporting Types
CloudAccountGcpLink, CloudAccountGcpLinkArgs
CloudAccountGcpTag, CloudAccountGcpTagArgs
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.