Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

Account

Provides a Click House Account resource.

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

NOTE: Available in v1.134.0+.

Example Usage

Basic Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var name = config.Get("name") ?? "testaccountname";
        var pwd = config.Get("pwd") ?? "Tf-testpwd";
        var defaultRegions = Output.Create(AliCloud.ClickHouse.GetRegions.InvokeAsync(new AliCloud.ClickHouse.GetRegionsArgs
        {
            Current = true,
        }));
        var defaultNetworks = Output.Create(AliCloud.Vpc.GetNetworks.InvokeAsync(new AliCloud.Vpc.GetNetworksArgs
        {
            NameRegex = "default-NODELETING",
        }));
        var defaultSwitches = Output.Tuple(defaultNetworks, defaultRegions).Apply(values =>
        {
            var defaultNetworks = values.Item1;
            var defaultRegions = values.Item2;
            return Output.Create(AliCloud.Vpc.GetSwitches.InvokeAsync(new AliCloud.Vpc.GetSwitchesArgs
            {
                VpcId = defaultNetworks.Ids?[0],
                ZoneId = defaultRegions.Regions?[0]?.ZoneIds?[0]?.ZoneId,
            }));
        });
        var defaultDbCluster = new AliCloud.ClickHouse.DbCluster("defaultDbCluster", new AliCloud.ClickHouse.DbClusterArgs
        {
            DbClusterVersion = "20.3.10.75",
            Category = "Basic",
            DbClusterClass = "S8",
            DbClusterNetworkType = "vpc",
            DbClusterDescription = name,
            DbNodeGroupCount = 1,
            PaymentType = "PayAsYouGo",
            DbNodeStorage = "500",
            StorageType = "cloud_essd",
            VswitchId = defaultSwitches.Apply(defaultSwitches => defaultSwitches.Vswitches?[0]?.Id),
        });
        var defaultAccount = new AliCloud.ClickHouse.Account("defaultAccount", new AliCloud.ClickHouse.AccountArgs
        {
            DbClusterId = defaultDbCluster.Id,
            AccountDescription = "your_description",
            AccountName = name,
            AccountPassword = pwd,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/clickhouse"
	"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 := "testaccountname"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		pwd := "Tf-testpwd"
		if param := cfg.Get("pwd"); param != "" {
			pwd = param
		}
		defaultRegions, err := clickhouse.GetRegions(ctx, &clickhouse.GetRegionsArgs{
			Current: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(defaultRegions.Regions[0].ZoneIds[0].ZoneId),
		}, nil)
		if err != nil {
			return err
		}
		defaultDbCluster, err := clickhouse.NewDbCluster(ctx, "defaultDbCluster", &clickhouse.DbClusterArgs{
			DbClusterVersion:     pulumi.String("20.3.10.75"),
			Category:             pulumi.String("Basic"),
			DbClusterClass:       pulumi.String("S8"),
			DbClusterNetworkType: pulumi.String("vpc"),
			DbClusterDescription: pulumi.String(name),
			DbNodeGroupCount:     pulumi.Int(1),
			PaymentType:          pulumi.String("PayAsYouGo"),
			DbNodeStorage:        pulumi.String("500"),
			StorageType:          pulumi.String("cloud_essd"),
			VswitchId:            pulumi.String(defaultSwitches.Vswitches[0].Id),
		})
		if err != nil {
			return err
		}
		_, err = clickhouse.NewAccount(ctx, "defaultAccount", &clickhouse.AccountArgs{
			DbClusterId:        defaultDbCluster.ID(),
			AccountDescription: pulumi.String("your_description"),
			AccountName:        pulumi.String(name),
			AccountPassword:    pulumi.String(pwd),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.clickhouse.ClickhouseFunctions;
import com.pulumi.alicloud.clickhouse.inputs.GetRegionsArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.cloudconnect.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.clickhouse.DbCluster;
import com.pulumi.alicloud.clickhouse.DbClusterArgs;
import com.pulumi.alicloud.clickhouse.Account;
import com.pulumi.alicloud.clickhouse.AccountArgs;
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("testaccountname");
        final var pwd = config.get("pwd").orElse("Tf-testpwd");
        final var defaultRegions = ClickhouseFunctions.getRegions(GetRegionsArgs.builder()
            .current(true)
            .build());

        final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
            .nameRegex("default-NODELETING")
            .build());

        final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
            .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
            .zoneId(defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].zoneIds()[0].zoneId()))
            .build());

        var defaultDbCluster = new DbCluster("defaultDbCluster", DbClusterArgs.builder()        
            .dbClusterVersion("20.3.10.75")
            .category("Basic")
            .dbClusterClass("S8")
            .dbClusterNetworkType("vpc")
            .dbClusterDescription(name)
            .dbNodeGroupCount(1)
            .paymentType("PayAsYouGo")
            .dbNodeStorage("500")
            .storageType("cloud_essd")
            .vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].id()))
            .build());

        var defaultAccount = new Account("defaultAccount", AccountArgs.builder()        
            .dbClusterId(defaultDbCluster.id())
            .accountDescription("your_description")
            .accountName(name)
            .accountPassword(pwd)
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "testaccountname"
pwd = config.get("pwd")
if pwd is None:
    pwd = "Tf-testpwd"
default_regions = alicloud.clickhouse.get_regions(current=True)
default_networks = alicloud.vpc.get_networks(name_regex="default-NODELETING")
default_switches = alicloud.vpc.get_switches(vpc_id=default_networks.ids[0],
    zone_id=default_regions.regions[0].zone_ids[0].zone_id)
default_db_cluster = alicloud.clickhouse.DbCluster("defaultDbCluster",
    db_cluster_version="20.3.10.75",
    category="Basic",
    db_cluster_class="S8",
    db_cluster_network_type="vpc",
    db_cluster_description=name,
    db_node_group_count=1,
    payment_type="PayAsYouGo",
    db_node_storage="500",
    storage_type="cloud_essd",
    vswitch_id=default_switches.vswitches[0].id)
default_account = alicloud.clickhouse.Account("defaultAccount",
    db_cluster_id=default_db_cluster.id,
    account_description="your_description",
    account_name=name,
    account_password=pwd)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "testaccountname";
const pwd = config.get("pwd") || "Tf-testpwd";
const defaultRegions = alicloud.clickhouse.getRegions({
    current: true,
});
const defaultNetworks = alicloud.vpc.getNetworks({
    nameRegex: "default-NODELETING",
});
const defaultSwitches = Promise.all([defaultNetworks, defaultRegions]).then(([defaultNetworks, defaultRegions]) => alicloud.vpc.getSwitches({
    vpcId: defaultNetworks.ids?[0],
    zoneId: defaultRegions.regions?[0]?.zoneIds?[0]?.zoneId,
}));
const defaultDbCluster = new alicloud.clickhouse.DbCluster("defaultDbCluster", {
    dbClusterVersion: "20.3.10.75",
    category: "Basic",
    dbClusterClass: "S8",
    dbClusterNetworkType: "vpc",
    dbClusterDescription: name,
    dbNodeGroupCount: 1,
    paymentType: "PayAsYouGo",
    dbNodeStorage: "500",
    storageType: "cloud_essd",
    vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.vswitches?[0]?.id),
});
const defaultAccount = new alicloud.clickhouse.Account("defaultAccount", {
    dbClusterId: defaultDbCluster.id,
    accountDescription: "your_description",
    accountName: name,
    accountPassword: pwd,
});
configuration:
  name:
    type: string
    default: testaccountname
  pwd:
    type: string
    default: Tf-testpwd
resources:
  defaultDbCluster:
    type: alicloud:clickhouse:DbCluster
    properties:
      dbClusterVersion: 20.3.10.75
      category: Basic
      dbClusterClass: S8
      dbClusterNetworkType: vpc
      dbClusterDescription: ${name}
      dbNodeGroupCount: 1
      paymentType: PayAsYouGo
      dbNodeStorage: 500
      storageType: cloud_essd
      vswitchId: ${defaultSwitches.vswitches[0].id}
  defaultAccount:
    type: alicloud:clickhouse:Account
    properties:
      dbClusterId: ${defaultDbCluster.id}
      accountDescription: your_description
      accountName: ${name}
      accountPassword: ${pwd}
variables:
  defaultRegions:
    Fn::Invoke:
      Function: alicloud:clickhouse:getRegions
      Arguments:
        current: true
  defaultNetworks:
    Fn::Invoke:
      Function: alicloud:vpc:getNetworks
      Arguments:
        nameRegex: default-NODELETING
  defaultSwitches:
    Fn::Invoke:
      Function: alicloud:vpc:getSwitches
      Arguments:
        vpcId: ${defaultNetworks.ids[0]}
        zoneId: ${defaultRegions.regions[0].zoneIds[0].zoneId}

Create Account Resource

new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            account_description: Optional[str] = None,
            account_name: Optional[str] = None,
            account_password: Optional[str] = None,
            allow_databases: Optional[str] = None,
            allow_dictionaries: Optional[str] = None,
            db_cluster_id: Optional[str] = None,
            ddl_authority: Optional[bool] = None,
            dml_authority: Optional[str] = None,
            total_databases: Optional[str] = None,
            total_dictionaries: Optional[str] = None)
@overload
def Account(resource_name: str,
            args: AccountArgs,
            opts: Optional[ResourceOptions] = 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:clickhouse:Account
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AccountArgs
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 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 string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The Account resource accepts the following input properties:

AccountName string

Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.

AccountPassword string

The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.

DbClusterId string

The db cluster id.

AccountDescription string

In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.

AllowDatabases string

The list of databases to which you want to grant permissions. Separate databases with commas (,).

AllowDictionaries string

The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

DdlAuthority bool

Specifies whether to grant DDL permissions to the database account. Valid values: true and false. -true: grants DDL permissions to the database account. -false: does not grant DDL permissions to the database account.

DmlAuthority string

Specifies whether to grant DML permissions to the database account. Valid values: all and readOnly,modify.

TotalDatabases string

The list of all databases. Separate databases with commas (,).

TotalDictionaries string

The list of all dictionaries. Separate dictionaries with commas (,).

AccountName string

Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.

AccountPassword string

The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.

DbClusterId string

The db cluster id.

AccountDescription string

In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.

AllowDatabases string

The list of databases to which you want to grant permissions. Separate databases with commas (,).

AllowDictionaries string

The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

DdlAuthority bool

Specifies whether to grant DDL permissions to the database account. Valid values: true and false. -true: grants DDL permissions to the database account. -false: does not grant DDL permissions to the database account.

DmlAuthority string

Specifies whether to grant DML permissions to the database account. Valid values: all and readOnly,modify.

TotalDatabases string

The list of all databases. Separate databases with commas (,).

TotalDictionaries string

The list of all dictionaries. Separate dictionaries with commas (,).

accountName String

Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.

accountPassword String

The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.

dbClusterId String

The db cluster id.

accountDescription String

In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.

allowDatabases String

The list of databases to which you want to grant permissions. Separate databases with commas (,).

allowDictionaries String

The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

ddlAuthority Boolean

Specifies whether to grant DDL permissions to the database account. Valid values: true and false. -true: grants DDL permissions to the database account. -false: does not grant DDL permissions to the database account.

dmlAuthority String

Specifies whether to grant DML permissions to the database account. Valid values: all and readOnly,modify.

totalDatabases String

The list of all databases. Separate databases with commas (,).

totalDictionaries String

The list of all dictionaries. Separate dictionaries with commas (,).

accountName string

Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.

accountPassword string

The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.

dbClusterId string

The db cluster id.

accountDescription string

In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.

allowDatabases string

The list of databases to which you want to grant permissions. Separate databases with commas (,).

allowDictionaries string

The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

ddlAuthority boolean

Specifies whether to grant DDL permissions to the database account. Valid values: true and false. -true: grants DDL permissions to the database account. -false: does not grant DDL permissions to the database account.

dmlAuthority string

Specifies whether to grant DML permissions to the database account. Valid values: all and readOnly,modify.

totalDatabases string

The list of all databases. Separate databases with commas (,).

totalDictionaries string

The list of all dictionaries. Separate dictionaries with commas (,).

account_name str

Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.

account_password str

The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.

db_cluster_id str

The db cluster id.

account_description str

In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.

allow_databases str

The list of databases to which you want to grant permissions. Separate databases with commas (,).

allow_dictionaries str

The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

ddl_authority bool

Specifies whether to grant DDL permissions to the database account. Valid values: true and false. -true: grants DDL permissions to the database account. -false: does not grant DDL permissions to the database account.

dml_authority str

Specifies whether to grant DML permissions to the database account. Valid values: all and readOnly,modify.

total_databases str

The list of all databases. Separate databases with commas (,).

total_dictionaries str

The list of all dictionaries. Separate dictionaries with commas (,).

accountName String

Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.

accountPassword String

The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.

dbClusterId String

The db cluster id.

accountDescription String

In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.

allowDatabases String

The list of databases to which you want to grant permissions. Separate databases with commas (,).

allowDictionaries String

The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

ddlAuthority Boolean

Specifies whether to grant DDL permissions to the database account. Valid values: true and false. -true: grants DDL permissions to the database account. -false: does not grant DDL permissions to the database account.

dmlAuthority String

Specifies whether to grant DML permissions to the database account. Valid values: all and readOnly,modify.

totalDatabases String

The list of all databases. Separate databases with commas (,).

totalDictionaries String

The list of all dictionaries. Separate dictionaries with commas (,).

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.

Status string

The status of the resource. Valid Status: Creating,Available,Deleting.

Type string

The type of the database account. Valid values: Normal or Super.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the resource. Valid Status: Creating,Available,Deleting.

Type string

The type of the database account. Valid values: Normal or Super.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the resource. Valid Status: Creating,Available,Deleting.

type String

The type of the database account. Valid values: Normal or Super.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of the resource. Valid Status: Creating,Available,Deleting.

type string

The type of the database account. Valid values: Normal or Super.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of the resource. Valid Status: Creating,Available,Deleting.

type str

The type of the database account. Valid values: Normal or Super.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the resource. Valid Status: Creating,Available,Deleting.

type String

The type of the database account. Valid values: Normal or Super.

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_description: Optional[str] = None,
        account_name: Optional[str] = None,
        account_password: Optional[str] = None,
        allow_databases: Optional[str] = None,
        allow_dictionaries: Optional[str] = None,
        db_cluster_id: Optional[str] = None,
        ddl_authority: Optional[bool] = None,
        dml_authority: Optional[str] = None,
        status: Optional[str] = None,
        total_databases: Optional[str] = None,
        total_dictionaries: Optional[str] = None,
        type: 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)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
AccountDescription string

In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.

AccountName string

Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.

AccountPassword string

The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.

AllowDatabases string

The list of databases to which you want to grant permissions. Separate databases with commas (,).

AllowDictionaries string

The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

DbClusterId string

The db cluster id.

DdlAuthority bool

Specifies whether to grant DDL permissions to the database account. Valid values: true and false. -true: grants DDL permissions to the database account. -false: does not grant DDL permissions to the database account.

DmlAuthority string

Specifies whether to grant DML permissions to the database account. Valid values: all and readOnly,modify.

Status string

The status of the resource. Valid Status: Creating,Available,Deleting.

TotalDatabases string

The list of all databases. Separate databases with commas (,).

TotalDictionaries string

The list of all dictionaries. Separate dictionaries with commas (,).

Type string

The type of the database account. Valid values: Normal or Super.

AccountDescription string

In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.

AccountName string

Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.

AccountPassword string

The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.

AllowDatabases string

The list of databases to which you want to grant permissions. Separate databases with commas (,).

AllowDictionaries string

The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

DbClusterId string

The db cluster id.

DdlAuthority bool

Specifies whether to grant DDL permissions to the database account. Valid values: true and false. -true: grants DDL permissions to the database account. -false: does not grant DDL permissions to the database account.

DmlAuthority string

Specifies whether to grant DML permissions to the database account. Valid values: all and readOnly,modify.

Status string

The status of the resource. Valid Status: Creating,Available,Deleting.

TotalDatabases string

The list of all databases. Separate databases with commas (,).

TotalDictionaries string

The list of all dictionaries. Separate dictionaries with commas (,).

Type string

The type of the database account. Valid values: Normal or Super.

accountDescription String

In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.

accountName String

Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.

accountPassword String

The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.

allowDatabases String

The list of databases to which you want to grant permissions. Separate databases with commas (,).

allowDictionaries String

The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

dbClusterId String

The db cluster id.

ddlAuthority Boolean

Specifies whether to grant DDL permissions to the database account. Valid values: true and false. -true: grants DDL permissions to the database account. -false: does not grant DDL permissions to the database account.

dmlAuthority String

Specifies whether to grant DML permissions to the database account. Valid values: all and readOnly,modify.

status String

The status of the resource. Valid Status: Creating,Available,Deleting.

totalDatabases String

The list of all databases. Separate databases with commas (,).

totalDictionaries String

The list of all dictionaries. Separate dictionaries with commas (,).

type String

The type of the database account. Valid values: Normal or Super.

accountDescription string

In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.

accountName string

Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.

accountPassword string

The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.

allowDatabases string

The list of databases to which you want to grant permissions. Separate databases with commas (,).

allowDictionaries string

The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

dbClusterId string

The db cluster id.

ddlAuthority boolean

Specifies whether to grant DDL permissions to the database account. Valid values: true and false. -true: grants DDL permissions to the database account. -false: does not grant DDL permissions to the database account.

dmlAuthority string

Specifies whether to grant DML permissions to the database account. Valid values: all and readOnly,modify.

status string

The status of the resource. Valid Status: Creating,Available,Deleting.

totalDatabases string

The list of all databases. Separate databases with commas (,).

totalDictionaries string

The list of all dictionaries. Separate dictionaries with commas (,).

type string

The type of the database account. Valid values: Normal or Super.

account_description str

In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.

account_name str

Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.

account_password str

The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.

allow_databases str

The list of databases to which you want to grant permissions. Separate databases with commas (,).

allow_dictionaries str

The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

db_cluster_id str

The db cluster id.

ddl_authority bool

Specifies whether to grant DDL permissions to the database account. Valid values: true and false. -true: grants DDL permissions to the database account. -false: does not grant DDL permissions to the database account.

dml_authority str

Specifies whether to grant DML permissions to the database account. Valid values: all and readOnly,modify.

status str

The status of the resource. Valid Status: Creating,Available,Deleting.

total_databases str

The list of all databases. Separate databases with commas (,).

total_dictionaries str

The list of all dictionaries. Separate dictionaries with commas (,).

type str

The type of the database account. Valid values: Normal or Super.

accountDescription String

In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.

accountName String

Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.

accountPassword String

The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.

allowDatabases String

The list of databases to which you want to grant permissions. Separate databases with commas (,).

allowDictionaries String

The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).

dbClusterId String

The db cluster id.

ddlAuthority Boolean

Specifies whether to grant DDL permissions to the database account. Valid values: true and false. -true: grants DDL permissions to the database account. -false: does not grant DDL permissions to the database account.

dmlAuthority String

Specifies whether to grant DML permissions to the database account. Valid values: all and readOnly,modify.

status String

The status of the resource. Valid Status: Creating,Available,Deleting.

totalDatabases String

The list of all databases. Separate databases with commas (,).

totalDictionaries String

The list of all dictionaries. Separate dictionaries with commas (,).

type String

The type of the database account. Valid values: Normal or Super.

Import

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

 $ pulumi import alicloud:clickhouse/account:Account example <db_cluster_id>:<account_name>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.