分页带条件获取已添加os
GET
/{adminPath}/selectOsByPageAndCondition
最后修改时间:2023-08-10 02:58:48
责任人:mryunqi
请求参数
Path 参数
adminPath
string
必需
示例值:
admin
Query 参数
page
integer
页码
示例值:
1
size
integer
每页数据量
示例值:
20
param
string
匹配参数
示例值:
osType
value
string
匹配值
示例值:
ubuntu
Header 参数
Authorization
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/admin/selectOsByPageAndCondition?page=1&size=20¶m=osType&value=ubuntu' \
--header 'Authorization;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
records
array [object {14}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array[string]
必需
optimizeCountSql
boolean
必需
searchCount
boolean
必需
maxLimit
null
必需
countId
null
必需
pages
integer
必需
示例
{
"code": 20000,
"message": "请求成功",
"data": {
"records": [
{
"id": 3,
"name": "Ubuntu-22.04-x64",
"fileName": "Ubuntu-22.04-x64.qcow2",
"type": "linux",
"arch": "x86_64",
"osType": "ubuntu",
"nodeStatus": null,
"downType": 0,
"url": "http://oa.chuqiyun.com:8877/Cloud/Ubuntu/Ubuntu-22.04-x64.qcow2",
"size": "597MB",
"path": "/home/images",
"cloud": 1,
"status": 0,
"createTime": 1690030210715
}
],
"total": 1,
"size": 20,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"maxLimit": null,
"countId": null,
"pages": 1
}
}
修改于 2023-08-10 02:58:48