列出镜像不可变规则

最近更新时间: 2026-09-17 00:02:54

1. 接口描述

接口请求域名: tcr.api3.fincloud.tencent.cn。

列出镜像不可变规则

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

接口更新时间:2023-11-28 15:27:52。

接口只验签名不鉴权。

2. 输入参数

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

参数名称 必选 允许NULL 类型 描述
Action String 公共参数,本接口取值:DescribeImmutableTagRules
Version String 公共参数,本接口取值:2019-09-24
Region String 公共参数,地域信息本接口不需要传递此参数。
RegistryId String 实例 Id
示例值:

3. 输出参数

参数名称 类型 描述
Rules Array of ImmutableTagRule 规则列表
示例值:查看
EmptyNs Array of String 未创建规则的命名空间
示例值:
Total Int64 规则总量
示例值:
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 错误码

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

错误码 描述
InternalError.Unknown 未知错误。
InternalError 内部错误。
InvalidParameter 参数错误。
InternalError.ErrorTcrInternal Tcr实例内部错误。
InternalError.ErrorTcrUnauthorized 没有Tcr操作权限。
ResourceNotFound.TcrResourceNotFound Tcr实例中的资源未找到。
ResourceNotFound 资源不存在。
AuthFailure CAM签名/鉴权错误。
FailedOperation 操作失败。

5. 示例

示例1 列出规则

输入示例

POST / HTTP/1.1
Host: tcr.api3.fincloud.tencent.cn
Content-Type: application/json
X-TC-Action: DescribeImmutableTagRules
<公共请求参数>

{
  "RegistryId": "tcr-mfoeec7x"
}

输出示例

{
  "Response": {
    "Rules": [
      {
        "TagDecoration": "matches",
        "RuleId": 19,
        "Disabled": false,
        "RepositoryDecoration": "repoMatches",
        "RepositoryPattern": "**",
        "TagPattern": "**",
        "NsName": "kofj"
      }
    ],
    "EmptyNs": [
      "library"
    ],
    "Total": 3,
    "RequestId": "17eacd5a-b943-4e39-8a7a-3fb7b171c995"
  }
}