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

dome9.CloudaccountOci

Explore with Pulumi AI

This resource is used to onboard oci 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.

The resource can be used only after ‘dome9_cloudaccount_oci_temp_data’ resource is created.

Example Usage

Basic usage:

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

const test = new dome9.CloudaccountOci("test", {
    tenancyId: "TENANCY_ID",
    userOcid: "USER_OCID",
});
Copy
import pulumi
import pulumi_dome9 as dome9

test = dome9.CloudaccountOci("test",
    tenancy_id="TENANCY_ID",
    user_ocid="USER_OCID")
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.NewCloudaccountOci(ctx, "test", &dome9.CloudaccountOciArgs{
			TenancyId: pulumi.String("TENANCY_ID"),
			UserOcid:  pulumi.String("USER_OCID"),
		})
		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 test = new Dome9.CloudaccountOci("test", new()
    {
        TenancyId = "TENANCY_ID",
        UserOcid = "USER_OCID",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dome9.CloudaccountOci;
import com.pulumi.dome9.CloudaccountOciArgs;
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 test = new CloudaccountOci("test", CloudaccountOciArgs.builder()
            .tenancyId("TENANCY_ID")
            .userOcid("USER_OCID")
            .build());

    }
}
Copy
resources:
  test:
    type: dome9:CloudaccountOci
    properties:
      tenancyId: TENANCY_ID
      userOcid: USER_OCID
Copy

Advanced full usage (you must use these OCI resources, so we can get all permissions. Also, the OCI provider must be used to create these resources):

Create CloudaccountOci Resource

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

Constructor syntax

new CloudaccountOci(name: string, args: CloudaccountOciArgs, opts?: CustomResourceOptions);
@overload
def CloudaccountOci(resource_name: str,
                    args: CloudaccountOciArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def CloudaccountOci(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    tenancy_id: Optional[str] = None,
                    user_ocid: Optional[str] = None,
                    cloudaccount_oci_id: Optional[str] = None,
                    organizational_unit_id: Optional[str] = None)
func NewCloudaccountOci(ctx *Context, name string, args CloudaccountOciArgs, opts ...ResourceOption) (*CloudaccountOci, error)
public CloudaccountOci(string name, CloudaccountOciArgs args, CustomResourceOptions? opts = null)
public CloudaccountOci(String name, CloudaccountOciArgs args)
public CloudaccountOci(String name, CloudaccountOciArgs args, CustomResourceOptions options)
type: dome9:CloudaccountOci
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. CloudaccountOciArgs
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. CloudaccountOciArgs
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. CloudaccountOciArgs
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. CloudaccountOciArgs
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. CloudaccountOciArgs
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 cloudaccountOciResource = new Dome9.CloudaccountOci("cloudaccountOciResource", new()
{
    TenancyId = "string",
    UserOcid = "string",
    CloudaccountOciId = "string",
    OrganizationalUnitId = "string",
});
Copy
example, err := dome9.NewCloudaccountOci(ctx, "cloudaccountOciResource", &dome9.CloudaccountOciArgs{
TenancyId: pulumi.String("string"),
UserOcid: pulumi.String("string"),
CloudaccountOciId: pulumi.String("string"),
OrganizationalUnitId: pulumi.String("string"),
})
Copy
var cloudaccountOciResource = new CloudaccountOci("cloudaccountOciResource", CloudaccountOciArgs.builder()
    .tenancyId("string")
    .userOcid("string")
    .cloudaccountOciId("string")
    .organizationalUnitId("string")
    .build());
Copy
cloudaccount_oci_resource = dome9.CloudaccountOci("cloudaccountOciResource",
    tenancy_id="string",
    user_ocid="string",
    cloudaccount_oci_id="string",
    organizational_unit_id="string")
Copy
const cloudaccountOciResource = new dome9.CloudaccountOci("cloudaccountOciResource", {
    tenancyId: "string",
    userOcid: "string",
    cloudaccountOciId: "string",
    organizationalUnitId: "string",
});
Copy
type: dome9:CloudaccountOci
properties:
    cloudaccountOciId: string
    organizationalUnitId: string
    tenancyId: string
    userOcid: string
Copy

CloudaccountOci 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 CloudaccountOci resource accepts the following input properties:

TenancyId This property is required. string
The tenancy id.
UserOcid This property is required. string
The user ocid.
CloudaccountOciId string
OCI account id (in Dome9).
OrganizationalUnitId string
Organizational unit id.
TenancyId This property is required. string
The tenancy id.
UserOcid This property is required. string
The user ocid.
CloudaccountOciId string
OCI account id (in Dome9).
OrganizationalUnitId string
Organizational unit id.
tenancyId This property is required. String
The tenancy id.
userOcid This property is required. String
The user ocid.
cloudaccountOciId String
OCI account id (in Dome9).
organizationalUnitId String
Organizational unit id.
tenancyId This property is required. string
The tenancy id.
userOcid This property is required. string
The user ocid.
cloudaccountOciId string
OCI account id (in Dome9).
organizationalUnitId string
Organizational unit id.
tenancy_id This property is required. str
The tenancy id.
user_ocid This property is required. str
The user ocid.
cloudaccount_oci_id str
OCI account id (in Dome9).
organizational_unit_id str
Organizational unit id.
tenancyId This property is required. String
The tenancy id.
userOcid This property is required. String
The user ocid.
cloudaccountOciId String
OCI account id (in Dome9).
organizationalUnitId String
Organizational unit id.

Outputs

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

CreationDate string
Date the account was onboarded to Dome9
Credentials Dictionary<string, string>
Has the following arguments:
HomeRegion string
The home region.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the OCI account in Dome9
OrganizationalUnitName string
Organizational unit name
OrganizationalUnitPath string
Organizational unit path
Vendor string
The cloud provider ("oci")
CreationDate string
Date the account was onboarded to Dome9
Credentials map[string]string
Has the following arguments:
HomeRegion string
The home region.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the OCI account in Dome9
OrganizationalUnitName string
Organizational unit name
OrganizationalUnitPath string
Organizational unit path
Vendor string
The cloud provider ("oci")
creationDate String
Date the account was onboarded to Dome9
credentials Map<String,String>
Has the following arguments:
homeRegion String
The home region.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the OCI account in Dome9
organizationalUnitName String
Organizational unit name
organizationalUnitPath String
Organizational unit path
vendor String
The cloud provider ("oci")
creationDate string
Date the account was onboarded to Dome9
credentials {[key: string]: string}
Has the following arguments:
homeRegion string
The home region.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the OCI account in Dome9
organizationalUnitName string
Organizational unit name
organizationalUnitPath string
Organizational unit path
vendor string
The cloud provider ("oci")
creation_date str
Date the account was onboarded to Dome9
credentials Mapping[str, str]
Has the following arguments:
home_region str
The home region.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the OCI account in Dome9
organizational_unit_name str
Organizational unit name
organizational_unit_path str
Organizational unit path
vendor str
The cloud provider ("oci")
creationDate String
Date the account was onboarded to Dome9
credentials Map<String>
Has the following arguments:
homeRegion String
The home region.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the OCI account in Dome9
organizationalUnitName String
Organizational unit name
organizationalUnitPath String
Organizational unit path
vendor String
The cloud provider ("oci")

Look up Existing CloudaccountOci Resource

Get an existing CloudaccountOci 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?: CloudaccountOciState, opts?: CustomResourceOptions): CloudaccountOci
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloudaccount_oci_id: Optional[str] = None,
        creation_date: Optional[str] = None,
        credentials: Optional[Mapping[str, str]] = None,
        home_region: 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,
        tenancy_id: Optional[str] = None,
        user_ocid: Optional[str] = None,
        vendor: Optional[str] = None) -> CloudaccountOci
func GetCloudaccountOci(ctx *Context, name string, id IDInput, state *CloudaccountOciState, opts ...ResourceOption) (*CloudaccountOci, error)
public static CloudaccountOci Get(string name, Input<string> id, CloudaccountOciState? state, CustomResourceOptions? opts = null)
public static CloudaccountOci get(String name, Output<String> id, CloudaccountOciState state, CustomResourceOptions options)
resources:  _:    type: dome9:CloudaccountOci    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:
CloudaccountOciId string
OCI account id (in Dome9).
CreationDate string
Date the account was onboarded to Dome9
Credentials Dictionary<string, string>
Has the following arguments:
HomeRegion string
The home region.
Name string
The name of the OCI account in Dome9
OrganizationalUnitId string
Organizational unit id.
OrganizationalUnitName string
Organizational unit name
OrganizationalUnitPath string
Organizational unit path
TenancyId string
The tenancy id.
UserOcid string
The user ocid.
Vendor string
The cloud provider ("oci")
CloudaccountOciId string
OCI account id (in Dome9).
CreationDate string
Date the account was onboarded to Dome9
Credentials map[string]string
Has the following arguments:
HomeRegion string
The home region.
Name string
The name of the OCI account in Dome9
OrganizationalUnitId string
Organizational unit id.
OrganizationalUnitName string
Organizational unit name
OrganizationalUnitPath string
Organizational unit path
TenancyId string
The tenancy id.
UserOcid string
The user ocid.
Vendor string
The cloud provider ("oci")
cloudaccountOciId String
OCI account id (in Dome9).
creationDate String
Date the account was onboarded to Dome9
credentials Map<String,String>
Has the following arguments:
homeRegion String
The home region.
name String
The name of the OCI account in Dome9
organizationalUnitId String
Organizational unit id.
organizationalUnitName String
Organizational unit name
organizationalUnitPath String
Organizational unit path
tenancyId String
The tenancy id.
userOcid String
The user ocid.
vendor String
The cloud provider ("oci")
cloudaccountOciId string
OCI account id (in Dome9).
creationDate string
Date the account was onboarded to Dome9
credentials {[key: string]: string}
Has the following arguments:
homeRegion string
The home region.
name string
The name of the OCI account in Dome9
organizationalUnitId string
Organizational unit id.
organizationalUnitName string
Organizational unit name
organizationalUnitPath string
Organizational unit path
tenancyId string
The tenancy id.
userOcid string
The user ocid.
vendor string
The cloud provider ("oci")
cloudaccount_oci_id str
OCI account id (in Dome9).
creation_date str
Date the account was onboarded to Dome9
credentials Mapping[str, str]
Has the following arguments:
home_region str
The home region.
name str
The name of the OCI account in Dome9
organizational_unit_id str
Organizational unit id.
organizational_unit_name str
Organizational unit name
organizational_unit_path str
Organizational unit path
tenancy_id str
The tenancy id.
user_ocid str
The user ocid.
vendor str
The cloud provider ("oci")
cloudaccountOciId String
OCI account id (in Dome9).
creationDate String
Date the account was onboarded to Dome9
credentials Map<String>
Has the following arguments:
homeRegion String
The home region.
name String
The name of the OCI account in Dome9
organizationalUnitId String
Organizational unit id.
organizationalUnitName String
Organizational unit name
organizationalUnitPath String
Organizational unit path
tenancyId String
The tenancy id.
userOcid String
The user ocid.
vendor String
The cloud provider ("oci")

Import

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

For example:

$ pulumi import dome9:index/cloudaccountOci:CloudaccountOci 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.