查询主机规格

接口URL

/api/v1/resource/spec?page=&pageSize=&key=&desc=

请求方式

GET

Content-Type

application/json

认证方式

Bearer auth

请求Header参数

参数名 示例值 参数类型 是否必填 参数描述
Accept application/json Text -
Content-Type application/json Text -

请求Query参数

参数名 示例值 参数类型 是否必填 参数描述
page - Text 页码
pageSize - Text 页面大小
key - Text 排序关键字
desc - Boolean 排序方式,true 为降序,false 为升序

成功响应示例

{
    "Data": {
        "items": [{
            "ID": 1,
            "CreatedAt": "2023-09-21T12:22:45.114+08:00",
            "UpdatedAt": "2023-09-21T12:22:45.114+08:00",
            "DeletedAt": null,
            "Name": "spec1",
            "CpuArch": "aarch64",
            "CpuModel": "intel",
            "CpuCores": 2,
            "OS": "centos",
            "Storage": 128,
            "DiskType": "SSD",
            "Memory": 4,
            "Notes": ""
        }],
        "total": 1
    },
    "Success": true
}
参数名 示例值 参数类型 参数描述
Data - Object
Data.items - Array
Data.items.ID 1 Integer ID 编号
Data.items.CreatedAt 2023-09-21T12:22:45.114+08:00 String 创建时间
Data.items.UpdatedAt 2023-09-21T12:22:45.114+08:00 String 更新时间
Data.items.DeletedAt null Null 删除时间
Data.items.Name spec1 String 主机规格名称
Data.items.CpuArch aarch64 String CPU 架构
Data.items.CpuModel intel String CPU 型号
Data.items.CpuCores 2 Integer CPU 核心数
Data.items.OS centos String 操作系统
Data.items.Storage 128 Integer 存储空间,单位 GB
Data.items.DiskType SSD String 磁盘类型 [HDD/SSD]
Data.items.Memory 4 Integer 内存大小
Data.items.Notes - String 规格说明
Data.total 1 Integer 规格总数
Success true Boolean
© 2024 平凯星辰(北京)科技有限公司 all right reserved,powered by GitbookFile Modify: 2024-04-02 15:37:04

results matching ""

    No results matching ""