API请求
URLs
GET zstack/v1/ai/model-centers/servicesHeaders
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/ai/model-centers/services参数列表
| 名字 | 类型 | 位置 | 描述 | 可选值 | 起始版本 |
|---|---|---|---|---|---|
| modelCenterUuids (可选) | List | query | 模型仓库UUID列表 | 5.3.28 | |
| systemTags (可选) | List | query | 系统标签 | 5.3.28 | |
| userTags (可选) | List | query | 用户标签 | 5.3.28 |
API返回
返回示例
{
"services": [
{
"uuid": "model-center-uuid",
"serviceStatuses": [
{
"name": "nginx",
"status": "active"
}
],
"zdfs": {}
}
]
}| 名字 | 类型 | 描述 | 起始版本 |
|---|---|---|---|
| services | List | 模型中心服务列表 | 5.3.28 |
| uuid | String | 模型中心UUID | 5.3.28 |
| serviceStatuses | List | 服务状态列表 | 5.3.28 |
| serviceStatuses.name | String | 服务名称 | 5.3.28 |
| serviceStatuses.status | String | 服务状态 | 5.3.28 |
| zdfs | Object | ZDFS服务信息 | 5.3.28 |
SDK示例
Java
SDK
GetModelCenterServicesAction action = new GetModelCenterServicesAction();
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetModelCenterServicesAction.Result res = action.call();Python
SDK
GetModelCenterServicesAction action = GetModelCenterServicesAction()
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetModelCenterServicesAction.Result res = action.call()