Memanggil ModifyCapacityReservation untuk memodifikasi sebagian informasi reservasi kapasitas, termasuk nama, deskripsi, mode pelepasan, dan jumlah total instans yang dicadangkan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifyCapacityReservation |
update |
*CapacityReservation
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah tempat reservasi kapasitas berada. Anda dapat memanggil DescribeRegions untuk meminta daftar terbaru wilayah Alibaba Cloud. |
cn-hangzhou |
| PrivatePoolOptions.Id |
string |
Yes |
ID reservasi kapasitas. |
crp-bp67acfmxazb4**** |
| PrivatePoolOptions.Name |
string |
No |
Nama reservasi kapasitas. Panjangnya harus 2 hingga 128 karakter. Harus diawali dengan huruf dan tidak boleh diawali dengan |
eapTestName |
| Description |
string |
No |
Deskripsi reservasi kapasitas. Panjangnya harus 2 hingga 256 karakter dan tidak boleh diawali dengan |
This is description. |
| StartTime |
string |
No |
Mode pemberlakuan reservasi kapasitas. Hanya mode berlaku segera yang didukung, dan tidak ada nilai yang perlu ditentukan untuk parameter ini. Catatan
Jika Anda tidak menentukan parameter ini, reservasi kapasitas akan berlaku segera. |
Now |
| EndTime |
string |
No |
Waktu saat reservasi kapasitas kedaluwarsa. Parameter ini hanya berlaku ketika |
2021-10-30T06:32:00Z |
| EndTimeType |
string |
No |
Mode pelepasan reservasi kapasitas. Nilai yang valid:
|
Unlimited |
| Platform |
string |
No |
Tipe sistem operasi dari image yang digunakan oleh instans. Nilai yang valid:
Catatan
Parameter ini saat ini belum tersedia. |
Linux |
| InstanceAmount |
integer |
No |
Jumlah total instans yang perlu dicadangkan oleh reservasi kapasitas. Nilai yang valid: jumlah instans yang sudah digunakan hingga 1000. Catatan
Saat menambah jumlah total instans, operasi dapat gagal karena inventaris tidak mencukupi. |
100 |
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 | 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. | |
| 401 | InvalidUser.Unauthorized | The user is not authorized. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 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 | OperationDenied.InstanceTypeNotAuthorized | The specified InstanceType is not available or not authorized. | |
| 404 | InvalidPrivatePoolId.NotFound | The specified private pool does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.