Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ResourceManager::Account

Última atualização: Jun 27, 2026

O recurso ALIYUN::ResourceManager::Account cria um membro do tipo resource account.

Sintaxe

{
  "Type": "ALIYUN::ResourceManager::Account",
  "Properties": {
    "PayerAccountId": String,
    "DisplayName": String,
    "FolderId": String,
    "DeleteAccount": Boolean
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

PayerAccountId

String

Não

Não

ID da conta de liquidação.

Padrão: a conta atual.

DisplayName

String

Sim

Sim

Nome de exibição do membro.

De 2 a 50 caracteres. Pode conter letras, dígitos, sublinhados (_), pontos (.) e hifens (-).

Deve ser único no diretório de recursos.

FolderId

String

Não

Sim

ID da pasta de recursos.

Nenhuma

DeleteAccount

Boolean

Não

Não

Indica se a conta será excluída.

Valores válidos:

  • true

  • false (padrão)

Valores de retorno

Fn::GetAtt

  • FolderId: ID da pasta de recursos.

  • ResourceDirectoryId: ID do diretório de recursos.

  • AccountId: ID da conta.

  • DisplayName: Nome de exibição do membro.

  • Type: Tipo do membro. O valor ResourceAccount indica uma resource account.

  • JoinMethod: Método de ingresso do membro no diretório de recursos. invited indica que o membro foi convidado. created indica que a conta do membro foi criada no diretório.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
 PayerAccountId:
  Type: String
  Description: ''
 DisplayName:
  Type: String
  Description: Member name
 FolderId:
  Type: String
  Description: The ID of the parent folder
Resources:
 ResourceManagerAccount:
  Type: 'ALIYUN::ResourceManager::Account'
  Properties:
   PayerAccountId:
    Ref: PayerAccountId
   DisplayName:
    Ref: DisplayName
   FolderId:
    Ref: FolderId
Outputs:
 JoinMethod:
  Description: >-
   Ways for members to join the resource directory. Valid values: invited,
   created
  Value:
   'Fn::GetAtt':
    - ResourceManagerAccount
    - JoinMethod
 ResourceDirectoryId:
  Description: Resource directory ID
  Value:
   'Fn::GetAtt':
    - ResourceManagerAccount
    - ResourceDirectoryId
 Type:
  Description: Member type. The value of ResourceAccount indicates the resource account
  Value:
   'Fn::GetAtt':
    - ResourceManagerAccount
    - Type
 AccountId:
  Description: This ID of Resource Manager Account
  Value:
   'Fn::GetAtt':
    - ResourceManagerAccount
    - AccountId
 DisplayName:
  Description: Member name
  Value:
   'Fn::GetAtt':
    - ResourceManagerAccount
    - DisplayName
 FolderId:
  Description: The ID of the parent folder
  Value:
   'Fn::GetAtt':
    - ResourceManagerAccount
    - FolderId

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "PayerAccountId": {
      "Type": "String",
      "Description": ""
    },
    "DisplayName": {
      "Type": "String",
      "Description": "Member name"
    },
    "FolderId": {
      "Type": "String",
      "Description": "The ID of the parent folder"
    }
  },
  "Resources": {
    "ResourceManagerAccount": {
      "Type": "ALIYUN::ResourceManager::Account",
      "Properties": {
        "PayerAccountId": {
          "Ref": "PayerAccountId"
        },
        "DisplayName": {
          "Ref": "DisplayName"
        },
        "FolderId": {
          "Ref": "FolderId"
        }
      }
    }
  },
  "Outputs": {
    "JoinMethod": {
      "Description": "Ways for members to join the resource directory. Valid values: invited, created",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerAccount",
          "JoinMethod"
        ]
      }
    },
    "ResourceDirectoryId": {
      "Description": "Resource directory ID",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerAccount",
          "ResourceDirectoryId"
        ]
      }
    },
    "Type": {
      "Description": "Member type. The value of ResourceAccount indicates the resource account",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerAccount",
          "Type"
        ]
      }
    },
    "AccountId": {
      "Description": "This ID of Resource Manager Account",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerAccount",
          "AccountId"
        ]
      }
    },
    "DisplayName": {
      "Description": "Member name",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerAccount",
          "DisplayName"
        ]
      }
    },
    "FolderId": {
      "Description": "The ID of the parent folder",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerAccount",
          "FolderId"
        ]
      }
    }
  }
}