O tipo de recurso ALIYUN::CloudPhone::InstanceGroup cria e inicia instâncias do Cloud Phone.
Sintaxe
{
"Type": "ALIYUN::CloudPhone::InstanceGroup",
"Properties": {
"KeyPairName": String,
"Description": String,
"Amount": Integer,
"SecurityGroupId": String,
"AutoRenew": Boolean,
"VSwitchId": String,
"Period": Integer,
"AutoPay": Boolean,
"InstanceName": String,
"EipBandwidth": Integer,
"ChargeType": String,
"ImageId": String,
"VncPassword": String,
"Tag": List,
"InstanceType": String,
"Resolution": String,
"PeriodUnit": String
}
}
Propriedades
Nome da propriedade | Tipo | Obrigatório | Atualização permitida | Descrição | Restrições |
ImageId | String | Sim | Sim | ID da imagem. | Nenhuma |
InstanceType | String | Sim | Não | Tipo da instância. | Nenhuma |
SecurityGroupId | String | Sim | Não | ID do grupo de segurança. | Utiliza o mesmo grupo de segurança do ECS. |
VSwitchId | String | Sim | Não | ID do vSwitch. | Nenhuma |
Amount | Integer | Não | Não | Quantidade de instâncias ECS a criar. | Valores válidos: 1 a 100. Valor padrão: 1. |
AutoPay | Boolean | Não | Não | Defina se o pagamento automático está ativado. | Valores válidos:
|
AutoRenew | Boolean | Não | Não | Defina se a renovação automática está ativada. | Este parâmetro é válido apenas quando ChargeType estiver definido como PrePaid. Valores válidos:
|
ChargeType | String | Não | Não | Método de faturamento da instância. | Valores válidos:
|
Description | String | Não | Sim | Descrição da instância. | A descrição deve ter entre 2 e 256 caracteres. Não pode começar com |
EipBandwidth | Integer | Não | Não | Largura de banda do Elastic IP Address (EIP). | Valores válidos: 1 a 200. Se você definir este parâmetro, um EIP com a largura de banda especificada será criado automaticamente e associado à instância do Cloud Phone. O EIP é liberado quando a instância é liberada. |
InstanceName | String | Não | Sim | Nome da instância. | O nome deve ter entre 2 e 128 caracteres. Deve começar com uma letra ou caractere chinês e não pode iniciar com Valor padrão: ID da instância. |
KeyPairName | String | Não | Sim | Nome do par de chaves da instância do Cloud Phone. | Nenhuma |
Period | Integer | Não | Não | Duração. | Valores válidos:
|
PeriodUnit | String | Não | Não | Unidade de duração da assinatura. | Valores válidos:
|
Resolution | String | Não | Sim | Resolução da instância do Cloud Phone. | Chame a operação DescribeInstanceTypes para consultar as resoluções compatíveis com o tipo de instância atual e selecione uma resolução adequada. |
Tag | List | Não | Sim | Conjunto de tags da instância. | Para mais informações, consulte a seção Propriedades de Tag. |
VncPassword | String | Não | Sim | Senha de conexão para o terminal de gerenciamento da instância do Cloud Phone. | Nenhuma |
Sintaxe de Tag
"Tag": [
{
"Value": String,
"Key": String
}
]
Propriedades de Tag
|
Nome da propriedade |
Tipo |
Obrigatório |
Atualização permitida |
Descrição |
Restrições |
|
Key |
String |
Sim |
Não |
Chave da tag da instância. |
Nenhuma |
|
Value |
String |
Não |
Não |
Valor da tag da instância. |
Nenhuma |
Valores de retorno
Fn::GetAtt
OrderId: ID do pedido.
InstanceIds: lista de IDs das instâncias.
TradePrice: preço do pedido.
PrivateIps: lista de endereços IP privados. Este parâmetro se aplica apenas a instâncias conectadas via VPC.
Exemplos
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SecurityGroupId:
Type: String
Description: The ID of the security group in which to create the ECS instance. If you create an instance in the classic network, the security group cannot belong to a VPC. If you create an instance in a VPC, the security group must belong to that VPC.
VSwitchId:
Type: String
Description: The ID of the vSwitch.
ImageId:
Type: String
Description: The image ID.
VncPassword:
Type: String
Description: |-
The VNC password for the Cloud Phone.
The password must be 6 characters long and can contain only uppercase letters,
lowercase letters, and digits.
AllowedPattern: '[a-zA-Z0-9]{6}'
InstanceType:
Type: String
Description: The instance type.
Resources:
InstanceGroup:
Type: ALIYUN::CloudPhone::InstanceGroup
Properties:
SecurityGroupId:
Ref: SecurityGroupId
VSwitchId:
Ref: VSwitchId
ImageId:
Ref: ImageId
VncPassword:
Ref: VncPassword
InstanceType:
Ref: InstanceType
Outputs:
OrderId:
Description: The order ID.
Value:
Fn::GetAtt:
- InstanceGroup
- OrderId
InstanceIds:
Description: The instance IDs.
Value:
Fn::GetAtt:
- InstanceGroup
- InstanceIds
TradePrice:
Description: The price.
Value:
Fn::GetAtt:
- InstanceGroup
- TradePrice
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SecurityGroupId": {
"Type": "String",
"Description": "The ID of the security group in which to create the ECS instance. If you create an instance in the classic network, the security group cannot belong to a VPC. If you create an instance in a VPC, the security group must belong to that VPC."
},
"VSwitchId": {
"Type": "String",
"Description": "The ID of the vSwitch."
},
"ImageId": {
"Type": "String",
"Description": "The image ID."
},
"VncPassword": {
"Type": "String",
"Description": "The VNC password for the Cloud Phone.\nThe password must be 6 characters long and can contain only uppercase letters, \nlowercase letters, and digits.",
"AllowedPattern": "[a-zA-Z0-9]{6}"
},
"InstanceType": {
"Type": "String",
"Description": "The instance type."
}
},
"Resources": {
"InstanceGroup": {
"Type": "ALIYUN::CloudPhone::InstanceGroup",
"Properties": {
"SecurityGroupId": {
"Ref": "SecurityGroupId"
},
"VSwitchId": {
"Ref": "VSwitchId"
},
"ImageId": {
"Ref": "ImageId"
},
"VncPassword": {
"Ref": "VncPassword"
},
"InstanceType": {
"Ref": "InstanceType"
}
}
}
},
"Outputs": {
"OrderId": {
"Description": "The order ID.",
"Value": {
"Fn::GetAtt": [
"InstanceGroup",
"OrderId"
]
}
},
"InstanceIds": {
"Description": "The instance IDs.",
"Value": {
"Fn::GetAtt": [
"InstanceGroup",
"InstanceIds"
]
}
},
"TradePrice": {
"Description": "The price.",
"Value": {
"Fn::GetAtt": [
"InstanceGroup",
"TradePrice"
]
}
}
}
}