購買儲存包。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
polardb:CreateStoragePlan |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClientToken |
string |
否 |
該參數用於保證請求的等冪性。由用戶端產生該參數值,保證在不同請求間該參數值的唯一性。該參數區分大小寫、長度不超過 64 個 ASCII 字元。 |
6000170000591aed949d0f5******************** |
| Period |
string |
是 |
儲存包時間長度單位。取值:
|
Month |
| UsedTime |
string |
是 |
儲存包的使用時間長度。
|
3 |
| StorageClass |
string |
是 |
儲存包的規格,單位為 GB。取值範圍:【50,100,200,300,500,1000,2000,3000,5000,10000,15000,20000,25000,30000,50000,100000,200000】。 |
500 |
| StorageType |
string |
是 |
儲存包類型。取值:
|
Mainland |
| AutoUseCoupon |
boolean |
否 |
||
| PromotionCode |
string |
否 |
727xxxxxx934 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
69A85BAF-1089-4CDF-A82F-0A140F****** |
| DBInstanceId |
string |
執行個體 ID。 |
POLARDB-cn-************** |
| OrderId |
string |
訂單 ID。 |
2035638******* |
樣本
正常返回樣本
JSON格式
{
"RequestId": "69A85BAF-1089-4CDF-A82F-0A140F******",
"DBInstanceId": "POLARDB-cn-**************",
"OrderId": "2035638*******"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidStorageUsedTime.Malformed | The UsedTime is not valid. | UsedTime無效 |
| 400 | MissParameter.StorageUsedTime | The StoragePeriod is needed. | 需要儲存期 |
| 400 | MissParameter.StoragePeriod | The StoragePeriod is needed. | 需要儲存期 |
| 400 | MissParameter.StorageClass | The StorageClass is needed. | 需要儲存規格 |
| 400 | MissParameter.StorageType | The StorageType is needed. | 需要儲存類型 |
| 400 | InvalidStorageClass.Malformed | The Specified StorageClass is not valid. | 指定的StorageClass無效。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。