Adds a container application.
Description
By default, after you add a container application, it pulls an image from Docker Hub. However, the container application does not pull the latest image.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | AddContainerApp |
The operation that you want to perform. Set the value to AddContainerApp. |
Name | String | Yes | container1 |
The name of the container. |
Repository | String | Yes | repo1 |
The name of the repository. |
Description | String | No | descriptionContainer |
The description of the container. |
ImageTag | String | No | latest |
The tag of the image. Default value: latest. |
ContainerType | String | No | singularity |
The type of the container. Set the value to singularity. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ContainerId | List | ehpc-container-ABDUGSkjs**** |
The ID of the container. |
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 |
The ID of the request. |
Examples
Sample requests
https://ehpc.cn-hangzhou.aliyuncs.com/?Action=AddContainerApp
&Name=container1
&Repository=repo1
&<Common request parameters>
Sample responses
XML
format
<AddContainerAppResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
<ContainerId>ehpc-container-ABDUGSkjs****</ContainerId>
</AddContainerAppResponse>
JSON
format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"ContainerId": "ehpc-container-ABDUGSkjs****"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The error message returned because the request has failed. The server is temporarily unavailable. |
For a list of error codes, visit the API Error Center.