castack
  1. 计算规格
castack
  • 板卡计算规格
    • 新增板卡计算规格
      POST
    • 编辑板卡计算规格
      PUT
  • 计算规格
    • 新增容器计算规格
      POST
    • 编辑容器计算规格
      PUT
  • 板卡指标
    POST
  • 容器指标
    POST
  1. 计算规格

新增容器计算规格

POST
/instance/offering

请求参数

Body 参数application/json

示例
{
    "armCardOfferinguuid": "string",
    "cpu": 8,
    "cpuPercent": 100,
    "createTime": "2019-08-24T14:15:22Z",
    "createUserId": 0,
    "createUserName": "string",
    "dataSize": 50,
    "delStatus": 0,
    "fileServer": [
        {
            "property1": "string",
            "property2": "string"
        }
    ],
    "hardwareCode": "string",
    "layout": {
        "createTime": "2019-08-24T14:15:22Z",
        "delStatus": 0,
        "height": 0,
        "name": "string",
        "pixelDensity": 0,
        "projectId": "string",
        "refreshRate": 0,
        "updateTime": "2019-08-24T14:15:22Z",
        "uuid": "string",
        "weight": 0
    },
    "layoutUuid": "string",
    "level": 1,
    "memory": 12,
    "name": "Orion865",
    "remark": "string",
    "resolutionRatio": 1080,
    "status": 1,
    "type": "一开",
    "updateTime": "2019-08-24T14:15:22Z",
    "updateUserId": 0,
    "updateUserName": "string",
    "uuid": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/instance/offering' \
--header 'Content-Type: application/json' \
--data-raw '{
    "armCardOfferinguuid": "string",
    "cpu": 8,
    "cpuPercent": 100,
    "createTime": "2019-08-24T14:15:22Z",
    "createUserId": 0,
    "createUserName": "string",
    "dataSize": 50,
    "delStatus": 0,
    "fileServer": [
        {
            "property1": "string",
            "property2": "string"
        }
    ],
    "hardwareCode": "string",
    "layout": {
        "createTime": "2019-08-24T14:15:22Z",
        "delStatus": 0,
        "height": 0,
        "name": "string",
        "pixelDensity": 0,
        "projectId": "string",
        "refreshRate": 0,
        "updateTime": "2019-08-24T14:15:22Z",
        "uuid": "string",
        "weight": 0
    },
    "layoutUuid": "string",
    "level": 1,
    "memory": 12,
    "name": "Orion865",
    "remark": "string",
    "resolutionRatio": 1080,
    "status": 1,
    "type": "一开",
    "updateTime": "2019-08-24T14:15:22Z",
    "updateUserId": 0,
    "updateUserName": "string",
    "uuid": "string"
}'

返回响应

🟢200成功
*/*
OK
Body

示例
{
    "code": 0,
    "message": "string",
    "result": {},
    "timestamp": 0,
    "traceId": "string"
}
🟢201成功
🟠401没有权限
🟠403禁止访问
🟠404记录不存在
修改于 2025-07-14 09:09:25
上一页
编辑板卡计算规格
下一页
编辑容器计算规格
Built with