ALIYUN::MarketPlace::Image 型は、MarketPlace からイメージを購入する場合に使用します。
構文
{ “Type” : “ALIYUN::MarketPlace::Image”, “Properties” : { “Duration” : Integer, “Quantity” : Integer, “PricingCycle” : String, “ChargeType” : String, “ImageId” : String }}
プロパティ
名前 | データ型 | 必須/省略可能 | 説明 | 制約 |
ImageId | String | 必須 | MarketPlace のイメージ ID | なし |
PricingCycle | String | 省略可能 | 支払いサイクルの単位 | ChargeType が [Postpaid] の場合、このパラメーターは無視されます。 ChargeType が [Prepaid] の場合は、このパラメーターを [Month] または [Year] に設定できます。 |
ChargeType | String | 省略可能 | 支払いオプション | 値のオプション : [Prepaid] および [Postpaid]。 デフォルト値 : [Prepaid] |
Duration | number | 省略可能 | 支払い持続期間 | 値のオプション : 1、2、3、6、12、24。 デフォルト値 : 1。 このパラメーターは PricingCycle で使用されます。 MarketPlace のリソースでサポートされている支払いサイクルは、1 か月、1 四半期、半年、1 年、および 2 年です。 PricingCycle が指定されていない場合、リソースは 1 回のみ購入されます。 |
Quantity | number | 省略可能 | 購入するリソースの数量 | デフォルト値は 1 です。 |
レスポンス値
Fn::GetAtt
OrderId : MarketPlace のイメージ購入の注文 ID
コーディング例
{ “ROSTemplateFormatVersion” : “2015-09-01”, “Resources” : { “ImageOrder”: { “Type”: “ALIYUN::MarketPlace::Image”, “Properties”: { “ImageId”:”m-25xovkjg5”, “Duration”:”1”, “PricingCycle”: “Month”, “Quantity”: 2, “ChargeType”: “Prepaid” } } }}
</article>
</main>