阅读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__资源列表_资源编排-阿里云