スケジュールされたスケーリングポリシーを使用します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
selectdb:EnDisableScalingRules |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Product |
string |
任意 |
クラウドサービス。 |
selectdb |
| DbInstanceId |
string |
必須 |
インスタンス ID。 |
selectdb-cn-7213cjv**** |
| RegionId |
string |
必須 |
リージョン ID。 |
cn-hangzhou |
| ClusterId |
string |
必須 |
クラスター ID。 |
selectdb-cn-nwy3jv1oa02-be |
| ScalingRulesEnable |
boolean |
必須 |
スケジュールされたスケーリングポリシーを有効にするかどうかを指定します。 有効な値:
列挙値:
|
true |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ |
||
| RequestId |
string |
リクエスト ID。 |
4773E4EC-025D-509F-AEA9-D53123FDFB0F |
| Data |
object |
返されるデータ。 |
|
| DbInstanceId |
string |
インスタンス ID。 |
selectdb-cn-7213cjv**** |
| ClusterId |
string |
クラスター ID。 |
selectdb-cn-pe33jc1nd01-be |
| ScalingRulesEnable |
boolean |
スケジュールされたスケーリングポリシーが有効になっているかどうかを示します。 有効な値:
列挙値:
|
true |
例
成功レスポンス
JSONJSON
{
"RequestId": "4773E4EC-025D-509F-AEA9-D53123FDFB0F",
"Data": {
"DbInstanceId": "selectdb-cn-7213cjv****",
"ClusterId": "selectdb-cn-pe33jc1nd01-be",
"ScalingRulesEnable": true
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidClusterId.Malformed | The specified parameter "ClusterId" is not valid. | |
| 400 | InvalidDBInstanceId.Malformed | The specified parameter "DBInstanceId" is not valid. | |
| 400 | InvalidRegionId.Malformed | The specified parameter "RegionId" is not valid. | |
| 400 | DocumentConvertFailed.ExceedFileSizeLimit | The conversion has been failed, exceed file size limit. | 日文说明1 |
| 400 | Forbidden | User not authorized to operate on the specified resource, or this API does not support RAM. | 日文说明1 |
| 400 | InvalidDBName | The specified database name is not allowed. | 日文说明1 |
| 400 | CreateOrderFailed | Failed to create order. | 注文の作成に失敗しました。 |
| 403 | OperationDenied.EnableScalingRules | the operator is not permitted due to scaling rule's count is less than 2. | |
| 403 | OperationDenied.GetResourceLockFailed | the operator is not permitted due to get resource lock failed. | |
| 403 | DBClusterNotSupported | The requested operation can not be performed while the cluster is not sale. | 日文说明1 |
| 403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | 日文说明1 |
| 403 | InstanceEngineType.NotSupport | The instance engine and type does not support operations. | 日文说明1 |
| 403 | InvalidDBInstanceState.NotSupport | The specified instance state does't support this operation. | 日文说明1 |
| 403 | MoneyLessThan100 | The Account Monet less Than 100. | 日文说明1 |
| 403 | OperationDenied.DBNameAndAccountPrivilegeCount | The operation is not permitted due to count of database or account privilege. | 日文说明1 |
| 403 | InsufficientResourceCapacity | The resource is out of usage. | リソースが不足しています。しばらくしてからやり直してください。 |
| 404 | DBInstanceLocked | The current instance lock mode does not support this operation. | 日文说明1 |
| 404 | IncorrectVswitchId | The specified parameter VSwitchId is not valid. | 日文说明1 |
| 404 | InvalidApi.NotFound | Specified api is not found, please check your url and method. | |
| 404 | InvalidDBInstance.NotFound | The specified instance is not found. | 日文说明1 |
| 404 | InvalidDBInstanceClass.NotFound | The specified instance classic does not exist. | 日文说明1 |
| 404 | InvalidRegionId.NotFound | The provided RegionId does not exist in our records. | 日文说明1 |
| 404 | QueryPrice.Failed | The inquiry failed. Contact Alibaba Cloud customer service representatives. | 日文说明1 |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。