All Products
Document Center


Last Updated: Oct 18, 2018

You can call this operation to obtain the container group logs.

Request parameters

Name Type Required Description
Action String Yes The operation that you want to perform. Set the value to DescribeContainerLog.
ContainerGroupId String Yes The ID of the container group.
RegionId String Yes The ID of the region in which the instance resides.
ContainerName String Yes The name of the container.
Tail String No Default: 500 lines. Maximum: 2,000 lines.
StartTime String No The time stamp must be in UTC and follow the RFC 3339 format. For example, 2018-08-02T15:00:00Z.

Response parameters

Name Type Description
ContainerName String The name of the container.
Content String The content of the log.


Sample requests

  2. &Action=DescribeContainerLog
  3. &ContainerGroupId=eci-uf6fonnghi50v6nqj40l
  4. &RegionId=cn-shanghai
  5. &ContainerName=u1
  6. &<Common request parameters>

Sample responses

JSON format
  1. {
  2. "RequestId":"CA850ADA-E850-4AC8-8355-5B5990EAB7D0",
  3. "ContainerName":"u1",
  4. "Content":""
  5. }

Error codes

Error codes specific to this API operation are as follows. For more information about the error codes that are common to all ECI API operations, see Common error codes.

Error code Error message HTTP status code Description
400 InvalidParameter The specified parameter {ParameterName} is not valid. The error message returned when the parameter value is invalid.
400 MissingParameter The input parameter {ParameterName} that is mandatory for processing this request is not supplied. The error message returned when a required parameter is not specified.