Help Center/ Intelligent EdgeFabric/ API Reference/ API/ Edge Node Management/ Performing an Edge Node Upgrade Check
Updated on 2023-11-23 GMT+08:00

Performing an Edge Node Upgrade Check

Function

This API is used to check whether an edge node can be upgraded.

URI

GET /v2/{project_id}/edgemgr/nodes/{node_id}/upgrade

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

node_id

Yes

String

Edge node ID.

Request

Table 2 Parameters in the request header

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

Message body type (format).

The default value application/json is recommended.

X-Auth-Token

Yes

String

User token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Response

Response parameters

Table 3 Parameters in the response body

Parameter

Type

Description

upgrade_enable

Boolean

Whether the edge node can be upgraded.

reason

String

Reason why the upgrade is not supported.

version

String

Edge software version.

Example response

{
  "upgrade_enable": true,
  "reason": "xxx",
  "version": "xxx"
}

Error Codes

For details, see Error Codes.