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",
});
import pulumi
import pulumi_dome9 as dome9
test = dome9.CloudaccountOci("test",
tenancy_id="TENANCY_ID",
user_ocid="USER_OCID")
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
})
}
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",
});
});
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());
}
}
resources:
test:
type: dome9:CloudaccountOci
properties:
tenancyId: TENANCY_ID
userOcid: USER_OCID
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 string
- The unique name of the resource.
- args CloudaccountOciArgs
- 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 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 string
- The unique name of the resource.
- args CloudaccountOciArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudaccountOciArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := dome9.NewCloudaccountOci(ctx, "cloudaccountOciResource", &dome9.CloudaccountOciArgs{
TenancyId: pulumi.String("string"),
UserOcid: pulumi.String("string"),
CloudaccountOciId: pulumi.String("string"),
OrganizationalUnitId: pulumi.String("string"),
})
var cloudaccountOciResource = new CloudaccountOci("cloudaccountOciResource", CloudaccountOciArgs.builder()
.tenancyId("string")
.userOcid("string")
.cloudaccountOciId("string")
.organizationalUnitId("string")
.build());
cloudaccount_oci_resource = dome9.CloudaccountOci("cloudaccountOciResource",
tenancy_id="string",
user_ocid="string",
cloudaccount_oci_id="string",
organizational_unit_id="string")
const cloudaccountOciResource = new dome9.CloudaccountOci("cloudaccountOciResource", {
tenancyId: "string",
userOcid: "string",
cloudaccountOciId: "string",
organizationalUnitId: "string",
});
type: dome9:CloudaccountOci
properties:
cloudaccountOciId: string
organizationalUnitId: string
tenancyId: string
userOcid: string
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:
- Tenancy
Id string - The tenancy id.
- User
Ocid string - The user ocid.
- Cloudaccount
Oci stringId - OCI account id (in Dome9).
- Organizational
Unit stringId - Organizational unit id.
- Tenancy
Id string - The tenancy id.
- User
Ocid string - The user ocid.
- Cloudaccount
Oci stringId - OCI account id (in Dome9).
- Organizational
Unit stringId - Organizational unit id.
- tenancy
Id String - The tenancy id.
- user
Ocid String - The user ocid.
- cloudaccount
Oci StringId - OCI account id (in Dome9).
- organizational
Unit StringId - Organizational unit id.
- tenancy
Id string - The tenancy id.
- user
Ocid string - The user ocid.
- cloudaccount
Oci stringId - OCI account id (in Dome9).
- organizational
Unit stringId - Organizational unit id.
- tenancy_
id str - The tenancy id.
- user_
ocid str - The user ocid.
- cloudaccount_
oci_ strid - OCI account id (in Dome9).
- organizational_
unit_ strid - Organizational unit id.
- tenancy
Id String - The tenancy id.
- user
Ocid String - The user ocid.
- cloudaccount
Oci StringId - OCI account id (in Dome9).
- organizational
Unit StringId - Organizational unit id.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudaccountOci resource produces the following output properties:
- Creation
Date string - Date the account was onboarded to Dome9
- Credentials Dictionary<string, string>
- Has the following arguments:
- Home
Region 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
- Organizational
Unit stringName - Organizational unit name
- Organizational
Unit stringPath - Organizational unit path
- Vendor string
- The cloud provider ("oci")
- Creation
Date string - Date the account was onboarded to Dome9
- Credentials map[string]string
- Has the following arguments:
- Home
Region 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
- Organizational
Unit stringName - Organizational unit name
- Organizational
Unit stringPath - Organizational unit path
- Vendor string
- The cloud provider ("oci")
- creation
Date String - Date the account was onboarded to Dome9
- credentials Map<String,String>
- Has the following arguments:
- home
Region 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
- organizational
Unit StringName - Organizational unit name
- organizational
Unit StringPath - Organizational unit path
- vendor String
- The cloud provider ("oci")
- creation
Date string - Date the account was onboarded to Dome9
- credentials {[key: string]: string}
- Has the following arguments:
- home
Region 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
- organizational
Unit stringName - Organizational unit name
- organizational
Unit stringPath - 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_ strname - Organizational unit name
- organizational_
unit_ strpath - Organizational unit path
- vendor str
- The cloud provider ("oci")
- creation
Date String - Date the account was onboarded to Dome9
- credentials Map<String>
- Has the following arguments:
- home
Region 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
- organizational
Unit StringName - Organizational unit name
- organizational
Unit StringPath - 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
- 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.
- Cloudaccount
Oci stringId - OCI account id (in Dome9).
- Creation
Date string - Date the account was onboarded to Dome9
- Credentials Dictionary<string, string>
- Has the following arguments:
- Home
Region string - The home region.
- Name string
- The name of the OCI account in Dome9
- Organizational
Unit stringId - Organizational unit id.
- Organizational
Unit stringName - Organizational unit name
- Organizational
Unit stringPath - Organizational unit path
- Tenancy
Id string - The tenancy id.
- User
Ocid string - The user ocid.
- Vendor string
- The cloud provider ("oci")
- Cloudaccount
Oci stringId - OCI account id (in Dome9).
- Creation
Date string - Date the account was onboarded to Dome9
- Credentials map[string]string
- Has the following arguments:
- Home
Region string - The home region.
- Name string
- The name of the OCI account in Dome9
- Organizational
Unit stringId - Organizational unit id.
- Organizational
Unit stringName - Organizational unit name
- Organizational
Unit stringPath - Organizational unit path
- Tenancy
Id string - The tenancy id.
- User
Ocid string - The user ocid.
- Vendor string
- The cloud provider ("oci")
- cloudaccount
Oci StringId - OCI account id (in Dome9).
- creation
Date String - Date the account was onboarded to Dome9
- credentials Map<String,String>
- Has the following arguments:
- home
Region String - The home region.
- name String
- The name of the OCI account in Dome9
- organizational
Unit StringId - Organizational unit id.
- organizational
Unit StringName - Organizational unit name
- organizational
Unit StringPath - Organizational unit path
- tenancy
Id String - The tenancy id.
- user
Ocid String - The user ocid.
- vendor String
- The cloud provider ("oci")
- cloudaccount
Oci stringId - OCI account id (in Dome9).
- creation
Date string - Date the account was onboarded to Dome9
- credentials {[key: string]: string}
- Has the following arguments:
- home
Region string - The home region.
- name string
- The name of the OCI account in Dome9
- organizational
Unit stringId - Organizational unit id.
- organizational
Unit stringName - Organizational unit name
- organizational
Unit stringPath - Organizational unit path
- tenancy
Id string - The tenancy id.
- user
Ocid string - The user ocid.
- vendor string
- The cloud provider ("oci")
- cloudaccount_
oci_ strid - 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_ strid - Organizational unit id.
- organizational_
unit_ strname - Organizational unit name
- organizational_
unit_ strpath - Organizational unit path
- tenancy_
id str - The tenancy id.
- user_
ocid str - The user ocid.
- vendor str
- The cloud provider ("oci")
- cloudaccount
Oci StringId - OCI account id (in Dome9).
- creation
Date String - Date the account was onboarded to Dome9
- credentials Map<String>
- Has the following arguments:
- home
Region String - The home region.
- name String
- The name of the OCI account in Dome9
- organizational
Unit StringId - Organizational unit id.
- organizational
Unit StringName - Organizational unit name
- organizational
Unit StringPath - Organizational unit path
- tenancy
Id String - The tenancy id.
- user
Ocid 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
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.