#781 资源规格编辑

Merged
yangxzh1 merged 14 commits from openioctopus/octopus:master into master 3 months ago
## 需求 [管理端资源规格增加编辑功能](https://openi.pcl.ac.cn/OpenI/octopus/issues/776) * 编辑界面可参考创建 * 既可以修改已有配置值,也可删除或添加新资源配置等】 ## 实现 ### 接口 * {{admin_addr}}/v1/resourcemanage/resourcespec/{id} * PUT请求 * id为资源规格id * 请求参数 * 规格信息编辑是覆盖操作,因此需请求携带所有配置信息 * 参数格式,示例如下: ```json { "name":"test20240122", "price":1, "resourceQuantity":{ "cpu":"1", "enflame.com/gcu":"1", "memory":"1Gi" } } ``` * * 返回参数 * 返回格式,示例如下: ``` { "success": true, "payload": { "id": "9d364a4149d641bb8625e1886a640efa" }, "error": null } ``` ## 测试 - 测试环境192.168.242.41 ## 备注 - 当前章鱼没有获取指定资源规格信息接口,仅提供列表获取接口,后续如果有需要再添加
wakinzhang requested review from yangxzh1 3 months ago
yangxzh1 changed title from WIP: 资源规格编辑 to 资源规格编辑 3 months ago
yangxzh1 merged commit 2b15cc2709 into master 3 months ago
liwenlong added the
开发完成
label 3 months ago

Reviewers

yangxzh1 was requested for review 3 months ago
The pull request has been merged as 2b15cc2709.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.