Cria uma conta de banco de dados para um cluster do ApsaraDB for ClickHouse Enterprise Edition.
Sintaxe
{
"Type": "ALIYUN::ClickHouse::EnterpriseDBClusterAccount",
"Properties": {
"Account": String,
"AccountType": String,
"DBInstanceId": String,
"Password": String,
"Description": String,
"DmlAuthSetting": Map
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
Account |
String |
Sim |
Não |
Nome da conta do banco de dados. |
Nenhuma |
|
AccountType |
String |
Sim |
Não |
Tipo da conta do banco de dados. |
Valores válidos:
|
|
DBInstanceId |
String |
Sim |
Não |
ID do cluster. |
Nenhuma |
|
Password |
String |
Sim |
Sim |
Senha da conta do banco de dados. |
A senha deve atender aos seguintes requisitos: |
|
Description |
String |
Não |
Sim |
Descrição da conta. |
Nenhuma |
|
DmlAuthSetting |
Map |
Não |
Sim |
Configurações de permissão da conta. |
Nenhuma |
Sintaxe de DmlAuthSetting
"DmlAuthSetting": {
"DdlAuthority": Boolean,
"DmlAuthority": Integer,
"AllowDictionaries": List,
"AllowDatabases": List
}
Propriedades de DmlAuthSetting
|
Parâmetro |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
DdlAuthority |
Boolean |
Sim |
Sim |
Define se as permissões DDL são concedidas à conta do banco de dados. |
Valores válidos:
|
|
DmlAuthority |
Integer |
Sim |
Sim |
Nível de permissão DML da conta do banco de dados. |
Valores válidos:
|
|
AllowDatabases |
List |
Não |
Sim |
Bancos de dados acessíveis pela conta. |
Nenhuma |
|
AllowDictionaries |
List |
Não |
Sim |
Dicionários acessíveis pela conta. |
Nenhuma |
Valores de retorno
Fn::GetAtt
Account: nome da conta do banco de dados.
Description: descrição da conta.
AccountType: tipo da conta do banco de dados.
DmlAuthSetting: configurações de permissão.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Account:
Type: String
Description: The name of the database account.
Required: true
DBInstanceId:
Type: String
Description: The cluster ID.
Required: true
AccountType:
Type: String
Description: |-
The type of the database account. Valid values:
- **NormalAccount**: a normal account.
- **SuperAccount**: a privileged account.
AllowedValues:
- NormalAccount
- SuperAccount
Required: true
Password:
Type: String
Description: |-
The password for the database account. The password must meet the following requirements:
- It must contain characters from at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- The supported special characters are: Oh-! @#$%^& *()_+-=.
- It must be 8 to 32 characters in length.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::ClickHouse::EnterpriseDBClusterAccount
Properties:
Account:
Ref: Account
DBInstanceId:
Ref: DBInstanceId
AccountType:
Ref: AccountType
Password:
Ref: Password
Outputs:
Account:
Description: The name of the database account.
Value:
Fn::GetAtt:
- ExtensionResource
- Account
Description:
Description: The description of the account.
Value:
Fn::GetAtt:
- ExtensionResource
- Description
AccountType:
Description: The type of the database account.
Value:
Fn::GetAtt:
- ExtensionResource
- AccountType
DmlAuthSetting:
Description: The permission settings.
Value:
Fn::GetAtt:
- ExtensionResource
- DmlAuthSetting
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Account": {
"Type": "String",
"Description": "The name of the database account.",
"Required": true
},
"DBInstanceId": {
"Type": "String",
"Description": "The cluster ID.",
"Required": true
},
"AccountType": {
"Type": "String",
"Description": "The type of the database account. Valid values:\n- **NormalAccount**: a normal account.\n- **SuperAccount**: a privileged account.",
"AllowedValues": [
"NormalAccount",
"SuperAccount"
],
"Required": true
},
"Password": {
"Type": "String",
"Description": "The password for the database account. The password must meet the following requirements:\n- It must contain characters from at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.\n- The supported special characters are: Oh-! @#$%^& *()_+-=.\n- It must be 8 to 32 characters in length.",
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ClickHouse::EnterpriseDBClusterAccount",
"Properties": {
"Account": {
"Ref": "Account"
},
"DBInstanceId": {
"Ref": "DBInstanceId"
},
"AccountType": {
"Ref": "AccountType"
},
"Password": {
"Ref": "Password"
}
}
}
},
"Outputs": {
"Account": {
"Description": "The name of the database account.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Account"
]
}
},
"Description": {
"Description": "The description of the account.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"AccountType": {
"Description": "The type of the database account.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AccountType"
]
}
},
"DmlAuthSetting": {
"Description": "The permission settings.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"DmlAuthSetting"
]
}
}
}
}