Cria um modelo personalizado de cloud computer.
Sintaxe
{
"Type": "ALIYUN::ECD::Bundle",
"Properties": {
"Description": String,
"RootDiskSizeGib": Integer,
"Language": String,
"RootDiskPerformanceLevel": String,
"DesktopType": String,
"BundleName": String,
"ImageId": String,
"UserDiskPerformanceLevel": String,
"UserDiskSizeGib": List
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
Description |
String |
Não |
Sim |
Descrição do modelo. |
Nenhuma. |
|
RootDiskSizeGib |
Integer |
Sim |
Não |
Tamanho do disco do sistema. |
Unidade: GiB. O tamanho deve ser compatível com o tipo de cloud computer. Consulte Tipos de cloud computer. |
|
Language |
String |
Não |
Sim |
Idioma do SO. |
Aplica-se apenas a imagens de sistema. Valores válidos:
|
|
RootDiskPerformanceLevel |
String |
Não |
Não |
Nível de desempenho (PL) do disco do sistema. |
Disponível para os tipos Graphics e High Frequency. Valores válidos:
Compare os níveis de PL em ESSDs. |
|
DesktopType |
String |
Sim |
Não |
Tipo de cloud computer. |
Chame a operação DescribeBundles e verifique o parâmetro DesktopType para consultar os tipos compatíveis. Nota
Tipos acelerados por GPU exigem imagens aceleradas por GPU. |
|
BundleName |
String |
Não |
Sim |
Nome do modelo. |
Nenhuma. |
|
ImageId |
String |
Sim |
Sim |
ID da imagem. |
Nenhuma. |
|
UserDiskPerformanceLevel |
String |
Não |
Não |
PL do disco de dados. |
Disponível para os tipos Graphics e High Frequency. Valores válidos:
Compare os níveis de PL em ESSDs. |
|
UserDiskSizeGib |
List |
Sim |
Não |
Tamanho do disco de dados. |
Aceita apenas um disco de dados. Unidade: GiB. O tamanho deve ser compatível com o tipo de cloud computer. Consulte Tipos de cloud computer. Nota
O tamanho do disco de dados do modelo deve ser maior que o tamanho do disco de dados da imagem. |
Valores de retorno
Fn::GetAtt
BundleId: ID do modelo de cloud computer.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RootDiskSizeGib:
Type: Number
Description: The root disk size gib.
Default: 40
DesktopType:
Type: String
Description: |-
Desktop specifications.You can call Describundles to query the desktop bundle and get the currently supported desktop specification from the returned desktopType.
Explain that ordinary mirrors cannot choose the GPU specifications, and the GPU type mirror can only choose the GPU specification.
Default: eds.enterprise_office.8c8g
ImageId:
Type: String
Description: The ID of the image.
Default: desktopimage-windows-server-2019-64-ch-asp
UserDiskSizeGib:
Type: Json
Description: |-
The size of the data disk. Currently, only one data disk can be set. Unit: GiB.
- The size of the data disk that supports the setting corresponds to the specification.
- The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
MaxLength: 1
Default:
- 40
Resources:
Bundle:
Type: ALIYUN::ECD::Bundle
Properties:
RootDiskSizeGib:
Ref: RootDiskSizeGib
DesktopType:
Ref: DesktopType
ImageId:
Ref: ImageId
UserDiskSizeGib:
Ref: UserDiskSizeGib
Outputs:
BundleId:
Description: Desktop bundle ID.
Value:
Fn::GetAtt:
- Bundle
- BundleId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RootDiskSizeGib": {
"Type": "Number",
"Description": "The root disk size gib.",
"Default": 40
},
"DesktopType": {
"Type": "String",
"Description": "Desktop specifications.You can call Describundles to query the desktop bundle and get the currently supported desktop specification from the returned desktopType.\nExplain that ordinary mirrors cannot choose the GPU specifications, and the GPU type mirror can only choose the GPU specification.",
"Default": "eds.enterprise_office.8c8g"
},
"ImageId": {
"Type": "String",
"Description": "The ID of the image.",
"Default": "desktopimage-windows-server-2019-64-ch-asp"
},
"UserDiskSizeGib": {
"Type": "Json",
"Description": "The size of the data disk. Currently, only one data disk can be set. Unit: GiB.\n- The size of the data disk that supports the setting corresponds to the specification.\n- The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.",
"MaxLength": 1,
"Default": [40]
}
},
"Resources": {
"Bundle": {
"Type": "ALIYUN::ECD::Bundle",
"Properties": {
"RootDiskSizeGib": {
"Ref": "RootDiskSizeGib"
},
"DesktopType": {
"Ref": "DesktopType"
},
"ImageId": {
"Ref": "ImageId"
},
"UserDiskSizeGib": {
"Ref": "UserDiskSizeGib"
}
}
}
},
"Outputs": {
"BundleId": {
"Description": "Desktop bundle ID.",
"Value": {
"Fn::GetAtt": [
"Bundle",
"BundleId"
]
}
}
}
}