Calls CreateInstanceOpsTask to create an operations and maintenance (O&M) task.
Operation description
Operation description
The following two types of O&M tasks are supported:
coredump: After coredump is enabled, the system generates a core file when a container terminates abnormally. You can use the core file to analyze the exception and identify the cause. For more information, see Enable coredump.
tcpdump: After tcpdump is enabled, the system captures network packets. You can use the captured packets to analyze messages and troubleshoot network issues. For more information, see Enable tcpdump.
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 |
The region ID. |
cn-hangzhou |
| RegionId |
string |
Yes |
The Elastic Container Instance (ECI) instance ID. |
eci-bp1dvysdafbh00t7**** |
| ContainerGroupId |
string |
Yes |
The type of the O&M task. Valid values:
|
coredump |
| OpsType |
string |
Yes |
The parameters of the O&M task. You can set the corresponding parameters based on the value of OpsType.
|
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 |
The request ID. |
89945DD3-9072-47D0-A318-353284CFC7B |
| Result |
string |
The execution result of the O&M task. |
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.