Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ADBLake::Account

Última atualização: Jun 27, 2026

Cria uma conta de banco de dados para um cluster do AnalyticDB for MySQL Data Lakehouse Edition.

Sintaxe

{
  "Type": "ALIYUN::ADBLake::Account",
  "Properties": {
    "AccountType": String,
    "AccountName": String,
    "AccountPassword": String,
    "DBClusterId": String,
    "Engine": String,
    "AccountDescription": String,
    "RamUser": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

AccountType

String

Sim

Não

Tipo da conta.

Valores válidos:

  • Normal: conta padrão.

  • Super: conta privilegiada.

AccountName

String

Sim

Não

Nome da conta.

Requisitos:

  • Deve começar com letra minúscula e terminar com letra minúscula ou dígito.

  • Pode conter letras minúsculas, dígitos e sublinhados (_).

  • Deve ter de 2 a 16 caracteres.

  • Não use nomes de usuário reservados, como root, admin e opsadmin.

AccountPassword

String

Sim

Sim

Senha da conta.

  • Deve conter pelo menos três dos seguintes tipos de caractere: letras maiúsculas, letras minúsculas, dígitos e caracteres especiais.

  • Caracteres especiais permitidos: ! @ # $ % ^ & * ( ) _ + - =

  • Deve ter de 8 a 32 caracteres.

DBClusterId

String

Sim

Não

ID do cluster Data Lakehouse Edition.

Nenhuma.

Engine

String

Sim

Não

Mecanismo de banco de dados.

Valores válidos:

  • AnalyticDB (padrão): mecanismo AnalyticDB for MySQL.

  • Clickhouse: mecanismo de tabela ampla.

AccountDescription

String

Não

Sim

Descrição da conta.

  • Não pode começar com http:// ou https://.

  • Máximo de 256 caracteres.

RamUser

String

Não

Sim

ID do usuário do Resource Access Management (RAM).

Nenhuma.

Valores de retorno

Fn::GetAtt

AccountName: nome da conta.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DBClusterId:
    Type: String
    Description:
      en: The ID of the ADB Lake cluster.
    Required: true
  AccountType:
    Type: String
    Description:
      en: 'The type of the account.Valid values: Normal: normal account. Super: super account.'
    AllowedValues:
      - Normal
      - Super
    Required: true
  Engine:
    Type: String
    Description:
      en: 'The engine of the account.Valid values: AnalyticDB / Clickhouse.'
    AllowedValues:
      - Clickhouse
      - AnalyticDB
    Required: true
    Default: AnalyticDB
  AccountName:
    Type: String
    Description:
      en: The name of the account.The database account name must meet the following requirements:Start with a lowercase letter and end with a lowercase letter or number.Consists of lowercase letters, numbers, or underscores (_).The length is 2 to 16 characters.Reserved user names such as root, admin, and opsadmin cannot be used.
    Required: true
    AllowedPattern: ^[a-z][a-z0-9_]{0,14}[a-z0-9]$
    MinLength: 2
    MaxLength: 16
  AccountPassword:
    Type: String
    Description:
      en: 'The password of the account.The password must meet the following requirements:Database account password.It consists of any three of uppercase letters, lowercase letters, numbers, and special characters.Special symbols include the following: !@#$%^&*()_+-=The password length is 8 to 32 characters.'
    Required: true
    MinLength: 8
    MaxLength: 32
Resources:
  Account:
    Type: ALIYUN::ADBLake::Account
    Properties:
      DBClusterId:
        Ref: DBClusterId
      AccountType:
        Ref: AccountType
      Engine:
        Ref: Engine
      AccountName:
        Ref: AccountName
      AccountPassword:
        Ref: AccountPassword
Outputs:
  AccountName:
    Description: The name of the account.
    Value:
      Fn::GetAtt:
        - Account
        - AccountName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DBClusterId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the ADB Lake cluster."
      },
      "Required": true
    },
    "AccountType": {
      "Type": "String",
      "Description": {
        "en": "The type of the account.Valid values: Normal: normal account. Super: super account."
      },
      "AllowedValues": [
        "Normal",
        "Super"
      ],
      "Required": true
    },
    "Engine": {
      "Type": "String",
      "Description": {
        "en": "The engine of the account.Valid values: AnalyticDB / Clickhouse."
      },
      "AllowedValues": [
        "Clickhouse",
        "AnalyticDB"
      ],
      "Required": true,
      "Default": "AnalyticDB"
    },
    "AccountName": {
      "Type": "String",
      "Description": {
        "en": "The name of the account.The database account name must meet the following requirements:Start with a lowercase letter and end with a lowercase letter or number.Consists of lowercase letters, numbers, or underscores (_).The length is 2 to 16 characters.Reserved user names such as root, admin, and opsadmin cannot be used."
      },
      "Required": true,
      "AllowedPattern": "^[a-z][a-z0-9_]{0,14}[a-z0-9]$",
      "MinLength": 2,
      "MaxLength": 16
    },
    "AccountPassword": {
      "Type": "String",
      "Description": {
        "en": "The password of the account.The password must meet the following requirements:Database account password.It consists of any three of uppercase letters, lowercase letters, numbers, and special characters.Special symbols include the following: !@#$%^&*()_+-=The password length is 8 to 32 characters."
      },
      "Required": true,
      "MinLength": 8,
      "MaxLength": 32
    }
  },
  "Resources": {
    "Account": {
      "Type": "ALIYUN::ADBLake::Account",
      "Properties": {
        "DBClusterId": {
          "Ref": "DBClusterId"
        },
        "AccountType": {
          "Ref": "AccountType"
        },
        "Engine": {
          "Ref": "Engine"
        },
        "AccountName": {
          "Ref": "AccountName"
        },
        "AccountPassword": {
          "Ref": "AccountPassword"
        }
      }
    }
  },
  "Outputs": {
    "AccountName": {
      "Description": "The name of the account.",
      "Value": {
        "Fn::GetAtt": [
          "Account",
          "AccountName"
        ]
      }
    }
  }
}