Mengubah opsi jam instans sesuai kebutuhan.
Deskripsi operasi
Saat memanggil operasi ini, perhatikan hal-hal berikut:
-
Operasi ini adalah operasi asinkron. Setelah dipanggil, ID tugas asinkron akan dikembalikan. Anda dapat mengkueri hasil tugas asinkron untuk menentukan apakah operasi telah selesai.
-
Untuk memodifikasi PtpStatus, tipe instans yang sesuai harus mendukung parameter ini. Untuk tipe instans yang didukung secara spesifik, Anda dapat mengkueri daftar tipe instans (DescribeInstanceTypes).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifyInstanceClockOptions |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Parameter idempotensi. |
123e4567-e89b-12d3-a456-426655440000 |
| RegionId |
string |
Yes |
ID wilayah Instans ECS. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru Alibaba Cloud. |
cn-hangzhou |
| InstanceId |
string |
Yes |
ID instans |
i-bp67acfmxazb4ph**** |
| PtpStatus |
string |
No |
Status PTP. Nilai valid:
Nilai default: disabled. |
enabled |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run saja, tanpa menjalankan permintaan aktual. Nilai valid:
Nilai default: false. |
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Informasi tanggapan. |
||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| TaskId |
string |
ID tugas modifikasi. Anda dapat memanggil operasi DescribeTasks untuk mengkueri hasil modifikasi. |
t-bp1hvgwromzv32iq**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TaskId": "t-bp1hvgwromzv32iq****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidInstanceId.NotFound | The specified instanceId does not exist. | |
| 400 | InvalidParameter.ClientToken | The parameter ClientToken is invalid. | |
| 400 | InvalidParameter.PtpStatus | The specified parameter PtpStatus: %s is not valid. | |
| 400 | InvalidInstanceType.NotSupportEnablePtp | The specified instance type does not support enable PTP. | |
| 403 | Abs.InvalidRegionId.MalFormed | The specified parameter RegionId is not valid. | |
| 403 | InvalidOperation.PtpStatusAlreadyEnabled | The specified instance already has PTP enabled. | |
| 403 | InvalidOperation.PtpStatusAlreadyDisabled | The specified instance does not have PTP enabled. | |
| 403 | OperationDenied.HardwareNotSupportEnablePtp | The hardware of the instance does not support enable PTP. | |
| 403 | OperationDenied.ClockPtpNoStock | The resource of PTP is out of usage. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.