全部產品
Search
文件中心

Resource Orchestration Service:ALIYUN::ECD::Bundle

更新時間:Feb 26, 2025

ALIYUN::ECD::Bundle類型用於建立自訂模板。

文法

{
  "Type": "ALIYUN::ECD::Bundle",
  "Properties": {
    "Description": String,
    "RootDiskSizeGib": Integer,
    "Language": String,
    "RootDiskPerformanceLevel": String,
    "DesktopType": String,
    "BundleName": String,
    "ImageId": String,
    "UserDiskPerformanceLevel": String,
    "UserDiskSizeGib": List
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

Description

String

案頭模板描述。

RootDiskSizeGib

Integer

系統硬碟大小。

單位:GiB。

支援設定的系統硬碟大小與規格相對應。更多資訊,請參見雲電腦規格

Language

String

作業系統語言。

目前只支援系統鏡像。

取值:

  • zh-CN:簡體中文。

  • zh-HK:繁體中文。

  • en-US:英文。

  • ja-JP:日文。

RootDiskPerformanceLevel

String

系統硬碟的效能等級。

當案頭規格設定為圖形型或者高主頻時,支援設定磁碟效能等級。

取值:

  • PL0

  • PL1

  • PL2

  • PL3

關於各效能等級磁碟的差異,請參見ESSD雲端硬碟

DesktopType

String

案頭規格。

您可以調用DescribeBundles查詢案頭模板,從返回的DesktopType擷取當前支援的案頭規格。

說明

普通鏡像不能選擇GPU規格,GPU類型鏡像只能選擇GPU規格。

BundleName

String

案頭模板名稱。

ImageId

String

鏡像ID。

UserDiskPerformanceLevel

String

資料盤的效能等級。

當案頭規格設定為圖形型或者高主頻時,支援設定磁碟效能等級。

取值:

  • PL0

  • PL1

  • PL2

  • PL3

關於各效能等級磁碟的差異,請參見ESSD雲端硬碟

UserDiskSizeGib

List

資料盤大小。

目前只能設定一個資料盤。單位:GiB。

支援設定的資料盤大小與規格相對應。更多資訊,請參見雲電腦規格

說明

模板中設定的資料盤大小必須大於鏡像中的資料盤大小。

傳回值

Fn::GetAtt

BundleId:案頭模板ID。

樣本

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"
        ]
      }
    }
  }
}