Habilita un plan de escalado para un clúster de AnalyticDB for MySQL.
Descripción de la operación
Para obtener información sobre los endpoints de AnalyticDB for MySQL, consulte Endpoints.
Pruébelo ahora
Test
Autorización de RAM
|
Action |
Nivel de acceso |
Tipo de recurso |
Clave de condición |
Acción dependiente |
|
adb:EnableElasticPlan |
update |
*All Resource
|
Ninguna | Ninguna |
Parámetros de la solicitud
|
Parámetro |
Tipo |
Obligatorio |
Descripción |
Ejemplo |
| ElasticPlanName |
string |
Sí |
El nombre del plan de escalado. Nota
Puede llamar a la operación DescribeElasticPlans para consultar los nombres de los planes de escalado. |
test |
| DBClusterId |
string |
Sí |
El ID del clúster. Nota
Puede llamar a la operación DescribeDBClusters para consultar los ID de todos los clústeres de AnalyticDB for MySQL dentro de una región. |
amv-wz9509beptiz**** |
Elementos de la respuesta
|
Elemento |
Tipo |
Descripción |
Ejemplo |
|
object |
Los parámetros de respuesta. |
||
| RequestId |
string |
El ID de la solicitud. |
A5C433C2-001F-58E3-99F5-3274C14DF8BD |
Ejemplos
Respuesta exitosa
JSON Formato
{
"RequestId": "A5C433C2-001F-58E3-99F5-3274C14DF8BD"
}
Códigos de error
|
Código de estado HTTP |
Código de error |
Mensaje de error |
Descripción |
|---|---|---|---|
| 400 | ACS.ElasticPlan.AutoWorkerPlanExists | Failed to enable the elastic plan. The instance already has an active elastic plan. | Failed to enable the storage scaling plan because the cluster has another storage scaling plan enabled. |
| 400 | ACS.ElasticPlan.WorkerPlanExists | Failed to enable the elastic plan. At least one active elastic plan already exists. | Failed to enable the storage scaling plan because another storage scaling plan has been enabled. |
| 400 | ACS.ElasticPlan.InvalidStartTimeInterval | The start time of this elastic plan is too closed to another one. | The effective time of the scaling plan is close to that of another scaling plan. |
| 400 | ACS.ElasticPlan.InvalidEndTime | The end time should be later than current time. | The end time of scheduled scaling must be later than the current time. |
| 400 | ACS.ElasticPlan.InvalidTodayPlan | Failed to enable this elastic plan. Today's schedule time is missed and you should prepare at least %s minutes for us to prepare resource. | Failed to enable the elastic plan. The elastic scaling operation cannot be triggered at the configured time today. Make sure that the configured time is later than the earliest available time (current time plus %s minutes for resource preparation). |
| 400 | ACS.ElasticPlan.InvalidTargetSize | Invalid target size. | The target specification is invalid. |
| 400 | ACS.ElasticPlan.InvalidStartTime | Invalid start time. | The start time of the elastic plan is invalid. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
Consulte Códigos de error para ver la lista completa.
Notas de la versión
Consulte Notas de la versión para ver la lista completa.