查询镜像迁移规则详情
更新时间:2026-06-09
接口描述
查询单个迁移规则详细信息。
API Explorer
去调试
您可以在 API Explorer 中直接运行该接口,免去您计算签名的困扰。运行成功后,API Explorer 可以自动生成 SDK 代码示例。
请求结构
Plain Text
1GET /v1/instances/{instanceId}/replications/{policyId} HTTP/1.1
2Host: ccr.bd.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
|---|---|---|---|---|
| instanceId | String | 是 | URL参数 | CCR实例ID |
| policyId | String | 是 | URL参数 | 镜像迁移规则名称ID |
响应头域
除公共头域外,无其它特殊头域。
响应参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| creationTime | String | 镜像迁移规则创建时间 |
| deletion | Boolean | 级联删除 |
| description | String | 镜像迁移规则描述 |
| destProjectName | String | 目的命名空间 |
| destRegistry | ReplicationRegistry | 目的仓库 |
| enabled | Boolean | 镜像迁移规则状态 |
| executionTimes | Integer | 镜像迁移规则执行次数 |
| filters | List<ReplicationFilter> | 资源筛选 |
| id | Integer | 镜像迁移规则ID |
| name | String | 镜像迁移规则名称 |
| override | Boolean | 是否覆盖目的仓库上的资源 |
| srcRegistry | ReplicationRegistry | 源仓库 |
| trigger | ReplicationTrigger | 触发器 |
| updateTime | String | 镜像迁移规则更新时间 |
请求示例
Plain Text
1GET /v1/instances/ccr-4k74gw7d/replications/6 HTTP/1.1
2Host: ccr.bd.baidubce.com
3Authorization: bce-auth-v1/123456/2022-08-01T13:07:36Z/1800/host/0a859ce949951fe15a4eb6874a9765f9e8a6f7147f206cf47e270c34c862b8c6
响应示例
Plain Text
1HTTP/1.1 200 OK
2Content-Type: application/json; charset=utf-8
3Date: Mon, 01 Aug 2022 13:07:37 GMT
4X-Bce-Gateway-Region: BJ
5X-Bce-Request-Id: d8bb93db-9e4e-436e-b67c-91847b161c43
6
7{
8 "creationTime": "2022-08-12T08:22:16.866Z",
9 "deletion": false,
10 "description": "string",
11 "destProjectName": "ns-test",
12 "destRegistry": {
13 "creationTime": "0001-01-01T00:00:00.000Z",
14 "credential": {
15 "accessKey": "",
16 "accessSecret": "*****",
17 "type": "secret"
18 },
19 "description": "",
20 "id": 0,
21 "insecure": true,
22 "name": "Local",
23 "status": "healthy",
24 "type": "harbor",
25 "updateTime": "0001-01-01T00:00:00.000Z",
26 "url": "http://ccr-test-harbor-core:80",
27 "region": ""
28 },
29 "enabled": true,
30 "filters": [
31 {
32 "type": "name",
33 "value": "my-public/prepare"
34 }
35 ],
36 "id": 6,
37 "name": "migrate2",
38 "override": true,
39 "srcRegistry": {
40 "creationTime": "2022-08-11T12:00:08.397Z",
41 "credential": {
42 "accessKey": "100e5554da9b46e589b4c71dcc0d858f",
43 "accessSecret": "*****",
44 "type": "basic"
45 },
46 "description": "",
47 "id": 1,
48 "insecure": false,
49 "name": "Local",
50 "status": "healthy",
51 "type": "harbor",
52 "updateTime": "2022-08-11T12:00:08.397Z",
53 "url": "https://registry.baidubce.com",
54 "region": "com"
55 },
56 "trigger": {
57 "triggerSettings": null,
58 "type": "manual"
59 },
60 "updateTime": "2022-08-12T08:22:16.866Z",
61 "executionTimes": 0
62}
评价此篇文章
