批量授权镜像扫描V2.0

最近更新时间: 2024-09-03 18:49:51

1. 接口描述

接口请求域名: tcss.api3.cloud.sunhongs.com。

批量授权镜像扫描V2.0

默认接口请求频率限制:20次/秒。

接口更新时间:2023-11-10 10:16:20。

接口既验签名又鉴权。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数

参数名称 必选 允许NULL 类型 描述
Action String 公共参数,本接口取值:ModifyImageAuthorized
Version String 公共参数,本接口取值:2020-11-01
Region String 公共参数,本接口不需要传递此参数。
LocalImageFilter Array of AssetFilters 根据满足条件的本地镜像授权,AllLocalImages为false且LocalImageIds为空和UpdatedLocalImageCnt大于0时,需要。
RegistryImageFilter Array of AssetFilters 根据满足条件的仓库镜像授权,AllRegistryImages为false且RegistryImageIds为空和UpdatedRegistryImageCnt大于0时,需要。
ExcludeLocalImageIds Array of String 根据满足条件的镜像授权,同时排除的本地镜像。
ExcludeRegistryImageIds Array of String 根据满足条件的镜像授权,同时排除的仓库镜像。
LocalImageIds Array of String 根据本地镜像ids授权,优先权高于根据满足条件的镜像授权。AllLocalImages为false且LocalImageFilter为空和UpdatedLocalImageCnt大于0时,需要。
RegistryImageIds Array of String 根据仓库镜像Ids授权,优先权高于根据满足条件的镜像授。AllRegistryImages为false且RegistryImageFilter为空和UpdatedRegistryImageCnt大于0时,需要。
AllLocalImages Bool 本地镜像是否全部授权的标识,优先权高于根据本地镜像ids授权。等于true时需UpdatedLocalImageCnt大于0。
AllRegistryImages Bool 仓库镜像是否全部授权的标识,优先权高于根据镜像ids授权。等于true时需UpdatedRegistryImageCnt大于0。
UpdatedLocalImageCnt Uint64 指定操作授权的本地镜像数量,判断优先权最高,实际多出的镜像随机忽略,实际不足的部分也忽略。
UpdatedRegistryImageCnt Uint64 指定操作授权的仓库镜像数量,判断优先权最高,实际多出的镜像随机忽略,实际不足的部分也忽略;
OnlyShowLatest Bool 是否仅最新的镜像;RegistryImageFilter不为空且UpdatedRegistryImageCnt大于0时仓库镜像需要。
ImageSourceType String 根据满足条件的本地镜像授权,本地镜像来源;ASSETIMAGE:本地镜像列表;IMAGEALL:同步本地镜像;AllLocalImages为false且LocalImageIds为空和UpdatedLocalImageCnt大于0时,需要

3. 输出参数

参数名称 类型 描述
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码 描述
InvalidParameter
AuthFailure
InternalError
ResourceNotFound
InvalidParameterValue
FailedOperation
InvalidParameter.ParsingError
InvalidParameter.MissingParameter
InvalidParameter.InvalidFormat
FailedOperation.AuthorizedNotEnough
InternalError.MainDBFail