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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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 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 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",
});
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"),
})
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());
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")
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",
});
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
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
- Client
Id string - Client id
- Client
X509Cert stringUrl - client x509 certificate URL
- Private
Key string - Private key
- Private
Key stringId - Private key ID
- Project
Id string - Project ID
- Cloudaccount
Gcp stringId - The ID of the GCP cloud account
- Domain
Name string - The domain name
- Gsuite
User string - The Gsuite user
- Name string
- Google account name in Dome9
- Organizational
Unit stringId - Organizational Unit that this cloud account will be attached to
- Client
Email string - GCP client email
- Client
Id string - Client id
- Client
X509Cert stringUrl - client x509 certificate URL
- Private
Key string - Private key
- Private
Key stringId - Private key ID
- Project
Id string - Project ID
- Cloudaccount
Gcp stringId - The ID of the GCP cloud account
- Domain
Name string - The domain name
- Gsuite
User string - The Gsuite user
- Name string
- Google account name in Dome9
- Organizational
Unit stringId - Organizational Unit that this cloud account will be attached to
- client
Email String - GCP client email
- client
Id String - Client id
- client
X509Cert StringUrl - client x509 certificate URL
- private
Key String - Private key
- private
Key StringId - Private key ID
- project
Id String - Project ID
- cloudaccount
Gcp StringId - The ID of the GCP cloud account
- domain
Name String - The domain name
- gsuite
User String - The Gsuite user
- name String
- Google account name in Dome9
- organizational
Unit StringId - Organizational Unit that this cloud account will be attached to
- client
Email string - GCP client email
- client
Id string - Client id
- client
X509Cert stringUrl - client x509 certificate URL
- private
Key string - Private key
- private
Key stringId - Private key ID
- project
Id string - Project ID
- cloudaccount
Gcp stringId - The ID of the GCP cloud account
- domain
Name string - The domain name
- gsuite
User string - The Gsuite user
- name string
- Google account name in Dome9
- organizational
Unit stringId - Organizational Unit that this cloud account will be attached to
- client_
email str - GCP client email
- client_
id str - Client id
- client_
x509_ strcert_ url - client x509 certificate URL
- private_
key str - Private key
- private_
key_ strid - Private key ID
- project_
id str - Project ID
- cloudaccount_
gcp_ strid - 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_ strid - Organizational Unit that this cloud account will be attached to
- client
Email String - GCP client email
- client
Id String - Client id
- client
X509Cert StringUrl - client x509 certificate URL
- private
Key String - Private key
- private
Key StringId - Private key ID
- project
Id String - Project ID
- cloudaccount
Gcp StringId - The ID of the GCP cloud account
- domain
Name String - The domain name
- gsuite
User String - The Gsuite user
- name String
- Google account name in Dome9
- organizational
Unit StringId - 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.
- Organizational
Unit stringName - Organizational unit name.
- Organizational
Unit stringPath - Organizational unit path.
- Vendor string
- The cloud provider (gcp).
- Id string
- The provider-assigned unique ID for this managed resource.
- Organizational
Unit stringName - Organizational unit name.
- Organizational
Unit stringPath - Organizational unit path.
- Vendor string
- The cloud provider (gcp).
- id String
- The provider-assigned unique ID for this managed resource.
- organizational
Unit StringName - Organizational unit name.
- organizational
Unit StringPath - Organizational unit path.
- vendor String
- The cloud provider (gcp).
- id string
- The provider-assigned unique ID for this managed resource.
- organizational
Unit stringName - Organizational unit name.
- organizational
Unit stringPath - Organizational unit path.
- vendor string
- The cloud provider (gcp).
- id str
- The provider-assigned unique ID for this managed resource.
- organizational_
unit_ strname - Organizational unit name.
- organizational_
unit_ strpath - Organizational unit path.
- vendor str
- The cloud provider (gcp).
- id String
- The provider-assigned unique ID for this managed resource.
- organizational
Unit StringName - Organizational unit name.
- organizational
Unit StringPath - 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
- 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
- Client
Id string - Client id
- Client
X509Cert stringUrl - client x509 certificate URL
- Cloudaccount
Gcp stringId - The ID of the GCP cloud account
- Domain
Name string - The domain name
- Gsuite
User string - The Gsuite user
- Name string
- Google account name in Dome9
- Organizational
Unit stringId - Organizational Unit that this cloud account will be attached to
- Organizational
Unit stringName - Organizational unit name.
- Organizational
Unit stringPath - Organizational unit path.
- Private
Key string - Private key
- Private
Key stringId - Private key ID
- Project
Id string - Project ID
- Vendor string
- The cloud provider (gcp).
- Client
Email string - GCP client email
- Client
Id string - Client id
- Client
X509Cert stringUrl - client x509 certificate URL
- Cloudaccount
Gcp stringId - The ID of the GCP cloud account
- Domain
Name string - The domain name
- Gsuite
User string - The Gsuite user
- Name string
- Google account name in Dome9
- Organizational
Unit stringId - Organizational Unit that this cloud account will be attached to
- Organizational
Unit stringName - Organizational unit name.
- Organizational
Unit stringPath - Organizational unit path.
- Private
Key string - Private key
- Private
Key stringId - Private key ID
- Project
Id string - Project ID
- Vendor string
- The cloud provider (gcp).
- client
Email String - GCP client email
- client
Id String - Client id
- client
X509Cert StringUrl - client x509 certificate URL
- cloudaccount
Gcp StringId - The ID of the GCP cloud account
- domain
Name String - The domain name
- gsuite
User String - The Gsuite user
- name String
- Google account name in Dome9
- organizational
Unit StringId - Organizational Unit that this cloud account will be attached to
- organizational
Unit StringName - Organizational unit name.
- organizational
Unit StringPath - Organizational unit path.
- private
Key String - Private key
- private
Key StringId - Private key ID
- project
Id String - Project ID
- vendor String
- The cloud provider (gcp).
- client
Email string - GCP client email
- client
Id string - Client id
- client
X509Cert stringUrl - client x509 certificate URL
- cloudaccount
Gcp stringId - The ID of the GCP cloud account
- domain
Name string - The domain name
- gsuite
User string - The Gsuite user
- name string
- Google account name in Dome9
- organizational
Unit stringId - Organizational Unit that this cloud account will be attached to
- organizational
Unit stringName - Organizational unit name.
- organizational
Unit stringPath - Organizational unit path.
- private
Key string - Private key
- private
Key stringId - Private key ID
- project
Id string - Project ID
- vendor string
- The cloud provider (gcp).
- client_
email str - GCP client email
- client_
id str - Client id
- client_
x509_ strcert_ url - client x509 certificate URL
- cloudaccount_
gcp_ strid - 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_ strid - Organizational Unit that this cloud account will be attached to
- organizational_
unit_ strname - Organizational unit name.
- organizational_
unit_ strpath - Organizational unit path.
- private_
key str - Private key
- private_
key_ strid - Private key ID
- project_
id str - Project ID
- vendor str
- The cloud provider (gcp).
- client
Email String - GCP client email
- client
Id String - Client id
- client
X509Cert StringUrl - client x509 certificate URL
- cloudaccount
Gcp StringId - The ID of the GCP cloud account
- domain
Name String - The domain name
- gsuite
User String - The Gsuite user
- name String
- Google account name in Dome9
- organizational
Unit StringId - Organizational Unit that this cloud account will be attached to
- organizational
Unit StringName - Organizational unit name.
- organizational
Unit StringPath - Organizational unit path.
- private
Key String - Private key
- private
Key StringId - Private key ID
- project
Id 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
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.