文档

AddContainerApp - 新增容器应用

更新时间:

新增容器应用操作不会进行镜像的拉取,拉取镜像请参照PullImage。

接口说明

新增的容器应用默认获取 Docker Hub 中的镜像,不会拉取最新镜像。您可以调用 PullImage 拉取最新镜像。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
Namestring

容器名称。长度为 2~64 个字符,必须以字母开头,可以包含字母、数字、短划线(-)和下划线(_) 。

container1
Repositorystring

获取 Docker Hub 中与仓库名称同名的镜像。

具体镜像名请参见Docker Hub 镜像

repo1
Descriptionstring

容器描述。

descriptionContainer
ImageTagstring

镜像的标签。

镜像仓库中会存放一类镜像,例如 Ubuntu,标签用于区分一类镜像中不同的镜像文件,例如 16.04、17.04、latest。

默认值:latest

latest
ContainerTypestring

容器类型。 固定值:singularity

singularity

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

04F0F334-1335-436C-A1D7-6C044FE7****
ContainerIdarray

容器 ID。

string

容器 ID。

ehpc-container-ABDUGSkjs****

示例

正常返回示例

JSON格式

{
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
  "ContainerId": {
    "ContainerId": [
      "ehpc-container-ABDUGSkjs****"
    ]
  }
}

错误码

HTTP status code错误码错误信息描述
400InvalidParamsThe specified parameter %s is invalid.无效的参数:%s
400NotEnabledYou have not enabled this service您的账户还未开通此服务
400InDebtYour account has overdue payments.您的账户已欠费
403ContainerNameExistThe container name already exists.容器名称已存在
403TooManyContainersThe number of containers exceeds the quota.容器应用数量超出用户最大配额
406DbErrorA database service error occurred.数据库请求失败
406AliyunErrorAn Alibaba Cloud product error occurred.阿里云产品错误
406FailToGenIdGenerating cluster ID failed.生成集群ID失败,请您再重试该操作。
407NotAuthorizedYou are not authorized by RAM for this request.此请求未获得RAM授权
500UnknownErrorAn unknown error occurred.未知错误
503ServiceUnavailableThe request has failed due to a temporary failure of the server请求失败,服务暂时不可用

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈