Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::EHPC::Users

Última atualização: Jun 27, 2026

O recurso ALIYUN::EHPC::Users adiciona um ou mais usuários a um cluster especificado.

Sintaxe

{
  "Type": "ALIYUN::EHPC::Users",
  "Properties": {
    "ClusterId": String,
    "Users": List
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

ClusterId

String

Sim

Não

ID do cluster.

Nenhuma.

Users

List

Sim

Sim

Informações dos usuários.

Máximo de 100 usuários por cluster. Propriedades de Users.

Sintaxe de Users

"Users": [
  {
    "Group": String,
    "Password": String,
    "Name": String
  }
]

Propriedades de Users

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Group

String

Sim

Sim

Grupo de permissões para adicionar os usuários.

Valores válidos:

  • users: grupo de permissões comum. Para usuários que apenas enviam e depuram jobs.

  • wheel: grupo de permissões sudo. Para administradores que gerenciam o cluster. Usuários com privilégios sudo também podem instalar software e reiniciar nós.

Password

String

Sim

Sim

Senha do usuário.

Deve ter entre 8 e 30 caracteres e conter três dos seguintes tipos:

  • Letras maiúsculas

  • Letras minúsculas

  • Dígitos

  • Caracteres especiais: ( ) ~ ! @ # $ % ^ & * - _ + = | { } [ ] : ; ' / < > , . ? /.

Name

String

Sim

Não

Nome de usuário.

Deve ter entre 6 e 30 caracteres, pode conter letras, dígitos e pontos (.) e deve começar com uma letra.

Valores de retorno

Fn::GetAtt

Nenhum.

Exemplos

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ClusterId:
        Type: String
        Description:
          en: The cluster ID.
        Default: ehpc-hz-FYUr32****
      Users:
        AssociationPropertyMetadata:
          Parameter:
            AssociationPropertyMetadata:
              Parameters:
                Group:
                  Type: String
                  Description:
                    en: |-
                      The permission group to which the user N belongs. Valid values:
                      - **users**: an ordinary permission group. It is applicable to ordinary users that need only to submit and debug jobs.
                      - **wheel**: a sudo permission group. It is applicable to the administrator who needs to manage the cluster. In addition to submitting and debugging jobs, users who have sudo permissions can run sudo commands to install software and restart nodes.
                      Valid values of N: 1 to 100.
                Password:
                  Type: String
                  Description:
                    en: |-
                      The password of the Nth user. The password must be 8 to 30 characters in length and contain three of the following items:
                      - Uppercase letter
                      - Lowercase letter
                      - Digit
                      - Special character: ()~!@#$%^&*-_+=|{}[]:;'/<>,.?/
                      Valid values of N: 1 to 100.
                Name:
                  Type: String
                  Description:
                    en: |-
                      The name of the user that you want to add. The name must be 6 to 30 characters in length and can contain letters, digits, and periods (.). It must start with a letter. 
                      Valid values of N: 1 to 100.
            Type: Json
        AssociationProperty: List[Parameter]
        Type: Json
        Description:
          en: The information about the users.
        MaxLength: 100
        Default:
          - Group: user1
            Password: 1@a2****
            Name: users
    Resources:
      EHPCUsers:
        Type: ALIYUN::EHPC::Users
        Properties:
          ClusterId:
            Ref: ClusterId
          Users:
            Ref: Users
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ClusterId": {
          "Type": "String",
          "Description": {
            "en": "The cluster ID."
          },
          "Default": "ehpc-hz-FYUr32****"
        },
        "Users": {
          "AssociationPropertyMetadata": {
            "Parameter": {
              "AssociationPropertyMetadata": {
                "Parameters": {
                  "Group": {
                    "Type": "String",
                    "Description": {
                      "en": "The permission group to which the user N belongs. Valid values:\n- **users**: an ordinary permission group. It is applicable to ordinary users that need only to submit and debug jobs.\n- **wheel**: a sudo permission group. It is applicable to the administrator who needs to manage the cluster. In addition to submitting and debugging jobs, users who have sudo permissions can run sudo commands to install software and restart nodes.\nValid values of N: 1 to 100."
                    }
                  },
                  "Password": {
                    "Type": "String",
                    "Description": {
                      "en": "The password of the Nth user. The password must be 8 to 30 characters in length and contain three of the following items:\n- Uppercase letter\n- Lowercase letter\n- Digit\n- Special character: ()~!@#$%^&*-_+=|{}[]:;'/<>,.?/\nValid values of N: 1 to 100."
                    }
                  },
                  "Name": {
                    "Type": "String",
                    "Description": {
                      "en": "The name of the user that you want to add. The name must be 6 to 30 characters in length and can contain letters, digits, and periods (.). It must start with a letter. \nValid values of N: 1 to 100."
                    }
                  }
                }
              },
              "Type": "Json"
            }
          },
          "AssociationProperty": "List[Parameter]",
          "Type": "Json",
          "Description": {
            "en": "The information about the users."
          },
          "MaxLength": 100,
          "Default": [
      {
        "Group": "user1",
        "Password": "1@a2****",
        "Name": "users"
      }
    ]
        }
      },
      "Resources": {
        "EHPCUsers": {
          "Type": "ALIYUN::EHPC::Users",
          "Properties": {
            "ClusterId": {
              "Ref": "ClusterId"
            },
            "Users": {
              "Ref": "Users"
            }
          }
        }
      }
    }