You can call DescribeInstanceOpsRecords to query the O&M task records for an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eci:DescribeInstanceOpsRecords |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| ContainerGroupId |
string |
Yes |
The ID of the ECI instance. |
eci-bp1dvysdafbh00t7**** |
| OpsType |
string |
Yes |
The type of the O&M task. Valid values:
|
coredump |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
89945DD3-9072-47D0-A318-353284CFC7B3 |
| Records |
array<object> |
The O&M task records. |
|
|
object |
|||
| CreateTime |
string |
The time when the O&M task was created. |
2024-07-22T09:27:43Z |
| ExpireTime |
string |
The time when the O&M task expires. |
2024-07-22T21:27:43Z |
| OpsType |
string |
The type of the O&M task. |
Coredump |
| OpsStatus |
string |
The status of the O&M task. Valid values:
|
Ready |
| ResultType |
string |
The type of the O&M result. This parameter is returned when OpsStatus is Success. |
Oss |
| ResultContent |
string |
The content of the O&M result. This is the download URL of the file generated by the O&M task. This parameter is returned when OpsStatus is Success. |
http://eci-****** |
Examples
Success response
JSON format
{
"RequestId": "89945DD3-9072-47D0-A318-353284CFC7B3",
"Records": [
{
"CreateTime": "2024-07-22T09:27:43Z",
"ExpireTime": "2024-07-22T21:27:43Z",
"OpsType": "Coredump",
"OpsStatus": "Ready",
"ResultType": "Oss",
"ResultContent": "http://eci-******"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.