CreateInstanceOpsTask çağrısı yaparak bir operasyon ve bakım (O&M) görevi oluşturur.
Operation description
İşlem açıklaması\nAşağıdaki iki O&M görevi türü desteklenir:\n\n- coredump: coredump etkinleştirildikten sonra, bir konteyner anormal şekilde sonlandırıldığında sistem bir core dosyası oluşturur. İstisnayı analiz etmek ve nedeni belirlemek için core dosyasını kullanabilirsiniz. Daha fazla bilgi için bkz. coredump'u etkinleştirme.\n- tcpdump: tcpdump etkinleştirildikten sonra, sistem ağ paketlerini yakalar. Yakalanan paketleri iletileri analiz etmek ve ağ sorunlarını gidermek için kullanabilirsiniz. Daha fazla bilgi için bkz. tcpdump'u etkinleştirme.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eci:CreateInstanceOpsTask |
create |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
Bölge kimliği. |
cn-hangzhou |
| RegionId |
string |
Yes |
Elastic Container Instance (ECI) örnek kimliği. |
eci-bp1dvysdafbh00t7**** |
| ContainerGroupId |
string |
Yes |
O&M görevinin türü. Geçerli değerler:\n\n- coredump\n- tcpdump. |
coredump |
| OpsType |
string |
Yes |
O&M görevinin parametreleri. OpsType değerine göre ilgili parametreleri ayarlayabilirsiniz.\n- OpsType, coredump olarak ayarlanmışsa, OpsValue için geçerli değerler şunlardır:\n - enable: coredump'u etkinleştirir.\n - disable: coredump'u devre dışı bırakır.\n- OpsType, tcpdump olarak ayarlanmışsa, OpsValue, |
enable |
| OpsValue |
string |
Yes |
The parameters for the O&M task. The parameters that you can set vary based on the value of OpsType.
|
enable |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
İstek kimliği. |
89945DD3-9072-47D0-A318-353284CFC7B |
| Result |
string |
O&M görevinin yürütme sonucu. |
Enable Success |
Examples
Success response
JSON format
{
"RequestId": "89945DD3-9072-47D0-A318-353284CFC7B",
"Result": "Enable Success"
}
Error codes
|
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 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.