Mengubah beberapa informasi tentang elasticity assurance, termasuk nama, deskripsi, dan kapasitas (hanya pengurangan kapasitas yang didukung).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifyElasticityAssurance |
update |
*ElasticityAssurance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah elasticity assurance. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| PrivatePoolOptions.Id |
string |
Yes |
The ID of the elasticity assurance. |
eap-bp67acfmxazb4**** |
| PrivatePoolOptions.Name |
string |
No |
The name of the elasticity assurance. The name must be 2 to 128 characters in length. It must start with a letter or a Chinese character and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). |
eapTestName |
| Description |
string |
No |
Deskripsi elasticity assurance. Panjang deskripsi harus 2 hingga 256 karakter dan tidak boleh diawali dengan |
This is description. |
| InstanceAmount |
integer |
No |
Jumlah total instans yang perlu dicadangkan oleh elasticity assurance. Nilai valid: jumlah instans yang digunakan hingga 1000. Parameter ini tidak dapat dimodifikasi bersama parameter lain. |
10 |
| ClientToken |
string |
No |
Token Klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan Klien untuk menghasilkan nilai ini, tetapi Anda harus memastikan bahwa nilai tersebut unik di antara permintaan yang berbeda. ClientToken hanya dapat berisi karakter ASCII dan panjangnya tidak boleh melebihi 64 karakter. Untuk informasi selengkapnya, lihat Cara memastikan idempotensi. |
123e4567-e89b-12d3-a456-426655440000 |
| RecurrenceRules |
array<object> |
No |
Daftar aturan pengulangan untuk elasticity assurance tersegmentasi waktu. |
|
|
object |
No |
Aturan pengulangan untuk elasticity assurance tersegmentasi waktu. Catatan
Aturan pengulangan yang dimodifikasi akan berlaku pada hari berikutnya. |
||
| RecurrenceType |
string |
No |
Tipe aturan pengulangan. Nilai valid:
Catatan
Anda harus menentukan |
Daily |
| RecurrenceValue |
string |
No |
Nilai aturan pengulangan.
Catatan
Anda harus menentukan |
5 |
| StartHour |
integer |
No |
Waktu mulai elasticity assurance tersegmentasi waktu. Nilai harus berupa jam bulat. Catatan
Anda harus menentukan |
4 |
| EndHour |
integer |
No |
Waktu berakhir elasticity assurance tersegmentasi waktu. Nilai harus berupa jam bulat. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
8455DD10-84F8-43C9-8365-5F448EB169B6 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "8455DD10-84F8-43C9-8365-5F448EB169B6"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRecurrenceRules.CountLimitExceeded | The count of RecurrenceRules exceeds the limit. | |
| 400 | InvalidRecurrenceRules.Unsupported | The specified parameter RecurrenceRules does not support for this resource package. | |
| 400 | InvalidRecurrenceRulesStartHourEndHour.TooShort | The recurrence hour between RecurrenceRules.StartHour and RecurrenceRules.EndHour is too short. | |
| 400 | InvalidParameter.RecurrenceRulesStartHourEndHour | The specified parameter RecurrenceRules.StartHour or RecurrenceRules.EndHour is invalid. | |
| 400 | InvalidParameter.RecurrenceRulesRecurrenceValueMonthly | The specified parameter RecurrenceRules.RecurrenceValue for Monthly is invalid. | |
| 400 | InvalidParameter.RecurrenceRulesRecurrenceValueWeekly | The specified parameter RecurrenceRules.RecurrenceValue for Weekly is invalid. | |
| 400 | InvalidParameter.RecurrenceRulesRecurrenceValueDaily | The specified parameter RecurrenceRules.RecurrenceValue for Daily is invalid. | |
| 400 | InvalidParameter.RecurrenceRulesRecurrenceType | The specified parameter RecurrenceRules.RecurrenceType is invalid. | |
| 400 | InvalidInstanceAmount.ValueNotSupported | The specified parameter InstanceAmount is not valid. | |
| 400 | InvalidDescription.ValueNotSupported | The specified Description is invalid. | |
| 400 | InvalidEndTime.ValueNotSupported | The specified EndTime is invalid. | |
| 400 | InvalidStartTime.ValueNotSupported | The specified StartTime is invalid. | |
| 400 | InvalidParameter.PrivatePoolOptions.Name | The parameter PrivatePoolOptions.Name is invalid. | |
| 400 | InvalidParameter.ClientToken | The parameter ClientToken is invalid. | |
| 400 | InvalidParameter.Description | The parameter Description is invalid. | |
| 401 | InvalidUser.Unauthorized | The user is not authorized. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | InvalidOperation.ModifyTotalActiveTimeUnsupported | Not support to modify the total active time of resource package. | |
| 403 | IncorrectPrivatePoolStatus | The current status of the private pool does not support this operation. | |
| 403 | OperationDenied.NoStock | The requested resource is sold out in the specified zone; try other types of resources or other regions and zones. | |
| 403 | InvalidPrivatePoolOptionsName.ValueNotSupported | The specified PrivatePoolOptions.Name is invalid. | |
| 403 | InvalidPlatform.ValueNotSupported | The specified Platform is invalid. | |
| 403 | OperationDenied.PlatformNotSupported | The specified private pool does not support this operation. | |
| 403 | OperationDenied.EndTimeTypeNotSupported | The specified private pool does not support this operation. | |
| 403 | OperationDenied.StartTimeNotSupported | The specified private pool does not support this operation. | |
| 403 | OperationDenied.InstanceAmountNotSupported | The specified private pool does not support this operation. | |
| 403 | InvalidInstanceAmount.ValueNotSupported | The specified InstanceAmount is invalid. | |
| 403 | InvalidPrivatePoolOptions.Id | The specified private pool does not support this operation. | |
| 403 | InvalidInstanceAmount.LessThanUsedAmount | The specified parameter InstanceAmount is less than UsedAmount. | |
| 403 | InvalidOperation.InstanceAmountAndOtherAttributesUnsupported | Modify InstanceAmount and other attributes simultaneously is not supported. | |
| 403 | QuotaExceed.ElasticityAssuranceCapacity | ElasticityAssurance Capacity quota exceeded. | |
| 404 | InvalidPrivatePoolId.NotFound | The specified private pool does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.