ALIYUN::ECD::Desktops is used to create one or more cloud desktops.
Syntax
{
"Type": "ALIYUN::ECD::Desktops",
"Properties": {
"UserAssignMode": String,
"PromotionId": String,
"PolicyGroupId": String,
"UserName": String,
"AutoRenew": Boolean,
"Amount": Integer,
"DesktopName": String,
"Hostname": String,
"Period": Integer,
"VolumeEncryptionEnabled": Boolean,
"AutoPay": Boolean,
"GroupId": String,
"OfficeSiteId": String,
"DesktopNameSuffix": Boolean,
"BundleId": String,
"EndUserId": List,
"VpcId": String,
"ChargeType": String,
"VolumeEncryptionKey": String,
"Tags": List,
"PeriodUnit": String,
"DirectoryId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
UserAssignMode | String | No | No | The assignment mode of the cloud desktops that you want to create. | Default value: ALL. Valid values:
Note If you do not specify the EndUserId property, the cloud desktops are not assigned to regular users. |
PromotionId | String | No | No | The ID of the sales promotion. | None. |
PolicyGroupId | String | Yes | No | The ID of the policy. | None. |
AutoRenew | Boolean | No | No | Specifies whether to enable auto-renewal. | Default value: false. Valid values:
Note This property takes effect only when you set the ChargeType property to PrePaid. |
Amount | Integer | No | No | The number of cloud desktops that you want to create. | Valid values: 1 to 300. Default value: 1. |
DesktopName | String | No | No | The name of the cloud desktop. | None. |
Hostname | String | No | No | The custom hostname that you specify for the cloud desktop. | You can specify a custom hostname only for a Windows cloud desktop in the workspace of the enterprise Active Directory (AD) account type. If you create a cloud desktop, the hostname that you specify must meet the following requirements:
If you create multiple cloud desktops, the hostnames that you specify must be in the The following information describes the parameters for the format:
|
Period | Integer | No | No | The subscription duration of the cloud desktop that you want to purchase. | The unit of the value is specified by the PeriodUnit property. This property takes effect and is required only when you set the ChargeType property to PrePaid .
|
VolumeEncryptionEnabled | Boolean | No | No | Specifies whether to enable disk encryption. | Default value: false. Valid values:
|
AutoPay | Boolean | No | No | Specifies whether to enable automatic payment. | Default value: true. Valid values:
|
GroupId | String | No | No | The ID of the desktop group. | None. |
OfficeSiteId | String | Yes | No | The ID of the workspace. | None. |
DesktopNameSuffix | Boolean | No | No | Specifies whether to automatically add a suffix to the cloud desktop name. | Default value: false. Valid values:
|
BundleId | String | Yes | No | The ID of the cloud desktop template. | None. |
EndUserId | List | No | No | The IDs of the regular users who are authorized to use the cloud desktop. | The cloud desktop that you create is assigned to the regular users. You can specify 1 to 100 user IDs.
|
ChargeType | String | No | No | The billing method of the cloud desktop. | Default value: PostPaid. Valid values:
|
VolumeEncryptionKey | String | No | No | The ID of the Key Management Service (KMS) key that is used when disk encryption is enabled. | For more information about how to query the key ID, see ListKeys. |
Tags | List | No | No | The tags. | For more information, see Tags properties. |
PeriodUnit | String | No | No | The unit of the subscription duration. | Default value: Month. Valid values:
|
VpcId | String | No | No | This property is unavailable. | None. |
DirectoryId | String | No | No | This property is unavailable. | None. |
UserName | String | No | No | This property is unavailable. | None. |
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags properties
Property | Type | Required | Editable | Description | Constraint |
Value | String | No | No | The value of the tag. | You can specify 1 to 20 values for a tag. |
Key | String | Yes | No | The key of the tag. | You can specify 1 to 20 keys for a tag. |
Return values
Fn::GetAtt
- DesktopId: the ID of the cloud desktop.
- OrderId: the ID of the order.
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "PolicyGroupId": { "Type": "String", "Description": "The ID of the policy." }, "OfficeSiteId": { "Type": "String", "Description": "The ID of the workspace." }, "BundleId": { "Type": "String", "Description": "The ID of the cloud desktop template." } }, "Resources": { "Desktops": { "Type": "ALIYUN::ECD::Desktops", "Properties": { "PolicyGroupId": { "Ref": "PolicyGroupId" }, "OfficeSiteId": { "Ref": "OfficeSiteId" }, "BundleId": { "Ref": "BundleId" } } } }, "Outputs": { "DesktopId": { "Description": "The ID of the cloud desktop. If multiple cloud desktops are created in a call, the\nIDs of the cloud desktops are returned.", "Value": { "Fn::GetAtt": [ "Desktops", "DesktopId" ] } }, "OrderId": { "Description": "The ID of the order.\nNote This parameter is returned only when the ChargeType parameter is set to PrePaid.", "Value": { "Fn::GetAtt": [ "Desktops", "OrderId" ] } } } }