Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ADB::Account

Última atualização: Jun 27, 2026

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

Sintaxe

{
  "Type": "ALIYUN::ADB::Account",
  "Properties": {
    "AccountDescription": String,
    "DBClusterId": String,
    "AccountType": String,
    "AccountPassword": String,
    "AccountName": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatório

Editável

Descrição

Restrição

AccountName

String

Sim

Não

Nome de usuário da conta do banco de dados.

Nenhuma.

AccountPassword

String

Sim

Sim

Senha da conta do banco de dados.

As seguintes restrições se aplicam:

  • A senha deve conter letras maiúsculas, minúsculas, dígitos e caracteres especiais.

    Caracteres especiais compatíveis: ! @ # $ % ^ & * () _ + - =

  • A senha deve ter de 8 a 32 caracteres.

DBClusterId

String

Sim

Não

ID do cluster do AnalyticDB for MySQL.

Nenhuma.

AccountDescription

String

Não

Não

Descrição da conta do banco de dados.

As seguintes restrições se aplicam:

  • A descrição não pode começar comhttp:// ou https://.

  • A descrição pode ter até 256 caracteres.

AccountType

String

Não

Não

Tipo da conta do banco de dados.

Valores válidos:

  • Normal: conta padrão.

  • Super: conta privilegiada.

Valores de retorno

Fn::GetAtt

  • DBClusterId: ID do cluster do AnalyticDB for MySQL.

  • AccountType: tipo da conta do banco de dados.

  • AccountName: nome de usuário da conta do banco de dados.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DBClusterId:
    Type: String
    Description: The ID of the cluster.
  AccountPassword:
    Type: String
    Description: |-
      The password of the account.
      The password must contain uppercase letters, lowercase letters, digits, and special
      characters.
      Special characters include ! @ # $ % ^ * ()  _ + - and =
      The password must be 8 to 32 characters in length.
  AccountName:
    Type: String
    Description: The name of the account.
Resources:
  Account:
    Type: ALIYUN::ADB::Account
    Properties:
      DBClusterId:
        Ref: DBClusterId
      AccountPassword:
        Ref: AccountPassword
      AccountName:
        Ref: AccountName
Outputs:
  DBClusterId:
    Description: The ID of the cluster.
    Value:
      Fn::GetAtt:
        - Account
        - DBClusterId
  AccountType:
    Description: The type of the account.
    Value:
      Fn::GetAtt:
        - Account
        - AccountType
  AccountName:
    Description: The name of the account.
    Value:
      Fn::GetAtt:
        - Account
        - AccountName

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DBClusterId": {
      "Type": "String",
      "Description": "The ID of the cluster."
    },
    "AccountPassword": {
      "Type": "String",
      "Description": "The password of the account.\nThe password must contain uppercase letters, lowercase letters, digits, and special\ncharacters.\nSpecial characters include ! @ # $ % ^ * ()  _ + - and =\nThe password must be 8 to 32 characters in length."
    },
    "AccountName": {
      "Type": "String",
      "Description": "The name of the account."
    }
  },
  "Resources": {
    "Account": {
      "Type": "ALIYUN::ADB::Account",
      "Properties": {
        "DBClusterId": {
          "Ref": "DBClusterId"
        },
        "AccountPassword": {
          "Ref": "AccountPassword"
        },
        "AccountName": {
          "Ref": "AccountName"
        }
      }
    }
  },
  "Outputs": {
    "DBClusterId": {
      "Description": "The ID of the cluster.",
      "Value": {
        "Fn::GetAtt": [
          "Account",
          "DBClusterId"
        ]
      }
    },
    "AccountType": {
      "Description": "The type of the account.",
      "Value": {
        "Fn::GetAtt": [
          "Account",
          "AccountType"
        ]
      }
    },
    "AccountName": {
      "Description": "The name of the account.",
      "Value": {
        "Fn::GetAtt": [
          "Account",
          "AccountName"
        ]
      }
    }
  }
}