You can call the DescribeEdgeMachineActiveProcess operation to query the activation progress of a cloud-native box.

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/[edge_machineid]/activeprocess HTTP/1.1
Content-Type:application/json

Request parameters

Table 1. Request path parameters
Parameter Type Required Example Description
edge_machineid String Yes cc0725ddf688744979cd98445f67e****

The ID of the cloud-native box.

Response syntax

GET /edge_machines/{edge_machine_id}/active  HTTP/1.1
<Common request headers>
Content-type: application/json
{
    "request_id": "b62796a8-c5a6-4d3f-beb2-7650e4309cb1",
    "state": "ACTIVATED",
    "step": "Step 'Initialize the host configuration' Success",
    "progress": 100,
    "logs": "[{\"content\":\"Step 'Issue the activation credential' Start\",\"id\":0,\"level\":3,\"timestamp\":1625994913000},{\"content\":\"Step 'Issue the activation credential' Success\",\"id\":1,\"level\":3,\"timestamp\":1625994914000},{\"content\":\"Step 'Initialize the host configuration' Start\",\"id\":2,\"level\":3,\"timestamp\":1625994975000},{\"content\":\"Step 'Initialize the host configuration' Success\",\"id\":3,\"level\":3,\"timestamp\":1625994975000}]"
}

Response parameters

Table 2. Response body parameters
Parameter Type Example Description
request_id String b62796a8-c5a6-4d3f-beb2-7650e4309cb1

The ID of the request.

state String ACTIVATED

The status of the cloud-native box.

step String "Step 'Initialize the host configuration' Success"

The current step of the activation process.

progress Long 100

The activation progress.

logs String "[{\"content\":\"Step 'Obtain three parameters' Start\",\"id\":0,\"level\":3,\"timestamp\":1624416559000},{\"content\":\"Step 'Obtain three parameters' Success\",\"id\":1,\"level\":3,\"timestamp\":1624416560000},{\"content\":\"Step 'Analyze node activation parameters' Start\",\"id\":2,\"level\":3,\"timestamp\":1624416644329},{\"content\":\"Step 'Analyze node activation parameters' Success\",\"id\":3,\"level\":3,\"timestamp\":1624416645944},{\"content\":\"Step 'Check the system environment' Start\",\"id\":4,\"level\":3,\"timestamp\":1624416645961},{\"content\":\"Step 'Check the system environment' Success\",\"id\":5,\"level\":3,\"timestamp\":1624416649356},{\"content\":\"Step 'Configure the node system environment' Start\",\"id\":6,\"level\":3,\"timestamp\":1624416649372}]", // JSONString, analyze at the frontend}

The list of details about the activation progress.

Sample requests

Submit the following sample request to query the activation progress of a cloud-native box:

GET /edge_machines/[edge_machineid]/activeprocess HTTP/1.1
Host:cs.aliyuncs.com
Content-Type:application/json

Sample success responses

XML format

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

<DescribeEdgeMachineActiveProcessResponse>
    <request_id>b62796a8-c5a6-4d3f-beb2-7650e4309cb1</request_id>
    <state>ACTIVATED</state>
    <step>"Step 'Initialize the host configuration' Success"</step>
    <progress>100</progress>
    <logs>"[{\"content\":\"Step 'Obtain three parameters' Start\",\"id\":0,\"level\":3,\"timestamp\":1624416559000},{\"content\":\"Step 'Obtain three parameters' Success\",\"id\":1,\"level\":3,\"timestamp\":1624416560000},{\"content\":\"Step 'Analyze node activation parameters' Start\",\"id\":2,\"level\":3,\"timestamp\":1624416644329},{\"content\":\"Step 'Analyze node activation parameters' Success\",\"id\":3,\"level\":3,\"timestamp\":1624416645944},{\"content\":\"Step 'Check the system environment' Start\",\"id\":4,\"level\":3,\"timestamp\":1624416645961},{\"content\":\"Step 'Check the system environment' Success\",\"id\":5,\"level\":3,\"timestamp\":1624416649356},{\"content\":\"Step 'Configure the node system environment' Start\",\"id\":6,\"level\":3,\"timestamp\":1624416649372}]", // JSONString, analyze at the frontend}</logs>
</DescribeEdgeMachineActiveProcessResponse>

JSON format

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

{
  "request_id" : "b62796a8-c5a6-4d3f-beb2-7650e4309cb1",
  "state" : "ACTIVATED",
  "step" : "\"Step 'Initialize the host configuration' Success\"",
  "progress" : 100,
  "logs" : "\"[{\\\"content\\\":\\\"Step 'Obtain three parameters' Start\\\",\\\"id\\\":0,\\\"level\\\":3,\\\"timestamp\\\":1624416559000},{\\\"content\\\":\\\"Step 'Obtain three parameters' Success\\\",\\\"id\\\":1,\\\"level\\\":3,\\\"timestamp\\\":1624416560000},{\\\"content\\\":\\\"Step 'Analyze node activation parameters' Start\\\",\\\"id\\\":2,\\\"level\\\":3,\\\"timestamp\\\":1624416644329},{\\\"content\\\":\\\"Step 'Analyze node activation parameters' Success\\\",\\\"id\\\":3,\\\"level\\\":3,\\\"timestamp\\\":1624416645944},{\\\"content\\\":\\\"Step 'Check the system environment' Start\\\",\\\"id\\\":4,\\\"level\\\":3,\\\"timestamp\\\":1624416645961},{\\\"content\\\":\\\"Step 'Check the system environment' Success\\\",\\\"id\\\":5,\\\"level\\\":3,\\\"timestamp\\\":1624416649356},{\\\"content\\\":\\\"Step 'Configure the node system environment' Start\\\",\\\"id\\\":6,\\\"level\\\":3,\\\"timestamp\\\":1624416649372}]\", // JSONString, analyze at the frontend}"
}

Error codes

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