All Products
Search
Document Center

Elastic Container Instance:DescribeInstanceOpsRecords

Last Updated:Sep 13, 2024

Queries the information about operations and maintenance tasks of an elastic container instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
eci:DescribeInstanceOpsRecordsget
  • All Resources
    *
  • eci:tag
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the instance.

cn-hangzhou
ContainerGroupIdstringYes

The ID of the elastic container instance.

eci-bp1dvysdafbh00t7****
OpsTypestringYes

The type of the O&M task. Valid values:

  • coredump
  • tcpdump
coredump

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

89945DD3-9072-47D0-A318-353284CFC7B3
Recordsarray<object>

The details of the queried O&M tasks.

object
CreateTimestring

The time when the O&M task was created.

2021-12-29T15:00:00Z
ExpireTimestring

The time when the O&M task expires.

2099-12-29T15:00:00Z
OpsTypestring

The type of the O&M task.

coredump
OpsStatusstring

The status of the O&M task.

  • Ready
  • Failed
  • Expired
  • Closed
  • Success
Ready
ResultTypestring

The type of the O&M result. This parameter is returned only when the value of the OpsStatus parameter is Success.
The only value of the parameter is Oss. The value indicates that the files generated for the O&M task are saved to Object Storage Service (OSS) buckets.

OSS
ResultContentstring

The content of the O&M result. The value is the download URL of the files that are generated for the O&M task. This parameter is returned only when the value of the OpsStatus parameter is Success.

https://******

Examples

Sample success responses

JSONformat

{
  "RequestId": "89945DD3-9072-47D0-A318-353284CFC7B3",
  "Records": [
    {
      "CreateTime": "2021-12-29T15:00:00Z",
      "ExpireTime": "2099-12-29T15:00:00Z",
      "OpsType": "coredump",
      "OpsStatus": "Ready",
      "ResultType": "OSS",
      "ResultContent": "https://******"
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history