サブスクリプション形式の Simple Application Server を作成します。
操作説明
この操作を呼び出す前に、Simple Application Server の課金ルールを事前にご確認ください。詳細については、「課金対象項目」をご参照ください。
Alibaba Cloud アカウントにクーポンが存在する場合、クーポンが優先的に Simple Application Server の支払いに使用されます。
-
Alibaba Cloud アカウントあたり、1 つのリージョンで最大 50 台の Simple Application Server を作成できます。
-
この操作を呼び出して Simple Application Server を作成する際は、アカウント残高がサーバーの料金を支払える十分な金額であることをご確認ください。残高が不足している場合、サーバーの作成は失敗します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
swas-open:CreateInstances |
create |
*Instance
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
Simple Application Server のリージョン ID です。最新のリージョン一覧を照会するには、ListRegions 操作を呼び出してください。 |
cn-hangzhou |
| ImageId |
string |
必須 |
イメージ ID です。指定したリージョンで利用可能なイメージを照会するには、ListImages 操作を呼び出してください。 |
e2c9c365024a44369c9b955a998a**** |
| PlanId |
string |
必須 |
プラン ID です。指定したリージョンで Simple Application Server が提供するすべてのプランを照会するには、ListPlans 操作を呼び出してください。 |
swas.s1.c1m1s40b3t05 |
| Period |
integer |
必須 |
サーバーのサブスクリプション期間です。単位:月。有効値:1、3、6、12、24、36。 |
1 |
| AutoRenew |
boolean |
任意 |
自動更新を有効にするかどうかを指定します。有効値:
デフォルト値:false。 |
false |
| AutoRenewPeriod |
integer |
任意 |
自動更新期間です。 |
3 |
| DataDiskSize |
integer |
任意 |
サーバーにアタッチされるデータディスクのサイズです。単位:GB。有効値:0~16380。値は 20 の整数倍である必要があります。
デフォルト値:0。 |
20 |
| Amount |
integer |
任意 |
作成する Simple Application Server の台数です。有効値:1~20。 デフォルト値:1。 |
1 |
| ChargeType |
string |
任意 |
Simple Application Server の課金方法です。「PrePaid」を指定してください(サブスクリプション課金方式を意味します)。 デフォルト値:PrePaid。 |
PrePaid |
| ClientToken |
string |
任意 |
リクエストのべき等性を保証するためのクライアントトークンです。クライアント側でトークンを生成できますが、異なるリクエスト間で重複しないように、トークンの値は一意である必要があります。ClientToken の値は ASCII 文字のみを含むことができ、長さは 64 文字を超えてはなりません。詳細については、「べき等性の保証方法」をご参照ください。 |
123e4567-e89b-12d3-a456-426655440000 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID です。 |
30637AD6-D977-4833-A54C-CC89483E1FEE |
| InstanceIds |
array |
Simple Application Server の ID です。 |
|
|
string |
Simple Application Server の ID です。 |
3a658ca270df4df39f22e289b338**** |
例
成功レスポンス
JSONJSON
{
"RequestId": "30637AD6-D977-4833-A54C-CC89483E1FEE",
"InstanceIds": [
"3a658ca270df4df39f22e289b338****"
]
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | ExceedAccountQuota | The accumulated instance amounts including this order have exceeded the quota of the account. | |
| 400 | NotEnoughStock | The stock is insufficient. | |
| 400 | PlatformNotMatch | The platform of specified ImageId and PlanId does not match. | |
| 400 | InvalidPeriod.ValueNotSupported | The specified parameter Period is invalid. | |
| 400 | InvalidDataDiskSize.ValueNotSupported | The specified parameter DataDiskSize is invalid. | |
| 400 | InvalidAmount.ValueNotSupported | The specified parameter Amount is invalid. | |
| 400 | InvalidChargeType.ValueNotSupported | The specified parameter ChargeType is invalid. | |
| 400 | InvalidAutoRenewPeriod.ValueNotSupported | The specified parameter AutoRenewPeriod is invalid. | |
| 400 | InvalidPlanIdSize.ValueNotSupported | The system disk size in the specified planId does not support the image. | |
| 400 | InvalidPlanMemorySize.ValueNotSupported | The memory size in the specified planId does not support the image. | |
| 400 | CSS_SYSTEM_ERROR | The sales system encountered an error. | |
| 400 | SWAS_NOT_ENOUGH_ACTIVITY_STOCK | The configuration you selected is sold out in the current region. Please try to select another configuration or region. | |
| 500 | InternalError | An error occurred while processing your request. | |
| 500 | NotEnoughUpgradeStock | The upgrade stock is insufficient. | |
| 403 | PaymentFailed | Payment failed. Please check your account balance. | |
| 403 | InvalidInstance.UnPaidOrder | The specified Instance has an unpaid order. | |
| 403 | InvalidParam | The specified parameter value is invalid. | |
| 404 | InvalidImageId.NotFound | The specified ImageId does not exist. | |
| 404 | InvalidPlanId.NotFound | The specified PlanId does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。