Operasi ini digunakan untuk mengubah waktu pelepasan otomatis dari instance pay-as-you-go atau instance preemptible yang ditentukan. Operasi ini juga mendukung pembatalan fitur pelepasan otomatis.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifyInstanceAutoReleaseTime |
update |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID region dari instance. Anda dapat memanggil operasi DescribeRegions untuk membuat kueri daftar region Alibaba Cloud terbaru. |
cn-hangzhou |
| InstanceId |
string |
Yes |
ID dari instance ECS yang ingin Anda konfigurasikan untuk pelepasan otomatis. |
i-bp1env7nl3mijm2t**** |
| AutoReleaseTime |
string |
No |
Waktu pelepasan otomatis. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam UTC+0.
Jika parameter |
2018-01-01T01:02:03Z |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
Respons error
JSONformat
{
"RequestId": "E69EF3CC-94CD-42E7-8926-F133B86387C0",
"HostId": "ecs.aliyuncs.com",
"Code": "InternalError",
"Message": "The request processing has failed due to some unknown error,exception or failure."
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | InstanceId should not be null. | |
| 400 | InvalidAutoReleaseTime.Malformed | The specified paramter autoReleaseTime is not valid. | |
| 400 | UnsupportedParameter | The parameters is unsupported. | |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 403 | ChargeTypeViolation | The operation is not permitted due to charge type of the instance. | |
| 404 | NoSuchResource | The specified resource is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.