edit-icon download-icon

ALIYUN::MarketPlace::Image

Last Updated: Mar 29, 2018

The ALIYUN::MarketPlace::Image type is used to buy images from Marketplace.

Syntax

  1. {
  2. "Type" : "ALIYUN::MarketPlace::Image",
  3. "Properties" : {
  4. "Duration" : Integer,
  5. "Quantity" : Integer,
  6. "PricingCycle" : String,
  7. "ChargeType" : String,
  8. "ImageId" : String
  9. }
  10. }

Attributes

Attribute name Type Required? Description Constraint
ImageId string Yes Marketplace image ID N/A
PricingCycle string No Unit of the payment cycle This parameter is ignored if ChargeType is Postpaid. If ChargeType is Prepaid, this parameter can be set to Month or Year.
ChargeType string No Payment options Value options: Prepaid and Postpaid. Default value: Prepaid.
Duration number No Payment duration Value options: 1, 2, 3, 6, 12, and 24. Default value: 1. This parameter is used with PricingCycle. Marketplace resources support the following payment cycles: one month, one quarter, half a year, one year, and two years. If PricingCycle is not specified, the resource is bought only once.
Quantity number No Quantity of resources to be purchased The default value is 1.

Return values

Fn::GetAtt

  • OrderId: ID of the marketplace image purchase order

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "ImageOrder": {
  5. "Type": "ALIYUN::MarketPlace::Image",
  6. "Properties": {
  7. "ImageId":"m-25xovkjg5",
  8. "Duration":"1",
  9. "PricingCycle": "Month",
  10. "Quantity": 2,
  11. "ChargeType": "Prepaid"
  12. }
  13. }
  14. }
  15. }
Thank you! We've received your feedback.