All Products
Search
Document Center

RestartContainerGroup

Last Updated: Aug 15, 2019

You can call this operation to restart a container group.

Request parameters

Parameter Type Required Example Description
Action String Yes RestartContainerGroup The operation that you want to perform. Set this parameter to RestartContainerGroup.
RegionId String Yes cn-hangzhou The ID of the region where the container group resides.
ContainerGroupId String Yes eci-djfioduf35gitgyif The ID of the container group.

Additional notes

  1. You can only call this operation to restart a container group in the Pending or Running status. You cannot restart a container group in the Failed or ScheduleFailed status.

  2. You cannot restart container groups that were created before 15:00:00 March 7, 2019 (UTC+8).

  3. A container group is in the restarting status when it is being restarted.

Error codes

For more information about errors common to all operations, see Common error codes.

HTTP status code Error code Error message Description
400 IncorrectStatus %s The error message returned because you cannot perform the specified operation on a container group in the current status. You cannot restart a container group in the Failed or ScheduleFailed status.
403 InvalidAction The specified action is invalid. The error message returned because the specified action is invalid. You cannot restart obsolete container groups. You cannot restart container groups that have a pending operation.
400 InvalidParameter %s The error message returned because the specified value of the parameter is invalid.