文档

ModifyImageGatewayConfig - 修改镜像网关配置文件

更新时间:

调用ModifyImageGatewayConfig修改指定集群的镜像网关配置文件。

调试

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

授权信息

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

请求参数

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

集群 ID。

ehpc-hz-FYUr32****
DBTypestring

数据库类型。取值:mongodb

mongodb
DBUsernamestring

数据库用户名。

root
DBPasswordstring

数据库用户密码。

13****
DBServerInfostring

数据库 URI 信息。

dds-uf6628e4287716b433270.mongodb.rds.aliyuncs.com:3717/admin
DefaultRepoLocationstring

默认仓库服务。取值:registry-1.docker.io

registry-1.docker.io
PullUpdateTimeoutinteger

拉取镜像时间限制。单位为秒。

300
ImageExpirationTimeoutstring

删除镜像时间限制。

12:00:00
Repoobject []

仓库信息。

Authstring

仓库的认证方式。取值范围:

  • http
  • https

默认值:http

http
URLstring

仓库的 URL,如果要增加仓库源址,必须提供 URL。

https://registry.docker-cn.com
Locationstring

第 N 个仓库地址。

registry.docker-cn.com

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

04F0F334-1335-436C-A1D7-6C044FE73368

示例

正常返回示例

JSON格式

{
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}

错误码

HTTP status code错误码错误信息描述
400InvalidParamsThe specified parameter %s is invalid.无效的参数:%s
400NotEnabledYou have not enabled this service您的账户还未开通此服务
400InDebtYour account has overdue payments.您的账户已欠费
404ClusterNotFoundThe specified cluster does not exist.指定的集群不存在,请您检查该参数是否正确。
404LoginNotFoundThe specified login node does not exist.指定的登录节点不存在
406AliyunErrorAn Alibaba Cloud product error occurred.阿里云产品错误
406DbErrorA database service error occurred.数据库请求失败
406AgentErrorThe agent service request failed.集群侧命令运行失败
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)
文档反馈