You can call the DescribeEdgeMachineModels operation to query the models of cloud-native boxes.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request syntax

`GET /edge_machines/models HTTP/1.1`

Request parameters

None

Response syntax

HTTP/1.1 200
Content-Type:application/json
{
  "models" : [ {
    "model_id" : "String",
    "created" : "String",
    "model" : "String",
    "created": "2021-07-07T20:44:00+08:00",
    "description" : "String",
    "cpu_arch" : "String",
    "cpu": int,
    "memory": int,
    "manage_runtime": int
    }
  ]
}

Response parameters

Table 1. Response body parameters
Parameter Type Example Description
models Array of models_info

The list of details about the models of cloud-native boxes.

manage_runtime Integer 0/1

Indicates whether the Docker runtime is managed.

cpu_arch String x86_64/arm64

The CPU architecture.

cpu Integer 6

The number of CPU cores.

memory Integer 8

The memory size. Unit: GB.

model_id String c34cc753-8908-4739-bd10-ebd922a4****

The ID of the cloud-native box.

created String 2021-07-07T20:44:00+08:00

The time when the cloud-native box was created.

description String B010

The description.

model String ACK-V-B010

The model of the cloud-native box.

Sample requests

Submit the following sample request to query the models of cloud-native boxes.

GET /edge_machines/models HTTP/1.1
Host:cs.aliyuncs.com
Content-Type:application/json
<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeEdgeMachineModelsResponse>
    <models>
        <cpu_arch>x86_64/arm64</cpu_arch>
        <cpu>6</cpu>
        <memory>8</memory>
        <model_id>c34cc753-8908-4739-bd10-ebd922a4****</model_id>
        <created>2021-07-07T20:44:00+08:00</created>
        <description>B010</description>
        <model>ACK-V-B010</model>
    </models>
</DescribeEdgeMachineModelsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "models" : [ {
    "cpu_arch" : "x86_64/arm64",
    "cpu" : 6,
    "memory" : 8,
    "model_id" : "c34cc753-8908-4739-bd10-ebd922a4****",
    "created" : "2021-07-07T20:44:00+08:00",
    "description" : "B010",
    "model" : "ACK-V-B010"
  } ]
}

Error codes

For a list of error codes, visit the API Error Center.