Mengubah pengatur waktu pelepasan otomatis dari Instans pay-as-you-go atau spot instans tertentu. Anda juga dapat menggunakan operasi ini untuk membatalkan fitur pelepasan otomatis.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifyInstanceAutoReleaseTime |
update |
*Instans.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah instans. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| InstanceId |
string |
Yes |
ID Instance ECS yang akan dikonfigurasi untuk pelepasan otomatis. |
i-bp1env7nl3mijm2t**** |
| AutoReleaseTime |
string |
No |
Pengatur waktu pelepasan otomatis. Tentukan waktu dalam format standar ISO 8601 yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam UTC.
Jika Anda tidak menentukan parameter AutoReleaseTime, fitur pelepasan otomatis dibatalkan dan Instance ECS tidak lagi dilepaskan secara otomatis. |
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****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | InstanceId should not be null. | Parameter yang diperlukan hilang. |
| 400 | InvalidAutoReleaseTime.Malformed | The specified paramter autoReleaseTime is not valid. | Format pelepasan otomatis salah. Tentukan pengatur waktu dalam standar ISO 8601 UTC dengan format yyyy-MM-ddTHH:mm:ssZ. |
| 400 | UnsupportedParameter | The parameters is unsupported. | Parameter Port yang ditentukan tidak didukung. Periksa apakah parameter sudah benar. |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | Terjadi error internal. Coba lagi. |
| 403 | ChargeTypeViolation | The operation is not permitted due to charge type of the instance. | |
| 403 | InstanceLockedForSecurity | The specified operation is denied as your instance is locked for security reasons. | Instans tempat disk menyambungkan terkunci karena alasan keamanan. |
| 404 | NoSuchResource | The specified resource is not found. | Sumber daya yang ditentukan tidak ada. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.