Panggil CreateInstanceOpsTask untuk membuat tugas Operations and Maintenance (O&M).
Deskripsi operasi
Deskripsi API
Tugas O&M mendukung dua tipe berikut:
coredump: Setelah Anda mengaktifkan coredump, sistem akan menghasilkan file core ketika sebuah container berhenti secara abnormal. File ini membantu Anda menganalisis masalah dan menentukan penyebabnya. Untuk informasi selengkapnya, lihat Enable coredump.
tcpdump: Setelah Anda mengaktifkan tcpdump, sistem akan menangkap paket jaringan. Hal ini membantu Anda menganalisis lalu lintas dan mengidentifikasi masalah jaringan. Untuk informasi selengkapnya, lihat Enable tcpdump.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eci:CreateInstanceOpsTask |
create |
*All Resource
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. |
cn-hangzhou |
| RegionId |
string |
Yes |
ID wilayah. |
cn-hangzhou |
| ContainerGroupId |
string |
Yes |
ID instans ECI. |
eci-bp1dvysdafbh00t7**** |
| OpsType |
string |
Yes |
Tipe tugas O&M. Nilai yang valid:
|
coredump |
| OpsValue |
string |
Yes |
Parameter untuk tugas O&M. Parameter yang dapat Anda atur bervariasi tergantung pada nilai OpsType.
|
enable |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|
||
| RequestId |
string |
ID permintaan. |
89945DD3-9072-47D0-A318-353284CFC7B |
| Result |
string |
Hasil eksekusi tugas O&M. |
Enable Success |
Contoh
Respons sukses
JSONformat
{
"RequestId": "89945DD3-9072-47D0-A318-353284CFC7B",
"Result": "Enable Success"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Coredump.RefrshIntervalTooShort | The time interval since last setting too short, please try again later. | |
| 400 | Ops.TypeNotSupport | %s | |
| 400 | Coredump.RegionNotSupport | %s | |
| 400 | CorePattern.UpdateFail | Update coredump settings fail, please try again later | |
| 400 | Coredump.InvalidCorePatternType | %s | |
| 400 | InvalidCorePatternValue | %s | |
| 400 | InvalidInstanceId.NotFound | The specified instanceId does not exist | |
| 400 | Ops.InstanceNotSupport | %s | |
| 400 | Ops.IntervalTooShort | The time interval since last setting too short, please try again later. | |
| 400 | Ops.RegionNotSupport | %s | |
| 400 | Ops.OpsValueInvalid | Ops value check failed, please confirm by ops type and try again later. | |
| 400 | Ops.ExecuteTaskFail | %s | |
| 400 | Tcpdump.InvalidValue | %s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.