API请求
URLs
GET zstack/v1/iam2/projects/repositoriesHeaders
Authorization: OAuth the-session-uuidCurl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/iam2/projects/repositories参数列表
| 名字 | 类型 | 位置 | 描述 | 可选值 | 起始版本 |
|---|---|---|---|---|---|
| limit (可选) | Integer | query | 5.1.8 | ||
| start (可选) | Integer | query | 5.1.8 | ||
| systemTags (可选) | List | query | 系统标签 | 5.1.8 | |
| userTags (可选) | List | query | 用户标签 | 5.1.8 |
API返回
返回示例
{
"inventories": [
{
"zeProjectID": 1,
"type": "public",
"readonly": false,
"name": "library",
"imageCount": 12,
"ID": 1001,
"desc": "default repository",
"createTime": "2026-05-22T10:00:00Z",
"chartCount": 0
}
]
}| 名字 | 类型 | 描述 | 起始版本 |
|---|---|---|---|
| inventories | List | 项目镜像仓库列表 | 5.3.28 |
| zeProjectID | Integer | 项目ID | 5.3.28 |
| type | String | 仓库类型 | 5.3.28 |
| readonly | Boolean | 是否只读 | 5.3.28 |
| name | String | 仓库名称 | 5.3.28 |
| imageCount | Integer | 镜像数量 | 5.3.28 |
| ID | Long | 仓库ID | 5.3.28 |
| desc | String | 仓库描述 | 5.3.28 |
| createTime | String | 创建时间 | 5.3.28 |
| chartCount | Integer | Chart数量 | 5.3.28 |
SDK示例
Java
SDK
GetIAM2ProjectRepositoryAction action = new GetIAM2ProjectRepositoryAction();
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetIAM2ProjectRepositoryAction.Result res = action.call();Python
SDK
GetIAM2ProjectRepositoryAction action = GetIAM2ProjectRepositoryAction()
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetIAM2ProjectRepositoryAction.Result res = action.call()