閱讀173 返回首頁    go 人物


ALIYUN::MarketPlace::Order__資源列表_資源編排-阿裏雲

ALIYUN::MarketPlace::Order 類型可用於購買雲市場的資源

語法

  1. {
  2. "Type" : "ALIYUN::MarketPlace::Order",
  3. "Properties" : {
  4. "ProductCode" : String,
  5. "SkuCode" : String,
  6. "PricingCycle" : String,
  7. "Preference" : Map,
  8. "ChargeType" : String,
  9. "Duration" : Integer,
  10. "Quantity" : Integer
  11. }
  12. }

屬性

屬性名稱 類型 必須 描述 約束
ProductCode string 雲市場資源的 Product Code
SkuCode string 雲市場資源的 sku code
PricingCycle string 付費周期單位 如果 ChargeType 指定為後付費,這個參數將被忽略;如果 ChargeType 是預付費,則允許的可選值:Month, Year
Preference map 客戶自定義參數
ChargeType string 付費類型 允許的可選值:Prepaid, Postpaid, 默認值是 Prepaid
Duration number 付費時長 默認值是1。該屬性和 PricingCycle 聯合使用。雲市場資源支持如下付費周期,一個月,一個季度,半年,一年,兩年;如果 PricingCycle 不指定,則表示隻購買該資源一次。允許的可選值 1, 2, 3, 6, 12, 24
Quantity number 購買該資源的數量,默認是 1

返回值

Fn::GetAtt

  • OrderId 購買雲市場資源的訂單 ID

示例

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "MarketOrder": {
  5. "Type": "ALIYUN::MarketPlace::Order",
  6. "Properties": {
  7. "ProductCode":"cmapi011900",
  8. "SkuCode":"postpay",
  9. "Duration":"1",
  10. "PricingCycle": "Year",
  11. "Quantity": 1,
  12. "ChargeType": "Prepaid",
  13. "Preference": {"my_email": "1111@aliyun.com"}
  14. }
  15. }
  16. },
  17. "Outputs" : {
  18. "OderId": {
  19. "Value": {
  20. "Fn::GetAtt": [
  21. "MarketOrder",
  22. "OrderId"
  23. ]
  24. }
  25. }
  26. }
  27. }

最後更新:2016-12-20 17:12:42

  上一篇:go ALIYUN::ECS::SNatEntry__資源列表_資源編排-阿裏雲
  下一篇:go ALIYUN::MEMCACHE::Instance__資源列表_資源編排-阿裏雲