Queries event information about multiple container groups at a time.
Operation description
You can call this operation to query the event information about multiple elastic container instances at a time. By default, the most recent 50 entries of events of each elastic container instance are returned.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. | cn-hangzhou |
ZoneId | string | No | The zone ID. | cn-hangzhou-k |
VSwitchId | string | No | The vSwitch ID. | vsw-uf6h3rbwbm90urjwa**** |
ResourceGroupId | string | No | The ID of the resource group. | rg-uf66jeqopgqa9hdn**** |
ContainerGroupIds | string | No | The IDs of the elastic container instances. You can specify up to 20 IDs. Each ID must be a JSON string. | ["eci-bp17gw49eu09yiwm****", "eci-bp19aq49du01abcm****", "eci-2zegym1qhbmdfr1s****"] |
Tag | array<object> | No | The tag that is added to the elastic container instances. | |
object | No | |||
Value | string | No | The value of the tag. | name |
Key | string | No | The key of the tag. | test |
NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. | d78f2dd8-5979-42fe-xaee-b16db43be5bc |
EventSource | string | No | The event source. Valid values:
This parameter is empty by default. This indicates that all events are queried. | K8sAgent |
SinceSecond | integer | No | A relative time in seconds before the current time from which to show event information. This parameter is used to poll incremental events. | 60 |
Limit | integer | No | The maximum number of elastic container instances to be returned for this request. Default value: 200. Note
The number of elastic container instances to be returned is no greater than this parameter value.
| 200 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "1340C38D-6189-54D1-86F6-7D5ECF3E0088",
"TotalCount": 10,
"Data": [
{
"ContainerGroupId": "eci-uf6fonnghi50v6nq****",
"Name": "test",
"Namespace": "redis",
"uuid": "3fc6b309-****-****",
"Annotations": "\"{\\\"tenancy.x-k8s.io/namespace\\\":\\\"redis\\\"}\"",
"Events": [
{
"Type": "Normal",
"Count": 10,
"FirstTimestamp": "2021-10-04T09:08:04Z",
"LastTimestamp": "2021-10-04T09:08:04Z",
"Message": "Started container",
"Reason": "Started",
"ReportingComponent": "test",
"ReportingInstance": "test",
"Source": {
"Component": "kubelet",
"Host": "eci"
},
"involvedObject": {
"Kind": "Pod",
"Name": "test",
"Namespace": "default",
"Uid": "eci-8vb5nkcq3a5cu0p3****",
"ApiVersion": "v1"
},
"Metadata": {
"Name": "eci-uto-created-eci-for-ubuntu.167e3fb73cc7f9cb",
"Namespace": "default"
}
}
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-06-02 | The response structure of the API has changed | View Change Details |
2021-09-27 | The request parameters of the API has changed | View Change Details |