-
查询组织权限 - 容器镜像服务 SWR
creator_name String 组织创建者 self_auth UserAuth object 本用户权限 others_auths Array of UserAuth objects 其他用户的权限 表4 UserAuth 参数 参数类型 描述 user_id String
-
查询共享镜像列表 - 容器镜像服务 SWR
filter 否 String 应填写 center::{center}|name::{name}|limit::{limit}|offset::{offset}|namespace::{namespace}|order_column::{order_column}|order_type
-
获取镜像自动同步任务信息 - 容器镜像服务 SWR
repository 是 String 镜像仓库名称 表2 Query参数 参数 是否必选 参数类型 描述 filter 是 String 应填写 limit::{limit}|offset::{offset}|order::{order} ,其中{limit}为返回条数,{offset
-
创建共享账号 - 容器镜像服务 SWR
(err) } } 更多编程语言的SDK代码示例,请参见API Explorer的代码示例页签,可生成自动对应的SDK代码示例。
-
查询镜像tag列表 - 容器镜像服务 SWR
filter 否 String 应填写 offset::{offset}|limit::{limit}|order_column::{order_column}|order_type::{order_type}|tag::{tag} ,其中{limit}为返回条数,{offset}
-
查询镜像权限 - 容器镜像服务 SWR
self_auth UserAuth object 本用户权限 others_auths Array of UserAuth objects 其他用户的权限 表4 UserAuth 参数 参数类型 描述 user_id String 用户id,需要从IAM服务获取 user_name
-
创建镜像自动同步任务 - 容器镜像服务 SWR
RemoteNamespace: "string", RemoteRegionId: "string", } response, err := client.CreateImageSyncRepo(request) if err == nil {
-
查询镜像仓库列表 - 容器镜像服务 SWR
注意:order_column和order_type参数需要配套使用。 order_type 否 String 排序类型,可设置为desc(降序)、asc(升序)。注意:order_column和order_type参数需要配套使用。
-
上传镜像 - 容器镜像服务 SWR
curl -fsSL get.docker.com -o get-docker.sh sh get-docker.sh sudo systemctl daemon-reload sudo systemctl restart docker 二、构建镜像 在安装docker容器引擎的虚拟机上执行以下命令
-
手动同步镜像 - 容器镜像服务 SWR
if err == nil { fmt.Printf("%+v\n", response) } else { fmt.Println(err) } } 更多编程语言的SDK代码示例,请参见API Explorer的代码示例页签,
-
查询所有API版本信息 - 容器镜像服务 SWR
响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 versions Array of VersionDetail objects 描述version相关对象的列表 表3 VersionDetail 参数 参数类型 描述 id String 版本ID(版本号)
-
添加镜像授权 - 容器镜像服务 SWR
"auth": 7, "user_id": "fb3f175c1fd146ab8cdae3272be*****", "user_name": "test" } } 父主题: 应用示例
-
获取镜像老化记录 - 容器镜像服务 SWR
filter 否 String 应填写 limit::{limit}|offset::{offset}, 其中{limit}为返回条数,{offset}为起始索引, 注意:offset和limit参数需要配套使用 请求参数 表3 请求Header参数 参数 是否必选 参数类型 描述
-
创建JDK8基础镜像并上传至SWR - 容器镜像服务 SWR
的详细使用帮助,请查看Dockerfile reference。
-
状态码 - 容器镜像服务 SWR
500 Internal Server Error 请求未完成。服务异常。 501 Not Implemented 请求未完成。服务器不支持所请求的功能。 502 Bad Gateway 请求未完成。服务器从上游服务器收到一个无效的响应。
-
获取镜像老化规则记录 - 容器镜像服务 SWR
repository 是 String 镜像仓库名称 retention_id 是 Integer 镜像老化规则id 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 Content-Type 是 String 消息体的类型(格式),下方类型可任选其一使用: application
-
获取镜像老化规则列表 - 容器镜像服务 SWR
" : "v5" }, { "kind" : "label", "pattern" : "1.0.1" }, { "kind" : "regexp", "pattern" : "^123$" } ],
-
容器镜像迁移 - 容器镜像服务 SWR
容器镜像迁移 方案概述 使用docker命令迁移镜像至SWR 使用image-syncer迁移镜像至SWR 使用image-migrator迁移镜像至SWR 跨云Harbor同步镜像至华为云SWR
-
返回结果 - 容器镜像服务 SWR
1 2 3 4 { "error_msg": "The format of message is error", "error_code": "AS.0001" } 其中,error_code表示错误码,error_msg表示错误描述信息。
-
查询镜像仓库概要信息 - 容器镜像服务 SWR
repository 是 String 镜像仓库名称 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 Content-Type 是 String 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application