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

dome9.CloudaccountAlibaba

Explore with Pulumi AI

This resource is used to onboard Alibaba 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 test = new dome9.CloudaccountAlibaba("test", {credentials: {
    access_key: "ACCESS_KEY",
    access_secret: "ACCESS_SECRET",
}});
Copy
import pulumi
import pulumi_dome9 as dome9

test = dome9.CloudaccountAlibaba("test", credentials={
    "access_key": "ACCESS_KEY",
    "access_secret": "ACCESS_SECRET",
})
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.NewCloudaccountAlibaba(ctx, "test", &dome9.CloudaccountAlibabaArgs{
			Credentials: pulumi.StringMap{
				"access_key":    pulumi.String("ACCESS_KEY"),
				"access_secret": pulumi.String("ACCESS_SECRET"),
			},
		})
		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.CloudaccountAlibaba("test", new()
    {
        Credentials = 
        {
            { "access_key", "ACCESS_KEY" },
            { "access_secret", "ACCESS_SECRET" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dome9.CloudaccountAlibaba;
import com.pulumi.dome9.CloudaccountAlibabaArgs;
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 CloudaccountAlibaba("test", CloudaccountAlibabaArgs.builder()
            .credentials(Map.ofEntries(
                Map.entry("access_key", "ACCESS_KEY"),
                Map.entry("access_secret", "ACCESS_SECRET")
            ))
            .build());

    }
}
Copy
resources:
  test:
    type: dome9:CloudaccountAlibaba
    properties:
      credentials:
        access_key: ACCESS_KEY
        access_secret: ACCESS_SECRET
Copy

Create CloudaccountAlibaba Resource

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

Constructor syntax

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

@overload
def CloudaccountAlibaba(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        credentials: Optional[Mapping[str, str]] = None,
                        cloudaccount_alibaba_id: Optional[str] = None,
                        name: Optional[str] = None,
                        organizational_unit_id: Optional[str] = None)
func NewCloudaccountAlibaba(ctx *Context, name string, args CloudaccountAlibabaArgs, opts ...ResourceOption) (*CloudaccountAlibaba, error)
public CloudaccountAlibaba(string name, CloudaccountAlibabaArgs args, CustomResourceOptions? opts = null)
public CloudaccountAlibaba(String name, CloudaccountAlibabaArgs args)
public CloudaccountAlibaba(String name, CloudaccountAlibabaArgs args, CustomResourceOptions options)
type: dome9:CloudaccountAlibaba
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. CloudaccountAlibabaArgs
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. CloudaccountAlibabaArgs
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. CloudaccountAlibabaArgs
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. CloudaccountAlibabaArgs
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. CloudaccountAlibabaArgs
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 cloudaccountAlibabaResource = new Dome9.CloudaccountAlibaba("cloudaccountAlibabaResource", new()
{
    Credentials = 
    {
        { "string", "string" },
    },
    CloudaccountAlibabaId = "string",
    Name = "string",
    OrganizationalUnitId = "string",
});
Copy
example, err := dome9.NewCloudaccountAlibaba(ctx, "cloudaccountAlibabaResource", &dome9.CloudaccountAlibabaArgs{
Credentials: pulumi.StringMap{
"string": pulumi.String("string"),
},
CloudaccountAlibabaId: pulumi.String("string"),
Name: pulumi.String("string"),
OrganizationalUnitId: pulumi.String("string"),
})
Copy
var cloudaccountAlibabaResource = new CloudaccountAlibaba("cloudaccountAlibabaResource", CloudaccountAlibabaArgs.builder()
    .credentials(Map.of("string", "string"))
    .cloudaccountAlibabaId("string")
    .name("string")
    .organizationalUnitId("string")
    .build());
Copy
cloudaccount_alibaba_resource = dome9.CloudaccountAlibaba("cloudaccountAlibabaResource",
    credentials={
        "string": "string",
    },
    cloudaccount_alibaba_id="string",
    name="string",
    organizational_unit_id="string")
Copy
const cloudaccountAlibabaResource = new dome9.CloudaccountAlibaba("cloudaccountAlibabaResource", {
    credentials: {
        string: "string",
    },
    cloudaccountAlibabaId: "string",
    name: "string",
    organizationalUnitId: "string",
});
Copy
type: dome9:CloudaccountAlibaba
properties:
    cloudaccountAlibabaId: string
    credentials:
        string: string
    name: string
    organizationalUnitId: string
Copy

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

Credentials This property is required. Dictionary<string, string>
Has the following arguments:
CloudaccountAlibabaId string
Name string
The name of the Alibaba account in Dome9
OrganizationalUnitId string
Organizational unit id.
Credentials This property is required. map[string]string
Has the following arguments:
CloudaccountAlibabaId string
Name string
The name of the Alibaba account in Dome9
OrganizationalUnitId string
Organizational unit id.
credentials This property is required. Map<String,String>
Has the following arguments:
cloudaccountAlibabaId String
name String
The name of the Alibaba account in Dome9
organizationalUnitId String
Organizational unit id.
credentials This property is required. {[key: string]: string}
Has the following arguments:
cloudaccountAlibabaId string
name string
The name of the Alibaba account in Dome9
organizationalUnitId string
Organizational unit id.
credentials This property is required. Mapping[str, str]
Has the following arguments:
cloudaccount_alibaba_id str
name str
The name of the Alibaba account in Dome9
organizational_unit_id str
Organizational unit id.
credentials This property is required. Map<String>
Has the following arguments:
cloudaccountAlibabaId String
name String
The name of the Alibaba account in Dome9
organizationalUnitId String
Organizational unit id.

Outputs

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

AlibabaAccountId string
Alibaba account id.
CreationDate string
Date the account was onboarded to Dome9
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 ("Alibaba")
AlibabaAccountId string
Alibaba account id.
CreationDate string
Date the account was onboarded to Dome9
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 ("Alibaba")
alibabaAccountId String
Alibaba account id.
creationDate String
Date the account was onboarded to Dome9
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 ("Alibaba")
alibabaAccountId string
Alibaba account id.
creationDate string
Date the account was onboarded to Dome9
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 ("Alibaba")
alibaba_account_id str
Alibaba account id.
creation_date str
Date the account was onboarded to Dome9
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 ("Alibaba")
alibabaAccountId String
Alibaba account id.
creationDate String
Date the account was onboarded to Dome9
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 ("Alibaba")

Look up Existing CloudaccountAlibaba Resource

Get an existing CloudaccountAlibaba 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?: CloudaccountAlibabaState, opts?: CustomResourceOptions): CloudaccountAlibaba
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alibaba_account_id: Optional[str] = None,
        cloudaccount_alibaba_id: Optional[str] = None,
        creation_date: Optional[str] = None,
        credentials: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        organizational_unit_id: Optional[str] = None,
        organizational_unit_name: Optional[str] = None,
        organizational_unit_path: Optional[str] = None,
        vendor: Optional[str] = None) -> CloudaccountAlibaba
func GetCloudaccountAlibaba(ctx *Context, name string, id IDInput, state *CloudaccountAlibabaState, opts ...ResourceOption) (*CloudaccountAlibaba, error)
public static CloudaccountAlibaba Get(string name, Input<string> id, CloudaccountAlibabaState? state, CustomResourceOptions? opts = null)
public static CloudaccountAlibaba get(String name, Output<String> id, CloudaccountAlibabaState state, CustomResourceOptions options)
resources:  _:    type: dome9:CloudaccountAlibaba    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:
AlibabaAccountId string
Alibaba account id.
CloudaccountAlibabaId string
CreationDate string
Date the account was onboarded to Dome9
Credentials Dictionary<string, string>
Has the following arguments:
Name string
The name of the Alibaba account in Dome9
OrganizationalUnitId string
Organizational unit id.
OrganizationalUnitName string
Organizational unit name
OrganizationalUnitPath string
Organizational unit path
Vendor string
The cloud provider ("Alibaba")
AlibabaAccountId string
Alibaba account id.
CloudaccountAlibabaId string
CreationDate string
Date the account was onboarded to Dome9
Credentials map[string]string
Has the following arguments:
Name string
The name of the Alibaba account in Dome9
OrganizationalUnitId string
Organizational unit id.
OrganizationalUnitName string
Organizational unit name
OrganizationalUnitPath string
Organizational unit path
Vendor string
The cloud provider ("Alibaba")
alibabaAccountId String
Alibaba account id.
cloudaccountAlibabaId String
creationDate String
Date the account was onboarded to Dome9
credentials Map<String,String>
Has the following arguments:
name String
The name of the Alibaba account in Dome9
organizationalUnitId String
Organizational unit id.
organizationalUnitName String
Organizational unit name
organizationalUnitPath String
Organizational unit path
vendor String
The cloud provider ("Alibaba")
alibabaAccountId string
Alibaba account id.
cloudaccountAlibabaId string
creationDate string
Date the account was onboarded to Dome9
credentials {[key: string]: string}
Has the following arguments:
name string
The name of the Alibaba account in Dome9
organizationalUnitId string
Organizational unit id.
organizationalUnitName string
Organizational unit name
organizationalUnitPath string
Organizational unit path
vendor string
The cloud provider ("Alibaba")
alibaba_account_id str
Alibaba account id.
cloudaccount_alibaba_id str
creation_date str
Date the account was onboarded to Dome9
credentials Mapping[str, str]
Has the following arguments:
name str
The name of the Alibaba account in Dome9
organizational_unit_id str
Organizational unit id.
organizational_unit_name str
Organizational unit name
organizational_unit_path str
Organizational unit path
vendor str
The cloud provider ("Alibaba")
alibabaAccountId String
Alibaba account id.
cloudaccountAlibabaId String
creationDate String
Date the account was onboarded to Dome9
credentials Map<String>
Has the following arguments:
name String
The name of the Alibaba account in Dome9
organizationalUnitId String
Organizational unit id.
organizationalUnitName String
Organizational unit name
organizationalUnitPath String
Organizational unit path
vendor String
The cloud provider ("Alibaba")

Import

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

For example:

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