5.Compute specification
1. Container compute specification
API address: /v1/offering/list
Request method:POST
Request data type:application/json
Response data type:*/*,application/json
Supported version:v1.7.4
API description:
Get all container compute specifications on the platform
Request parameters:
| Parameter name | Parameter description | Location | Whether required | Data type | Description |
|---|---|---|---|---|---|
| level | Launch count | body | false | integer | Filter by opening count, 1 - 40 openings |
| storageIsolation | Whether storage isolation is required | body | false | boolean | Whether storage isolation is enabled, default false means not isolated |
Request example. Replace parameter values in the actual request:
POST "/openapi/v1/offering/list?time=1720774436&sign=3bbf04e6c524bc028d543148ea55447cad066f896431980e01d80488d1212807"
body:
{
"level":1
}
Response parameters:
| Parameter name | Parameter description | Type | Description |
|---|---|---|---|
| code | Return code | integer(int32) | |
| message | Return processing message | string | |
| result | Returned data object | list<object> | Compute specification data |
| uuid | Compute specification uuid | string | |
| level | Launch count | integer | 1 - 40 instances |
| cpu | CPU cores | integer | |
| cpuPercent | CPU percentage | integer | |
| memory | Memory | integer | GB |
| dataSize | Storage limit | integer | GB, -1 means unlimited |
| hardwareCode | Container compute specification --scheduled for offline removal | string | Orion865_8C_12G |
| resolutionRatio | Resolution ratio | integer | 1080/720/320 |
| resolution | Resolution | string | 1080x1920,added in v2.4.0 |
| refreshRate | Refresh rate | integer | added in v2.4.0 |
| pixelDensity | Pixel density | integer | added in v2.4.0 |
| status | Status | integer | 0:disabled 1:enabled |
| instanceOfferingName | Container specification | string | Example: one opening-storage limited-8vCPU-12GB memory-175GB |
| timestamp | Timestamp | integer(int64) | |
| traceId | Request processing ID | string |
Response example:
{
"message": "操作成功!",
"code": 200,
"result": [
{
"uuid": "6d6e456aecdb9d4a89c1712e8f7fc759",
"level": 1,
"cpu": 8,
"cpuPercent": 100,
"memory": 12,
"dataSize": -1,
"hardwareCode": "Orion865_8C_12G",
"resolutionRatio": 1080,
"status": 1,
"refreshRate": 30,
"pixelDensity": 320,
"resolution": "1080x1920",
"instanceOfferingName": "一开-限存储 | 8vCPU |12GB内存 | 175GB"
},
{
"uuid": "7fbc706d168211f081890242ac120011",
"level": 1,
"cpu": 8,
"memory": 12,
"dataSize": -1,
"hardwareCode": "Orion865_8C_12G",
"resolutionRatio": 1080,
"status": 1,
"refreshRate": 30,
"pixelDensity": 320,
"resolution": "1080x1920",
"instanceOfferingName": "一开-限存储 | 8vCPU |12GB内存 | 175GB"
},
{
"uuid": "f1647b5b9ff711eea4070242ac120002",
"level": 1,
"cpu": 8,
"memory": 16,
"dataSize": -1,
"hardwareCode": "Cruise10_8C_16G",
"resolutionRatio": 1080,
"status": 1,
"refreshRate": 30,
"pixelDensity": 320,
"resolution": "1080x1920",
"instanceOfferingName": "一开-限存储 | 8vCPU |12GB内存 | 175GB"
}
],
"timestamp": 1750212210365,
"traceId": "C20250618100330365046"
}
2. Board card compute specification
API address: /v1/arm/card/offering/list
Request method:POST
Request data type:application/json
Response data type:*/*,application/json
Supported version:v1.18.0
API description:
Get all board compute specifications on the platform
Request parameters:
None
Request example. Replace parameter values in the actual request:
POST "/openapi/v1/arm/card/offering/list?time=1720774436&sign=3bbf04e6c524bc028d543148ea55447cad066f896431980e01d80488d1212807"
Response parameters:
| Parameter name | Parameter description | Type | Description |
|---|---|---|---|
| code | Return code | integer(int32) | |
| message | Return processing message | string | |
| result | Returned data object | list<object> | Compute specification data |
| uuid | Compute specification uuid | string | |
| cpuCore | CPU cores | integer | |
| memory | Memory | integer | GB |
| hardwareModel | SoC type | string | Orion865 |
| disk | Disk size | string | |
| remark | Description | string | |
| createTime | Creation time | string | |
| updateTime | Modification time | string | |
| status | Status | integer | 0:disabled 1:enabled |
| instanceLimitMax | Maximum number of containers that can be created (default 20) | integer | |
| timestamp | Timestamp | integer(int64) | |
| traceId | Request processing ID | string |
Response example:
{
"message": "操作成功!",
"code": 200,
"result": [
{
"uuid": "f64a987692a711ef9b070242ac12000d",
"cpuCore": 8,
"memory": "12G",
"hardwareModel": "Orion865",
"disk": "256G",
"remark": null,
"createTime": "2024-10-25 19:05:38",
"updateTime": "2024-12-02 19:46:14",
"status": 1,
"instanceLimitMax": 2
},
{
"uuid": "fa24ef3c92a711ef9b070242ac12000d",
"cpuCore": 8,
"memory": "24G",
"hardwareModel": "Orion8G2",
"disk": "256G",
"remark": null,
"createTime": "2024-10-25 19:05:38",
"updateTime": "2024-12-06 19:42:38",
"status": 1,
"instanceLimitMax": 2
},
{
"uuid": "fe0db3e592a711ef9b070242ac12000d",
"cpuCore": 8,
"memory": "16G",
"hardwareModel": "Cruise10",
"disk": "256G",
"remark": null,
"createTime": "2024-10-25 19:05:38",
"updateTime": "2024-12-07 18:20:45",
"status": 1,
"instanceLimitMax": 2
}
],
"timestamp": 1733901332826,
"traceId": "C20241211151532826587"
}