API请求
URLs
GET zstack/v1/iam2/projects/container/cluster/candidatesHeaders
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/container/cluster/candidates参数列表
| 名字 | 类型 | 位置 | 描述 | 可选值 | 起始版本 |
|---|---|---|---|---|---|
| systemTags (可选) | List | body | 系统标签 | 5.1.8 | |
| userTags (可选) | List | body | 用户标签 | 5.1.8 |
API返回
返回示例
{
"inventories": [
{
"containerUuid": "endpoint-uuid",
"clusterId": 1,
"clusterName": "cluster-a",
"containerName": "endpoint-a",
"containerDescription": "container endpoint",
"projectTag": "project-a"
}
]
}| 名字 | 类型 | 描述 | 起始版本 |
|---|---|---|---|
| inventories | List | 候选容器集群列表 | 5.3.28 |
| containerUuid | String | 容器管理端点UUID | 5.3.28 |
| clusterId | long | 集群ID | 5.3.28 |
| clusterName | String | 集群名称 | 5.3.28 |
| containerName | String | 容器管理端点名称 | 5.3.28 |
| containerDescription | String | 容器管理端点描述 | 5.3.28 |
| projectTag | String | 项目标签 | 5.3.28 |
SDK示例
Java
SDK
GetIAM2ProjectContainerClusterCandidatesAction action = new GetIAM2ProjectContainerClusterCandidatesAction();
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetIAM2ProjectContainerClusterCandidatesAction.Result res = action.call();Python
SDK
GetIAM2ProjectContainerClusterCandidatesAction action = GetIAM2ProjectContainerClusterCandidatesAction()
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetIAM2ProjectContainerClusterCandidatesAction.Result res = action.call()