Cria uma conta em um host dedicado.
Sintaxe
{
"Type": "ALIYUN::CDDC::DedicatedHostAccount",
"Properties": {
"AccountPassword": String,
"AccountName": String,
"DedicatedHostId": String,
"AccountType": String,
"BastionInstanceId": String
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrição |
|
AccountName |
String |
Sim |
Não |
Nome da conta. |
Tamanho: 2 a 16 caracteres. |
|
AccountPassword |
String |
Sim |
Não |
Senha da conta. |
Nenhuma |
|
DedicatedHostId |
String |
Sim |
Não |
ID do host dedicado. |
Nenhuma |
|
AccountType |
String |
Não |
Não |
Tipo de conta. |
Valores válidos: Normal, Admin. |
|
BastionInstanceId |
String |
Não |
Não |
ID da instância bastion. |
Nenhuma |
Valores de retorno
Fn::GetAtt
Sem atributos retornados.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DedicatedHostId:
Type: String
Description: The ID of the dedicated host.
Required: true
AccountName:
Type: String
Description: The name of the account.
Required: true
AllowedPattern: ^[a-z][a-z0-9_]{0,14}[a-z0-9]$
MinLength: 2
MaxLength: 16
AccountPassword:
Type: String
Description: The password for the account.
Required: true
Resources:
DedicatedHostAccount:
Type: ALIYUN::CDDC::DedicatedHostAccount
Properties:
DedicatedHostId:
Ref: DedicatedHostId
AccountName:
Ref: AccountName
AccountPassword:
Ref: AccountPassword
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DedicatedHostId": {
"Type": "String",
"Description": "The ID of the dedicated host.",
"Required": true
},
"AccountName": {
"Type": "String",
"Description": "The name of the account.",
"Required": true,
"AllowedPattern": "^[a-z][a-z0-9_]{0,14}[a-z0-9]$",
"MinLength": 2,
"MaxLength": 16
},
"AccountPassword": {
"Type": "String",
"Description": "The password for the account.",
"Required": true
}
},
"Resources": {
"DedicatedHostAccount": {
"Type": "ALIYUN::CDDC::DedicatedHostAccount",
"Properties": {
"DedicatedHostId": {
"Ref": "DedicatedHostId"
},
"AccountName": {
"Ref": "AccountName"
},
"AccountPassword": {
"Ref": "AccountPassword"
}
}
}
}
}