1. Packages
  2. Dome9 Provider
  3. API Docs
  4. CloudaccountGcp
dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9

dome9.CloudaccountGcp

Explore with Pulumi AI

This resource is used to onboard GCP cloud accounts to Dome9. This is the first and pre-requisite step in order to apply Dome9 features, such as compliance testing, on the account.

Example Usage

Basic usage:

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

const gcpCa = new dome9.CloudaccountGcp("gcpCa", {
    clientEmail: "EMAIL@ADDRESS.COM",
    clientId: "CID",
    clientX509CertUrl: "https://www.googleapis.com/oauth2/v1/certs",
    privateKey: "KEY",
    privateKeyId: "PRIVATE",
    projectId: "ID",
});
Copy
import pulumi
import pulumi_dome9 as dome9

gcp_ca = dome9.CloudaccountGcp("gcpCa",
    client_email="EMAIL@ADDRESS.COM",
    client_id="CID",
    client_x509_cert_url="https://www.googleapis.com/oauth2/v1/certs",
    private_key="KEY",
    private_key_id="PRIVATE",
    project_id="ID")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/dome9/dome9"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dome9.NewCloudaccountGcp(ctx, "gcpCa", &dome9.CloudaccountGcpArgs{
			ClientEmail:       pulumi.String("EMAIL@ADDRESS.COM"),
			ClientId:          pulumi.String("CID"),
			ClientX509CertUrl: pulumi.String("https://www.googleapis.com/oauth2/v1/certs"),
			PrivateKey:        pulumi.String("KEY"),
			PrivateKeyId:      pulumi.String("PRIVATE"),
			ProjectId:         pulumi.String("ID"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dome9 = Pulumi.Dome9;

return await Deployment.RunAsync(() => 
{
    var gcpCa = new Dome9.CloudaccountGcp("gcpCa", new()
    {
        ClientEmail = "EMAIL@ADDRESS.COM",
        ClientId = "CID",
        ClientX509CertUrl = "https://www.googleapis.com/oauth2/v1/certs",
        PrivateKey = "KEY",
        PrivateKeyId = "PRIVATE",
        ProjectId = "ID",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dome9.CloudaccountGcp;
import com.pulumi.dome9.CloudaccountGcpArgs;
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 gcpCa = new CloudaccountGcp("gcpCa", CloudaccountGcpArgs.builder()
            .clientEmail("EMAIL@ADDRESS.COM")
            .clientId("CID")
            .clientX509CertUrl("https://www.googleapis.com/oauth2/v1/certs")
            .privateKey("KEY")
            .privateKeyId("PRIVATE")
            .projectId("ID")
            .build());

    }
}
Copy
resources:
  gcpCa:
    type: dome9:CloudaccountGcp
    properties:
      clientEmail: EMAIL@ADDRESS.COM
      clientId: CID
      clientX509CertUrl: https://www.googleapis.com/oauth2/v1/certs
      privateKey: KEY
      privateKeyId: PRIVATE
      projectId: ID
Copy

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,
                    client_id: Optional[str] = None,
                    client_x509_cert_url: Optional[str] = None,
                    private_key: Optional[str] = None,
                    private_key_id: Optional[str] = None,
                    project_id: Optional[str] = None,
                    cloudaccount_gcp_id: Optional[str] = None,
                    domain_name: Optional[str] = None,
                    gsuite_user: Optional[str] = None,
                    name: Optional[str] = None,
                    organizational_unit_id: Optional[str] = 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: dome9:CloudaccountGcp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CloudaccountGcpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. CloudaccountGcpArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CloudaccountGcpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 Dome9.CloudaccountGcp("cloudaccountGcpResource", new()
{
    ClientEmail = "string",
    ClientId = "string",
    ClientX509CertUrl = "string",
    PrivateKey = "string",
    PrivateKeyId = "string",
    ProjectId = "string",
    CloudaccountGcpId = "string",
    DomainName = "string",
    GsuiteUser = "string",
    Name = "string",
    OrganizationalUnitId = "string",
});
Copy
example, err := dome9.NewCloudaccountGcp(ctx, "cloudaccountGcpResource", &dome9.CloudaccountGcpArgs{
ClientEmail: pulumi.String("string"),
ClientId: pulumi.String("string"),
ClientX509CertUrl: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
PrivateKeyId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
CloudaccountGcpId: pulumi.String("string"),
DomainName: pulumi.String("string"),
GsuiteUser: pulumi.String("string"),
Name: pulumi.String("string"),
OrganizationalUnitId: pulumi.String("string"),
})
Copy
var cloudaccountGcpResource = new CloudaccountGcp("cloudaccountGcpResource", CloudaccountGcpArgs.builder()
    .clientEmail("string")
    .clientId("string")
    .clientX509CertUrl("string")
    .privateKey("string")
    .privateKeyId("string")
    .projectId("string")
    .cloudaccountGcpId("string")
    .domainName("string")
    .gsuiteUser("string")
    .name("string")
    .organizationalUnitId("string")
    .build());
Copy
cloudaccount_gcp_resource = dome9.CloudaccountGcp("cloudaccountGcpResource",
    client_email="string",
    client_id="string",
    client_x509_cert_url="string",
    private_key="string",
    private_key_id="string",
    project_id="string",
    cloudaccount_gcp_id="string",
    domain_name="string",
    gsuite_user="string",
    name="string",
    organizational_unit_id="string")
Copy
const cloudaccountGcpResource = new dome9.CloudaccountGcp("cloudaccountGcpResource", {
    clientEmail: "string",
    clientId: "string",
    clientX509CertUrl: "string",
    privateKey: "string",
    privateKeyId: "string",
    projectId: "string",
    cloudaccountGcpId: "string",
    domainName: "string",
    gsuiteUser: "string",
    name: "string",
    organizationalUnitId: "string",
});
Copy
type: dome9:CloudaccountGcp
properties:
    clientEmail: string
    clientId: string
    clientX509CertUrl: string
    cloudaccountGcpId: string
    domainName: string
    gsuiteUser: string
    name: string
    organizationalUnitId: string
    privateKey: string
    privateKeyId: string
    projectId: string
Copy

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 This property is required. string
GCP client email
ClientId This property is required. string
Client id
ClientX509CertUrl This property is required. string
client x509 certificate URL
PrivateKey This property is required. string
Private key
PrivateKeyId This property is required. string
Private key ID
ProjectId This property is required. string
Project ID
CloudaccountGcpId string
The ID of the GCP cloud account
DomainName string
The domain name
GsuiteUser string
The Gsuite user
Name string
Google account name in Dome9
OrganizationalUnitId string
Organizational Unit that this cloud account will be attached to
ClientEmail This property is required. string
GCP client email
ClientId This property is required. string
Client id
ClientX509CertUrl This property is required. string
client x509 certificate URL
PrivateKey This property is required. string
Private key
PrivateKeyId This property is required. string
Private key ID
ProjectId This property is required. string
Project ID
CloudaccountGcpId string
The ID of the GCP cloud account
DomainName string
The domain name
GsuiteUser string
The Gsuite user
Name string
Google account name in Dome9
OrganizationalUnitId string
Organizational Unit that this cloud account will be attached to
clientEmail This property is required. String
GCP client email
clientId This property is required. String
Client id
clientX509CertUrl This property is required. String
client x509 certificate URL
privateKey This property is required. String
Private key
privateKeyId This property is required. String
Private key ID
projectId This property is required. String
Project ID
cloudaccountGcpId String
The ID of the GCP cloud account
domainName String
The domain name
gsuiteUser String
The Gsuite user
name String
Google account name in Dome9
organizationalUnitId String
Organizational Unit that this cloud account will be attached to
clientEmail This property is required. string
GCP client email
clientId This property is required. string
Client id
clientX509CertUrl This property is required. string
client x509 certificate URL
privateKey This property is required. string
Private key
privateKeyId This property is required. string
Private key ID
projectId This property is required. string
Project ID
cloudaccountGcpId string
The ID of the GCP cloud account
domainName string
The domain name
gsuiteUser string
The Gsuite user
name string
Google account name in Dome9
organizationalUnitId string
Organizational Unit that this cloud account will be attached to
client_email This property is required. str
GCP client email
client_id This property is required. str
Client id
client_x509_cert_url This property is required. str
client x509 certificate URL
private_key This property is required. str
Private key
private_key_id This property is required. str
Private key ID
project_id This property is required. str
Project ID
cloudaccount_gcp_id str
The ID of the GCP cloud account
domain_name str
The domain name
gsuite_user str
The Gsuite user
name str
Google account name in Dome9
organizational_unit_id str
Organizational Unit that this cloud account will be attached to
clientEmail This property is required. String
GCP client email
clientId This property is required. String
Client id
clientX509CertUrl This property is required. String
client x509 certificate URL
privateKey This property is required. String
Private key
privateKeyId This property is required. String
Private key ID
projectId This property is required. String
Project ID
cloudaccountGcpId String
The ID of the GCP cloud account
domainName String
The domain name
gsuiteUser String
The Gsuite user
name String
Google account name in Dome9
organizationalUnitId String
Organizational Unit that this cloud account will be attached to

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
OrganizationalUnitName string
Organizational unit name.
OrganizationalUnitPath string
Organizational unit path.
Vendor string
The cloud provider (gcp).
Id string
The provider-assigned unique ID for this managed resource.
OrganizationalUnitName string
Organizational unit name.
OrganizationalUnitPath string
Organizational unit path.
Vendor string
The cloud provider (gcp).
id String
The provider-assigned unique ID for this managed resource.
organizationalUnitName String
Organizational unit name.
organizationalUnitPath String
Organizational unit path.
vendor String
The cloud provider (gcp).
id string
The provider-assigned unique ID for this managed resource.
organizationalUnitName string
Organizational unit name.
organizationalUnitPath string
Organizational unit path.
vendor string
The cloud provider (gcp).
id str
The provider-assigned unique ID for this managed resource.
organizational_unit_name str
Organizational unit name.
organizational_unit_path str
Organizational unit path.
vendor str
The cloud provider (gcp).
id String
The provider-assigned unique ID for this managed resource.
organizationalUnitName String
Organizational unit name.
organizationalUnitPath String
Organizational unit path.
vendor String
The cloud provider (gcp).

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,
        client_id: Optional[str] = None,
        client_x509_cert_url: Optional[str] = None,
        cloudaccount_gcp_id: Optional[str] = None,
        domain_name: Optional[str] = None,
        gsuite_user: Optional[str] = None,
        name: Optional[str] = None,
        organizational_unit_id: Optional[str] = None,
        organizational_unit_name: Optional[str] = None,
        organizational_unit_path: Optional[str] = None,
        private_key: Optional[str] = None,
        private_key_id: Optional[str] = None,
        project_id: Optional[str] = None,
        vendor: 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: dome9:CloudaccountGcp    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
ClientId string
Client id
ClientX509CertUrl string
client x509 certificate URL
CloudaccountGcpId string
The ID of the GCP cloud account
DomainName string
The domain name
GsuiteUser string
The Gsuite user
Name string
Google account name in Dome9
OrganizationalUnitId string
Organizational Unit that this cloud account will be attached to
OrganizationalUnitName string
Organizational unit name.
OrganizationalUnitPath string
Organizational unit path.
PrivateKey string
Private key
PrivateKeyId string
Private key ID
ProjectId string
Project ID
Vendor string
The cloud provider (gcp).
ClientEmail string
GCP client email
ClientId string
Client id
ClientX509CertUrl string
client x509 certificate URL
CloudaccountGcpId string
The ID of the GCP cloud account
DomainName string
The domain name
GsuiteUser string
The Gsuite user
Name string
Google account name in Dome9
OrganizationalUnitId string
Organizational Unit that this cloud account will be attached to
OrganizationalUnitName string
Organizational unit name.
OrganizationalUnitPath string
Organizational unit path.
PrivateKey string
Private key
PrivateKeyId string
Private key ID
ProjectId string
Project ID
Vendor string
The cloud provider (gcp).
clientEmail String
GCP client email
clientId String
Client id
clientX509CertUrl String
client x509 certificate URL
cloudaccountGcpId String
The ID of the GCP cloud account
domainName String
The domain name
gsuiteUser String
The Gsuite user
name String
Google account name in Dome9
organizationalUnitId String
Organizational Unit that this cloud account will be attached to
organizationalUnitName String
Organizational unit name.
organizationalUnitPath String
Organizational unit path.
privateKey String
Private key
privateKeyId String
Private key ID
projectId String
Project ID
vendor String
The cloud provider (gcp).
clientEmail string
GCP client email
clientId string
Client id
clientX509CertUrl string
client x509 certificate URL
cloudaccountGcpId string
The ID of the GCP cloud account
domainName string
The domain name
gsuiteUser string
The Gsuite user
name string
Google account name in Dome9
organizationalUnitId string
Organizational Unit that this cloud account will be attached to
organizationalUnitName string
Organizational unit name.
organizationalUnitPath string
Organizational unit path.
privateKey string
Private key
privateKeyId string
Private key ID
projectId string
Project ID
vendor string
The cloud provider (gcp).
client_email str
GCP client email
client_id str
Client id
client_x509_cert_url str
client x509 certificate URL
cloudaccount_gcp_id str
The ID of the GCP cloud account
domain_name str
The domain name
gsuite_user str
The Gsuite user
name str
Google account name in Dome9
organizational_unit_id str
Organizational Unit that this cloud account will be attached to
organizational_unit_name str
Organizational unit name.
organizational_unit_path str
Organizational unit path.
private_key str
Private key
private_key_id str
Private key ID
project_id str
Project ID
vendor str
The cloud provider (gcp).
clientEmail String
GCP client email
clientId String
Client id
clientX509CertUrl String
client x509 certificate URL
cloudaccountGcpId String
The ID of the GCP cloud account
domainName String
The domain name
gsuiteUser String
The Gsuite user
name String
Google account name in Dome9
organizationalUnitId String
Organizational Unit that this cloud account will be attached to
organizationalUnitName String
Organizational unit name.
organizationalUnitPath String
Organizational unit path.
privateKey String
Private key
privateKeyId String
Private key ID
projectId String
Project ID
vendor String
The cloud provider (gcp).

Import

GCP cloud account can be imported; use <GCP CLOUD ACCOUNT ID> as the import ID.

For example:

$ pulumi import dome9:index/cloudaccountGcp:CloudaccountGcp test 00000000-0000-0000-0000-000000000000
Copy

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

Package Details

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