更新资源组信息(UpdateResourceGroup)
更新时间:2025-05-08 07:50:27
基本信息
Action:/qai/aicp/resource/resource_group
Method: PUT
Content-Type:application/json
请求参数
参数 | 类型 | 描述 | 是否必须 |
---|---|---|---|
name |
string |
资源组名称。 |
yes |
description |
string |
描述信息。 |
yes |
rg_id |
string |
资源组 ID。 |
yes |
pod_type |
string |
作业类型,其中 instance 为容器实例, job 为训练作业,infer 为推理服务。 |
yes |
customize_enable |
interger |
是否允许自定义规格。 |
yes |
响应参数
此接口包含的公共响应参数,可参见前文内容,其他参数介绍如下:
参数 | 类型 | 说明 |
---|---|---|
data |
object |
资源组详情数据 |
data.status |
string |
资源组当前状态 |
data.reason |
string |
状态变更原因说明 |
data.user_id |
string |
用户 ID |
data.root_user_id |
string |
主账户 ID |
data.created_at |
string(date-time) |
资源组创建时间 |
data.updated_at |
string(date-time) |
资源组最后更新时间 |
data.rg_id |
string |
资源组唯一标识符 |
data.name |
string |
资源组名称 |
data.resource_type |
string |
资源类型标识 |
data.description |
string |
资源组详细描述 |
data.pod_type |
string |
Pod 类型配置 |
data.customize_enable |
integer |
自定义配置开关(0 关闭/1 开启) |
请求示例
curl -X 'PUT' \
'https://ai.coreshub.cn/qai/aicp/resource/resource_group' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "",
"description": "",
"rg_id": "string",
"pod_type": [
"infer",
"instance",
"job"
],
"customize_enable": 1
}'
响应示例
{
"ret_code": 0,
"message": "success",
"meta": {
"X_REQUEST_ID": "string",
"X_REQUEST_USER": "string"
},
"data": {
"status": "string",
"reason": "string",
"user_id": "string",
"root_user_id": "",
"created_at": "2025-03-27T02:26:02.082Z",
"updated_at": "2025-03-27T02:26:02.082Z",
"rg_id": "string",
"name": "",
"resource_type": "",
"description": "",
"pod_type": "",
"customize_enable": 1
}
}