API请求
URLs
DELETE zstack/v1/ai/model-services/instances/groupsHeaders
Authorization: OAuth the-session-uuidBody
{
"uuids": [
"861d19beee3d4da6b9ae57a5c172a684",
"5588a492845b442d985d6663016d758a"
],
"deleteMode": "Permissive"
}Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X DELETE -d '{"uuids":["861d19beee3d4da6b9ae57a5c172a684","5588a492845b442d985d6663016d758a"],"deleteMode":"Permissive"}' \
http://localhost:8080/zstack/v1/ai/model-services/instances/groups参数列表
| 名字 | 类型 | 位置 | 描述 | 可选值 | 起始版本 |
|---|---|---|---|---|---|
| uuids | List | body | 5.3.20 | ||
| deleteMode (可选) | String | body | 删除模式(Permissive / Enforcing,Permissive) | 5.3.20 | |
| systemTags (可选) | List | body | 系统标签 | 5.3.20 | |
| userTags (可选) | List | body | 用户标签 | 5.3.20 |
API返回
返回示例
{
"results": [
{
"uuid": "1516e53731354f5c9521e88091b40bd0",
"success": true,
"error": null
}
]
}| 名字 | 类型 | 描述 | 起始版本 |
|---|---|---|---|
| results | List | 批量删除结果 | 5.3.20 |
| uuid | String | 资源UUID | 5.3.20 |
| success | boolean | 操作是否成功 | 5.3.20 |
| error | ErrorCode | 错误码。操作成功时该字段为null。 | 5.3.20 |
SDK示例
Java
SDK
DeleteModelServiceInstanceGroupsAction action = new DeleteModelServiceInstanceGroupsAction();
action.uuids = asList("861d19beee3d4da6b9ae57a5c172a684","5588a492845b442d985d6663016d758a");
action.deleteMode = "Permissive";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
DeleteModelServiceInstanceGroupsAction.Result res = action.call();Python
SDK
DeleteModelServiceInstanceGroupsAction action = DeleteModelServiceInstanceGroupsAction()
action.uuids = ["8db26873b2ca4041808c6dfeb7fd361d", "c7abb45a977040c2873a7ad5249edf8f"]
action.deleteMode = "Permissive"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
DeleteModelServiceInstanceGroupsAction.Result res = action.call()