1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. clickhouseenterprisedbcluster
  5. Account
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.clickhouseenterprisedbcluster.Account

Explore with Pulumi AI

Provides a Click House Enterprise Db Cluster Account resource.

Clickhouse enterprise instance account.

For information about Click House Enterprise Db Cluster Account and how to use it, see What is Enterprise Db Cluster Account.

NOTE: Available since v1.247.0.

Example Usage

Basic Usage

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

const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const regionId = config.get("regionId") || "cn-beijing";
const vswIpRangeI = config.get("vswIpRangeI") || "172.16.1.0/24";
const vpcIpRange = config.get("vpcIpRange") || "172.16.0.0/12";
const zoneIdI = config.get("zoneIdI") || "cn-beijing-i";
const defaultktKLuM = new alicloud.vpc.Network("defaultktKLuM", {cidrBlock: vpcIpRange});
const defaultTQWN3k = new alicloud.vpc.Switch("defaultTQWN3k", {
    vpcId: defaultktKLuM.id,
    zoneId: zoneIdI,
    cidrBlock: vswIpRangeI,
});
const defaultWrovOd = new alicloud.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbCluster("defaultWrovOd", {
    zoneId: zoneIdI,
    vpcId: defaultktKLuM.id,
    scaleMin: "8",
    scaleMax: "16",
    vswitchId: defaultTQWN3k.id,
});
const _default = new alicloud.clickhouseenterprisedbcluster.Account("default", {
    account: "abc",
    description: "example_desc",
    dbInstanceId: defaultWrovOd.id,
    accountType: "NormalAccount",
    password: "abc123456!",
    dmlAuthSetting: {
        dmlAuthority: 0,
        ddlAuthority: true,
        allowDictionaries: ["*"],
        allowDatabases: ["*"],
    },
});
Copy
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "terraform-example"
region_id = config.get("regionId")
if region_id is None:
    region_id = "cn-beijing"
vsw_ip_range_i = config.get("vswIpRangeI")
if vsw_ip_range_i is None:
    vsw_ip_range_i = "172.16.1.0/24"
vpc_ip_range = config.get("vpcIpRange")
if vpc_ip_range is None:
    vpc_ip_range = "172.16.0.0/12"
zone_id_i = config.get("zoneIdI")
if zone_id_i is None:
    zone_id_i = "cn-beijing-i"
defaultkt_k_lu_m = alicloud.vpc.Network("defaultktKLuM", cidr_block=vpc_ip_range)
default_tqwn3k = alicloud.vpc.Switch("defaultTQWN3k",
    vpc_id=defaultkt_k_lu_m.id,
    zone_id=zone_id_i,
    cidr_block=vsw_ip_range_i)
default_wrov_od = alicloud.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbCluster("defaultWrovOd",
    zone_id=zone_id_i,
    vpc_id=defaultkt_k_lu_m.id,
    scale_min="8",
    scale_max="16",
    vswitch_id=default_tqwn3k.id)
default = alicloud.clickhouseenterprisedbcluster.Account("default",
    account="abc",
    description="example_desc",
    db_instance_id=default_wrov_od.id,
    account_type="NormalAccount",
    password="abc123456!",
    dml_auth_setting={
        "dml_authority": 0,
        "ddl_authority": True,
        "allow_dictionaries": ["*"],
        "allow_databases": ["*"],
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/clickhouseenterprisedbcluster"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		regionId := "cn-beijing"
		if param := cfg.Get("regionId"); param != "" {
			regionId = param
		}
		vswIpRangeI := "172.16.1.0/24"
		if param := cfg.Get("vswIpRangeI"); param != "" {
			vswIpRangeI = param
		}
		vpcIpRange := "172.16.0.0/12"
		if param := cfg.Get("vpcIpRange"); param != "" {
			vpcIpRange = param
		}
		zoneIdI := "cn-beijing-i"
		if param := cfg.Get("zoneIdI"); param != "" {
			zoneIdI = param
		}
		defaultktKLuM, err := vpc.NewNetwork(ctx, "defaultktKLuM", &vpc.NetworkArgs{
			CidrBlock: pulumi.String(vpcIpRange),
		})
		if err != nil {
			return err
		}
		defaultTQWN3k, err := vpc.NewSwitch(ctx, "defaultTQWN3k", &vpc.SwitchArgs{
			VpcId:     defaultktKLuM.ID(),
			ZoneId:    pulumi.String(zoneIdI),
			CidrBlock: pulumi.String(vswIpRangeI),
		})
		if err != nil {
			return err
		}
		defaultWrovOd, err := clickhouseenterprisedbcluster.NewClickHouseEnterpriseDbCluster(ctx, "defaultWrovOd", &clickhouseenterprisedbcluster.ClickHouseEnterpriseDbClusterArgs{
			ZoneId:    pulumi.String(zoneIdI),
			VpcId:     defaultktKLuM.ID(),
			ScaleMin:  pulumi.String("8"),
			ScaleMax:  pulumi.String("16"),
			VswitchId: defaultTQWN3k.ID(),
		})
		if err != nil {
			return err
		}
		_, err = clickhouseenterprisedbcluster.NewAccount(ctx, "default", &clickhouseenterprisedbcluster.AccountArgs{
			Account:      pulumi.String("abc"),
			Description:  pulumi.String("example_desc"),
			DbInstanceId: defaultWrovOd.ID(),
			AccountType:  pulumi.String("NormalAccount"),
			Password:     pulumi.String("abc123456!"),
			DmlAuthSetting: &clickhouseenterprisedbcluster.AccountDmlAuthSettingArgs{
				DmlAuthority: pulumi.Int(0),
				DdlAuthority: pulumi.Bool(true),
				AllowDictionaries: pulumi.StringArray{
					pulumi.String("*"),
				},
				AllowDatabases: pulumi.StringArray{
					pulumi.String("*"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "terraform-example";
    var regionId = config.Get("regionId") ?? "cn-beijing";
    var vswIpRangeI = config.Get("vswIpRangeI") ?? "172.16.1.0/24";
    var vpcIpRange = config.Get("vpcIpRange") ?? "172.16.0.0/12";
    var zoneIdI = config.Get("zoneIdI") ?? "cn-beijing-i";
    var defaultktKLuM = new AliCloud.Vpc.Network("defaultktKLuM", new()
    {
        CidrBlock = vpcIpRange,
    });

    var defaultTQWN3k = new AliCloud.Vpc.Switch("defaultTQWN3k", new()
    {
        VpcId = defaultktKLuM.Id,
        ZoneId = zoneIdI,
        CidrBlock = vswIpRangeI,
    });

    var defaultWrovOd = new AliCloud.ClickHouseEnterpriseDbCluster.ClickHouseEnterpriseDbCluster("defaultWrovOd", new()
    {
        ZoneId = zoneIdI,
        VpcId = defaultktKLuM.Id,
        ScaleMin = "8",
        ScaleMax = "16",
        VswitchId = defaultTQWN3k.Id,
    });

    var @default = new AliCloud.ClickHouseEnterpriseDbCluster.Account("default", new()
    {
        AccountValue = "abc",
        Description = "example_desc",
        DbInstanceId = defaultWrovOd.Id,
        AccountType = "NormalAccount",
        Password = "abc123456!",
        DmlAuthSetting = new AliCloud.clickHouseEnterpriseDbCluster.Inputs.AccountDmlAuthSettingArgs
        {
            DmlAuthority = 0,
            DdlAuthority = true,
            AllowDictionaries = new[]
            {
                "*",
            },
            AllowDatabases = new[]
            {
                "*",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbCluster;
import com.pulumi.alicloud.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbClusterArgs;
import com.pulumi.alicloud.clickhouseenterprisedbcluster.Account;
import com.pulumi.alicloud.clickhouseenterprisedbcluster.AccountArgs;
import com.pulumi.alicloud.clickhouseenterprisedbcluster.inputs.AccountDmlAuthSettingArgs;
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) {
        final var config = ctx.config();
        final var name = config.get("name").orElse("terraform-example");
        final var regionId = config.get("regionId").orElse("cn-beijing");
        final var vswIpRangeI = config.get("vswIpRangeI").orElse("172.16.1.0/24");
        final var vpcIpRange = config.get("vpcIpRange").orElse("172.16.0.0/12");
        final var zoneIdI = config.get("zoneIdI").orElse("cn-beijing-i");
        var defaultktKLuM = new Network("defaultktKLuM", NetworkArgs.builder()
            .cidrBlock(vpcIpRange)
            .build());

        var defaultTQWN3k = new Switch("defaultTQWN3k", SwitchArgs.builder()
            .vpcId(defaultktKLuM.id())
            .zoneId(zoneIdI)
            .cidrBlock(vswIpRangeI)
            .build());

        var defaultWrovOd = new ClickHouseEnterpriseDbCluster("defaultWrovOd", ClickHouseEnterpriseDbClusterArgs.builder()
            .zoneId(zoneIdI)
            .vpcId(defaultktKLuM.id())
            .scaleMin("8")
            .scaleMax("16")
            .vswitchId(defaultTQWN3k.id())
            .build());

        var default_ = new Account("default", AccountArgs.builder()
            .account("abc")
            .description("example_desc")
            .dbInstanceId(defaultWrovOd.id())
            .accountType("NormalAccount")
            .password("abc123456!")
            .dmlAuthSetting(AccountDmlAuthSettingArgs.builder()
                .dmlAuthority("0")
                .ddlAuthority(true)
                .allowDictionaries("*")
                .allowDatabases("*")
                .build())
            .build());

    }
}
Copy
configuration:
  name:
    type: string
    default: terraform-example
  regionId:
    type: string
    default: cn-beijing
  vswIpRangeI:
    type: string
    default: 172.16.1.0/24
  vpcIpRange:
    type: string
    default: 172.16.0.0/12
  zoneIdI:
    type: string
    default: cn-beijing-i
resources:
  defaultktKLuM:
    type: alicloud:vpc:Network
    properties:
      cidrBlock: ${vpcIpRange}
  defaultTQWN3k:
    type: alicloud:vpc:Switch
    properties:
      vpcId: ${defaultktKLuM.id}
      zoneId: ${zoneIdI}
      cidrBlock: ${vswIpRangeI}
  defaultWrovOd:
    type: alicloud:clickhouseenterprisedbcluster:ClickHouseEnterpriseDbCluster
    properties:
      zoneId: ${zoneIdI}
      vpcId: ${defaultktKLuM.id}
      scaleMin: '8'
      scaleMax: '16'
      vswitchId: ${defaultTQWN3k.id}
  default:
    type: alicloud:clickhouseenterprisedbcluster:Account
    properties:
      account: abc
      description: example_desc
      dbInstanceId: ${defaultWrovOd.id}
      accountType: NormalAccount
      password: abc123456!
      dmlAuthSetting:
        dmlAuthority: '0'
        ddlAuthority: true
        allowDictionaries:
          - '*'
        allowDatabases:
          - '*'
Copy

Create Account Resource

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

Constructor syntax

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

@overload
def Account(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            account: Optional[str] = None,
            account_type: Optional[str] = None,
            db_instance_id: Optional[str] = None,
            password: Optional[str] = None,
            description: Optional[str] = None,
            dml_auth_setting: Optional[AccountDmlAuthSettingArgs] = None)
func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: alicloud:clickhouseenterprisedbcluster:Account
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. AccountArgs
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. AccountArgs
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. AccountArgs
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. AccountArgs
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. AccountArgs
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 exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount = new AliCloud.ClickHouseEnterpriseDbCluster.Account("exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount", new()
{
    AccountValue = "string",
    AccountType = "string",
    DbInstanceId = "string",
    Password = "string",
    Description = "string",
    DmlAuthSetting = new AliCloud.clickHouseEnterpriseDbCluster.Inputs.AccountDmlAuthSettingArgs
    {
        DdlAuthority = false,
        DmlAuthority = 0,
        AllowDatabases = new[]
        {
            "string",
        },
        AllowDictionaries = new[]
        {
            "string",
        },
    },
});
Copy
example, err := clickhouseenterprisedbcluster.NewAccount(ctx, "exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount", &clickhouseenterprisedbcluster.AccountArgs{
	Account:      pulumi.String("string"),
	AccountType:  pulumi.String("string"),
	DbInstanceId: pulumi.String("string"),
	Password:     pulumi.String("string"),
	Description:  pulumi.String("string"),
	DmlAuthSetting: &clickhouseenterprisedbcluster.AccountDmlAuthSettingArgs{
		DdlAuthority: pulumi.Bool(false),
		DmlAuthority: pulumi.Int(0),
		AllowDatabases: pulumi.StringArray{
			pulumi.String("string"),
		},
		AllowDictionaries: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
})
Copy
var exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount = new Account("exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount", AccountArgs.builder()
    .account("string")
    .accountType("string")
    .dbInstanceId("string")
    .password("string")
    .description("string")
    .dmlAuthSetting(AccountDmlAuthSettingArgs.builder()
        .ddlAuthority(false)
        .dmlAuthority(0)
        .allowDatabases("string")
        .allowDictionaries("string")
        .build())
    .build());
Copy
exampleaccount_resource_resource_from_clickhouseenterprisedbclusteraccount = alicloud.clickhouseenterprisedbcluster.Account("exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount",
    account="string",
    account_type="string",
    db_instance_id="string",
    password="string",
    description="string",
    dml_auth_setting={
        "ddl_authority": False,
        "dml_authority": 0,
        "allow_databases": ["string"],
        "allow_dictionaries": ["string"],
    })
Copy
const exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount = new alicloud.clickhouseenterprisedbcluster.Account("exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount", {
    account: "string",
    accountType: "string",
    dbInstanceId: "string",
    password: "string",
    description: "string",
    dmlAuthSetting: {
        ddlAuthority: false,
        dmlAuthority: 0,
        allowDatabases: ["string"],
        allowDictionaries: ["string"],
    },
});
Copy
type: alicloud:clickhouseenterprisedbcluster:Account
properties:
    account: string
    accountType: string
    dbInstanceId: string
    description: string
    dmlAuthSetting:
        allowDatabases:
            - string
        allowDictionaries:
            - string
        ddlAuthority: false
        dmlAuthority: 0
    password: string
Copy

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

AccountType
This property is required.
Changes to this property will trigger replacement.
string
The type of the database account. Valid values:

  • NormalAccount: Normal account number.
  • SuperAccount: The privileged account.
AccountValue
This property is required.
Changes to this property will trigger replacement.
string
The name of the database account.
DbInstanceId
This property is required.
Changes to this property will trigger replacement.
string
The cluster ID.
Password This property is required. string
Database account password. Set the following rules.

  • Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
  • Oh-! @#$%^& *()_+-= is a special character.
  • Length is 8~32 characters.
Description string
Note information.
DmlAuthSetting Pulumi.AliCloud.clickHouseEnterpriseDbCluster.Inputs.AccountDmlAuthSetting
Authorization information. See dml_auth_setting below.
Account
This property is required.
Changes to this property will trigger replacement.
string
The name of the database account.
AccountType
This property is required.
Changes to this property will trigger replacement.
string
The type of the database account. Valid values:

  • NormalAccount: Normal account number.
  • SuperAccount: The privileged account.
DbInstanceId
This property is required.
Changes to this property will trigger replacement.
string
The cluster ID.
Password This property is required. string
Database account password. Set the following rules.

  • Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
  • Oh-! @#$%^& *()_+-= is a special character.
  • Length is 8~32 characters.
Description string
Note information.
DmlAuthSetting AccountDmlAuthSettingArgs
Authorization information. See dml_auth_setting below.
account
This property is required.
Changes to this property will trigger replacement.
String
The name of the database account.
accountType
This property is required.
Changes to this property will trigger replacement.
String
The type of the database account. Valid values:

  • NormalAccount: Normal account number.
  • SuperAccount: The privileged account.
dbInstanceId
This property is required.
Changes to this property will trigger replacement.
String
The cluster ID.
password This property is required. String
Database account password. Set the following rules.

  • Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
  • Oh-! @#$%^& *()_+-= is a special character.
  • Length is 8~32 characters.
description String
Note information.
dmlAuthSetting AccountDmlAuthSetting
Authorization information. See dml_auth_setting below.
account
This property is required.
Changes to this property will trigger replacement.
string
The name of the database account.
accountType
This property is required.
Changes to this property will trigger replacement.
string
The type of the database account. Valid values:

  • NormalAccount: Normal account number.
  • SuperAccount: The privileged account.
dbInstanceId
This property is required.
Changes to this property will trigger replacement.
string
The cluster ID.
password This property is required. string
Database account password. Set the following rules.

  • Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
  • Oh-! @#$%^& *()_+-= is a special character.
  • Length is 8~32 characters.
description string
Note information.
dmlAuthSetting AccountDmlAuthSetting
Authorization information. See dml_auth_setting below.
account
This property is required.
Changes to this property will trigger replacement.
str
The name of the database account.
account_type
This property is required.
Changes to this property will trigger replacement.
str
The type of the database account. Valid values:

  • NormalAccount: Normal account number.
  • SuperAccount: The privileged account.
db_instance_id
This property is required.
Changes to this property will trigger replacement.
str
The cluster ID.
password This property is required. str
Database account password. Set the following rules.

  • Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
  • Oh-! @#$%^& *()_+-= is a special character.
  • Length is 8~32 characters.
description str
Note information.
dml_auth_setting AccountDmlAuthSettingArgs
Authorization information. See dml_auth_setting below.
account
This property is required.
Changes to this property will trigger replacement.
String
The name of the database account.
accountType
This property is required.
Changes to this property will trigger replacement.
String
The type of the database account. Valid values:

  • NormalAccount: Normal account number.
  • SuperAccount: The privileged account.
dbInstanceId
This property is required.
Changes to this property will trigger replacement.
String
The cluster ID.
password This property is required. String
Database account password. Set the following rules.

  • Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
  • Oh-! @#$%^& *()_+-= is a special character.
  • Length is 8~32 characters.
description String
Note information.
dmlAuthSetting Property Map
Authorization information. See dml_auth_setting below.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Account Resource

Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Account
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account: Optional[str] = None,
        account_type: Optional[str] = None,
        db_instance_id: Optional[str] = None,
        description: Optional[str] = None,
        dml_auth_setting: Optional[AccountDmlAuthSettingArgs] = None,
        password: Optional[str] = None) -> Account
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
public static Account get(String name, Output<String> id, AccountState state, CustomResourceOptions options)
resources:  _:    type: alicloud:clickhouseenterprisedbcluster:Account    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:
AccountType Changes to this property will trigger replacement. string
The type of the database account. Valid values:

  • NormalAccount: Normal account number.
  • SuperAccount: The privileged account.
AccountValue Changes to this property will trigger replacement. string
The name of the database account.
DbInstanceId Changes to this property will trigger replacement. string
The cluster ID.
Description string
Note information.
DmlAuthSetting Pulumi.AliCloud.clickHouseEnterpriseDbCluster.Inputs.AccountDmlAuthSetting
Authorization information. See dml_auth_setting below.
Password string
Database account password. Set the following rules.

  • Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
  • Oh-! @#$%^& *()_+-= is a special character.
  • Length is 8~32 characters.
Account Changes to this property will trigger replacement. string
The name of the database account.
AccountType Changes to this property will trigger replacement. string
The type of the database account. Valid values:

  • NormalAccount: Normal account number.
  • SuperAccount: The privileged account.
DbInstanceId Changes to this property will trigger replacement. string
The cluster ID.
Description string
Note information.
DmlAuthSetting AccountDmlAuthSettingArgs
Authorization information. See dml_auth_setting below.
Password string
Database account password. Set the following rules.

  • Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
  • Oh-! @#$%^& *()_+-= is a special character.
  • Length is 8~32 characters.
account Changes to this property will trigger replacement. String
The name of the database account.
accountType Changes to this property will trigger replacement. String
The type of the database account. Valid values:

  • NormalAccount: Normal account number.
  • SuperAccount: The privileged account.
dbInstanceId Changes to this property will trigger replacement. String
The cluster ID.
description String
Note information.
dmlAuthSetting AccountDmlAuthSetting
Authorization information. See dml_auth_setting below.
password String
Database account password. Set the following rules.

  • Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
  • Oh-! @#$%^& *()_+-= is a special character.
  • Length is 8~32 characters.
account Changes to this property will trigger replacement. string
The name of the database account.
accountType Changes to this property will trigger replacement. string
The type of the database account. Valid values:

  • NormalAccount: Normal account number.
  • SuperAccount: The privileged account.
dbInstanceId Changes to this property will trigger replacement. string
The cluster ID.
description string
Note information.
dmlAuthSetting AccountDmlAuthSetting
Authorization information. See dml_auth_setting below.
password string
Database account password. Set the following rules.

  • Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
  • Oh-! @#$%^& *()_+-= is a special character.
  • Length is 8~32 characters.
account Changes to this property will trigger replacement. str
The name of the database account.
account_type Changes to this property will trigger replacement. str
The type of the database account. Valid values:

  • NormalAccount: Normal account number.
  • SuperAccount: The privileged account.
db_instance_id Changes to this property will trigger replacement. str
The cluster ID.
description str
Note information.
dml_auth_setting AccountDmlAuthSettingArgs
Authorization information. See dml_auth_setting below.
password str
Database account password. Set the following rules.

  • Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
  • Oh-! @#$%^& *()_+-= is a special character.
  • Length is 8~32 characters.
account Changes to this property will trigger replacement. String
The name of the database account.
accountType Changes to this property will trigger replacement. String
The type of the database account. Valid values:

  • NormalAccount: Normal account number.
  • SuperAccount: The privileged account.
dbInstanceId Changes to this property will trigger replacement. String
The cluster ID.
description String
Note information.
dmlAuthSetting Property Map
Authorization information. See dml_auth_setting below.
password String
Database account password. Set the following rules.

  • Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
  • Oh-! @#$%^& *()_+-= is a special character.
  • Length is 8~32 characters.

Supporting Types

AccountDmlAuthSetting
, AccountDmlAuthSettingArgs

DdlAuthority This property is required. bool
Whether to grant the DDL permission to the database account. Value description:
DmlAuthority This property is required. int
Whether to grant the DML permission to the database account. The values are as follows:
AllowDatabases List<string>
The list of databases that require authorization. If there are more than one, separate them with commas (,).
AllowDictionaries List<string>
List of dictionaries that require authorization. If there are more than one, separate them with commas (,).
DdlAuthority This property is required. bool
Whether to grant the DDL permission to the database account. Value description:
DmlAuthority This property is required. int
Whether to grant the DML permission to the database account. The values are as follows:
AllowDatabases []string
The list of databases that require authorization. If there are more than one, separate them with commas (,).
AllowDictionaries []string
List of dictionaries that require authorization. If there are more than one, separate them with commas (,).
ddlAuthority This property is required. Boolean
Whether to grant the DDL permission to the database account. Value description:
dmlAuthority This property is required. Integer
Whether to grant the DML permission to the database account. The values are as follows:
allowDatabases List<String>
The list of databases that require authorization. If there are more than one, separate them with commas (,).
allowDictionaries List<String>
List of dictionaries that require authorization. If there are more than one, separate them with commas (,).
ddlAuthority This property is required. boolean
Whether to grant the DDL permission to the database account. Value description:
dmlAuthority This property is required. number
Whether to grant the DML permission to the database account. The values are as follows:
allowDatabases string[]
The list of databases that require authorization. If there are more than one, separate them with commas (,).
allowDictionaries string[]
List of dictionaries that require authorization. If there are more than one, separate them with commas (,).
ddl_authority This property is required. bool
Whether to grant the DDL permission to the database account. Value description:
dml_authority This property is required. int
Whether to grant the DML permission to the database account. The values are as follows:
allow_databases Sequence[str]
The list of databases that require authorization. If there are more than one, separate them with commas (,).
allow_dictionaries Sequence[str]
List of dictionaries that require authorization. If there are more than one, separate them with commas (,).
ddlAuthority This property is required. Boolean
Whether to grant the DDL permission to the database account. Value description:
dmlAuthority This property is required. Number
Whether to grant the DML permission to the database account. The values are as follows:
allowDatabases List<String>
The list of databases that require authorization. If there are more than one, separate them with commas (,).
allowDictionaries List<String>
List of dictionaries that require authorization. If there are more than one, separate them with commas (,).

Import

Click House Enterprise Db Cluster Account can be imported using the id, e.g.

$ pulumi import alicloud:clickhouseenterprisedbcluster/account:Account example <db_instance_id>:<account>
Copy

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

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.