更新資源分組基本信息
更新時間(jian) 2023-07-19 11:41:05
最近更新時(shi)間: 2023-07-19 11:41:05
分享文章
接口功能介紹
調(diao)用此接口可查詢更(geng)新資源分組名稱(cheng)和備(bei)注。
接口約束
資源分組存在。
URI
POST /v4/monitor/update-resource-group-name-describe
請求參數
請求體body參數
| 參數 | 參數類型 | 是否必填 | 示例 | 說明 | 下級對象 |
|---|---|---|---|---|---|
| regionID | String | 是 | 81f7728662dd11ec810800155d307d5b | 資源池ID | |
| resGroupID | String | 是 | 95f7f0cb-b5d7-547e-8667-3fceeab177d5 | 資源分組ID | |
| name | String | 否 | 資源分組1 | 資源分組名稱 | |
| desc | String | 否 | 描述 | 資源分組描述 |
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| statusCode | Integer | 返回狀態碼(800為成功,900為失敗),默認值:800 | 800 | |
| errorCode | String | 失敗時的錯誤代碼,參見公共錯誤碼說明 | ||
| message | String | 失敗時的錯誤描述,一般為英文描述 | Success | |
| msgDesc | String | 失敗時的錯誤描述,一般為中文描述 | 成功 | |
| returnObj | Object | 返回參數 | returnObj |
表returnObj
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| resGroupID | String | 分組ID | "0134af8f-44bf-50df-bb0c-9ad642612830" |
請求示例
POST /v4/monitor/update-resource-group-name-describe
請求體body
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"resGroupID": "0134af8f-44bf-50df-bb0c-9ad642612830",
"name":"test",
"desc":"desc_test"
}
響應示例
{
"statusCode":800,
"returnObj": {
"resGroupID": "0134af8f-44bf-50df-bb0c-9ad642612830"
},
"errorCode":"",
"message":"Success",
"msgDesc":"成功"
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 200 | 請求成功 |
錯誤碼
| errorCode | 描述 |
|---|---|
| Monitor.ResourceGroup.ResourceGroupNotFoundError | 資源分組不存在錯誤 |
| Monitor.ResourceGroup.ResourceGroupExistError | 資源分組已存在錯誤 |
| 其他 | 參見公共錯誤碼說明 |