122 lines
3.1 KiB
HTTP
122 lines
3.1 KiB
HTTP
### 分页查询所有系统镜像
|
|
GET http://127.0.0.1:8015/image/pageList?page=10&size=7
|
|
|
|
### 根据系统名称查询镜像
|
|
GET http://127.0.0.1:8015/image/selectBySystemName?systemName=Debian
|
|
|
|
### 查询所有系统名称列表
|
|
GET http://127.0.0.1:8015/image/systemNameList
|
|
|
|
### 分页查询计算服务列表
|
|
GET http://127.0.0.1:8015/provide/pageList?page=1&size=10&computingResourceId=9&name=200P
|
|
|
|
### 根据id查询计算服务详情
|
|
GET http://127.0.0.1:8015/provide/detail?id=1686222474276114432
|
|
|
|
### 服务发布
|
|
POST http://127.0.0.1:8015/provide/create
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"id": 2,
|
|
"name": "异腾广州智算:最大512P、最小200P",
|
|
"domain": "智算",
|
|
"business": "智算",
|
|
"computingResourceId": 9,
|
|
"computingCardId": 19,
|
|
"computeNum": 28,
|
|
"memory": 256,
|
|
"vram": 32,
|
|
"computingCenterId": 2,
|
|
"chargeType": 1,
|
|
"userId": null,
|
|
"systemDiskCategory": 0,
|
|
"systemDiskSize": 100,
|
|
"internetMaxBandwidthOut": 100,
|
|
"imageType": 0,
|
|
"imageId": null,
|
|
"priceUnit": 3,
|
|
"durationPrice": 7.20,
|
|
"type": 0,
|
|
"description": null,
|
|
"clickNum": 0,
|
|
"status": true,
|
|
"version": 1,
|
|
"deleted": 0,
|
|
"createTime": "2023-07-30T19:56:56",
|
|
"updateTime": null,
|
|
"computingResourceName": "NPU",
|
|
"computingCenterName": "异腾广州智算",
|
|
"computingCardName": "ASIC"
|
|
}
|
|
|
|
### 根据id查询需求详细数据
|
|
GET http://127.0.0.1:8015/consumer/detail?id=1686225260782948352
|
|
|
|
### 分页查询需求列表
|
|
GET http://127.0.0.1:8015/consumer/pageList?page=1&size=10
|
|
|
|
### 发布需求
|
|
POST http://127.0.0.1:8015/consumer/create
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"id": 1,
|
|
"name": "GPU/NPU 300 P",
|
|
"domain": null,
|
|
"business": null,
|
|
"computingResourceId": 9,
|
|
"computingCardId": 20,
|
|
"computeNum": 24,
|
|
"memory": 128,
|
|
"vram": 16,
|
|
"computingCenterId": 2,
|
|
"chargeType": 0,
|
|
"userId": null,
|
|
"systemDiskCategory": 0,
|
|
"systemDiskSize": 1000,
|
|
"internetMaxBandwidthOut": 1000,
|
|
"imageType": 0,
|
|
"imageId": null,
|
|
"amount": 10,
|
|
"priceUnit": 1,
|
|
"durationAmount": 2,
|
|
"type": 0,
|
|
"description": null,
|
|
"dockingPerson": null,
|
|
"dockingPhone": null,
|
|
"consumerStatus": 0,
|
|
"clickNum": 1,
|
|
"status": true,
|
|
"version": 2,
|
|
"deleted": 0,
|
|
"createTime": "2023-07-30T19:56:56",
|
|
"updateTime": "2023-07-30T23:32:02",
|
|
"computingResourceName": "NPU",
|
|
"computingCenterName": "异腾广州智算",
|
|
"computingCardName": "Ascend 910"
|
|
}
|
|
|
|
### 根据字典id查询子项列表
|
|
GET http://127.0.0.1:8015/sysDictItem/child/12
|
|
|
|
### 查询计算中心字典项
|
|
GET http://127.0.0.1:8015/sysDictItem/computingCenter
|
|
|
|
### 查询计算资源字典项
|
|
GET http://127.0.0.1:8015/sysDictItem/computingResource
|
|
|
|
### 查询算力卡类型字典项
|
|
GET http://127.0.0.1:8015/sysDictItem/computingCardType
|
|
|
|
### 根据需求id,查询计算服务推荐列表
|
|
GET http://127.0.0.1:8015/consumer/recommend?consumerId=1
|
|
|
|
### 统计近7天需求和服务创建数量
|
|
GET http://localhost:8015/provide/dailyStatic?dimension=week
|
|
|
|
### 统计近30天需求和服务创建数量
|
|
GET http://localhost:8015/provide/dailyStatic?dimension=month
|
|
|
|
### 统计近365天需求和服务创建数量
|
|
GET http://localhost:8015/provide/dailyStatic?dimension=year |