修改 PolarDB MySQL 叢集的功能配置。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
polardb:ModifyDBCluster |
update |
*DBCluster
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DBClusterId |
string |
是 |
叢集 ID。 說明
您可以呼叫 DescribeDBClusters 介面查看目標地域下所有的叢集資訊,包括叢集 ID。 |
pc-************* |
| StandbyHAMode |
string |
否 |
叢集的跨可用區自動切換模式,取值範圍如下:
|
ON |
| DataSyncMode |
string |
否 |
叢集的跨可用區資料複製方式,取值範圍如下:
|
AsynSync |
| FaultSimulateMode |
string |
否 |
叢集的故障演練維度。取值範圍如下:
說明
|
0 |
| StorageAutoScale |
string |
否 |
標準版叢集是否開啟儲存自動擴容。取值範圍如下:
|
Enable |
| CompressStorage |
string |
否 |
開啟儲存壓縮。取值為 ON。 |
ON |
| StorageUpperBound |
integer |
否 |
標準版叢集儲存自動擴容上限,單位:GB。 說明
取值最大為 32000。 |
800 |
| DBNodeCrashList |
string |
否 |
演練節點執行個體名列表。 說明
節點維度的演練只支援單個節點,可用區維度的演練可不傳該參數,或傳入所有節點。 |
pi-rwxxx |
| FaultInjectionType |
string |
否 |
故障注入方式。取值範圍如下:
枚舉值:
|
0 |
| ImciAutoIndex |
string |
否 |
自動列存索引提速功能。取值範圍如下:
說明
枚舉值:
|
OFF |
| TableMeta |
string |
否 |
需要還原的目標庫表資訊的 JSON 串,庫表資訊的值都是字串類型。
例如, 說明
您可以透過 DescribeMetaList 介面查看支援恢復的庫表名稱詳情,並將支援恢復的庫表資訊填入上述例子中的對應位置。 |
[ { "tables":[ { "name":"testtb", "type":"table", "newname":"testtb_restore" } ], "name":"testdb", "type":"db", "newname":"testdb_restore" } ] |
| ModifyRowCompression |
string |
否 |
修改列壓縮設定。 |
OFF |
對於參數 StandbyHAMode、DataSyncMode、FaultSimulateMode 和 StorageAutoScale,每次呼叫只能設定一個。如設定了 StandbyHAMode 參數的值後,不支援再同時設定其它的請求參數的值。
當參數 StorageAutoScale 的值設定為 Enable 後,還需要設定叢集儲存自動擴容上限 StorageUpperBound 參數的值。
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
CD3FA5F3-FAF3-44CA-AFFF-BAF869****** |
| DBClusterId |
string |
叢集 ID。 |
pc-************* |
| OrderId |
string |
產生的訂單 ID。 |
2148126708***** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "CD3FA5F3-FAF3-44CA-AFFF-BAF869******",
"DBClusterId": "pc-*************",
"OrderId": "2148126708*****"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | OperationDenied.CreateDBNodesWithStrictConsistencyOn | 3AZ cluster does not allow create db nodes. | 3AZ 叢集不允許增加節點。 |
| 400 | InvalidDBProxyClusterClass.Malformed | The specified parameter DBProxyClusterClass is not valid. | 指定的參數DBProxyClusterClass無效。 |
| 400 | InvalidDBNodeNum.Malformed | The number of parameter DBNode.N is not valid. | 參數DBNode的數量無效。 |
| 400 | OperationDenied.ModifyDBNodeClassWithStrictConsistencyOn | 3AZ cluster does not allow modify db node class. | 3AZ 叢集不允許變更 Logger 節點規格。 |
| 400 | InvalidDowngradeDBNodeClass.Limit | The specified Downgrade DBNodeClass is limit on the MaxDiskSize. | DBNodeClass降配被MaxDiskSize的限制。 |
| 400 | InvalidEngine.Unsupported | The specified Engine does not support this feature. | 指定的引擎不支援此功能。 |
| 400 | OperationDenied.ModifyProxyWithStrictConsistencyOn | 3AZ cluster does not allow modify proxy. | 3AZ 叢集不允許變更資料庫代理。 |
| 400 | StandbyClusterTurnOn | The specified dbCluster already turn on hot standby cluster. | 指定的 dbCluster 已開啟熱備叢集。 |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | 由於某些未知錯誤、異常或失敗,請求處理失敗。 |
| 403 | IncorrectDBInstanceType | Current DB instance type does not support this operation. | 目前資料庫執行個體類型不支援此操作。 |
| 403 | IncorrectDBInstance | Current DB instance does not support this operation. | 目前資料庫執行個體不支援此操作。 |
| 403 | OperationDenied.LockMode | The operation is not permitted due to lock of cluster. | 來源 RDS 執行個體目前狀態不允許執行該操作。 |
| 403 | OperationDenied.DBClusterStatus | The operation is not permitted due to status of cluster. | PolarDB叢集當前狀態下不允許執行該操作。 |
| 403 | OperationDenied.TempUpgradeDuring | This operation is not allowed during the temporary upgrade of the cluster. | 在叢集的臨時升級過程中,不允許執行此操作。 |
| 403 | InvalidParam.PgDBNodeSpec | The specification PGO of DB nodes is incorrect. | DB 節點的規格 PGO 不正確。 |
| 403 | InvalidParam.NoChange | No change found | 未找到變更。 |
| 403 | OperationDenied.DBNodeClass | The target DB node class is invalid for SQL acceleration. | 目標DB節點類對於SQL加速無效。 |
| 403 | OperationDenied.ReaderNum | The target reader node number is invalid for SQL acceleration. | 目標讀取器節點號對於 SQL 加速無效。 |
| 403 | InvalidParam.DBNodeNum | The number of DB nodes is incorrect. | 資料庫節點的數量不正確。 |
| 403 | OperationDenied.DBNodeRole | The operation is not permitted due to the role of node. | 由於節點的角色,不允許該操作。 |
| 403 | OperationDenied.DeleteNode | The senormal version cluster does not allow the deletion of ro nodes and standby nodes at the same time. | senormal版本叢集不允許同時刪除ro節點和備用節點。 |
| 403 | OperationDenied.EndpointDBNodeNumber | The operation is not permitted due to node number for Endpoint. | 該Endpoint不允許執行該操作。 |
| 403 | OperationDenied.StandbyEqualSpec | The spec of standby must be equal to rw | 備用的規格必須為 rw。 |
| 403 | OperationDenied.DeleteDBNodeNumber | The operation is not permitted due to the node number to delete. | 該節點不允許被刪除。 |
| 403 | OperationDenied.DbVersion | The operation is not permitted due to DbVersion. | 由於DB版本問題,不允許執行此操作。 |
| 403 | OperationDenied.ClusterCategory | The operation is not permitted due to cluster category. | 該叢集不支援此產品系列。 |
| 403 | OperationDenied.clusterSingleNodeLimit | Single-node instances are not supported and need to be upgraded to cluster version | 不支援單節點執行個體,需要將其升級到叢集版本。 |
| 403 | InvalidParam.CRACParamNodeNum | The CRAC nodes cannot exceed 8. | CRAC 節點不能超過 8 個。 |
| 403 | InvalidParam.ECSESSDSTANDARDParamNodeNum | The ECSESSDSTANDARD nodes cannot exceed 8. | ECESSDSTANDARD 節點不能超過 8 個。 |
| 404 | InvalidParam | Invalid Parameter. | |
| 404 | InvalidEditType | Wrong upgrade type. | 升級類型錯誤。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。