Starting or Stopping an Edge Node

Function

This API is used to start or stop an edge node. A stopped edge node cannot connect to cloud services. You can use the following URI to restore the edge node connection.

URI

POST /v2/{project_id}/edgemgr/nodes/{node_id}/action

Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

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

node_id

Yes

Node ID.

Request

Request parameters

Table 2 Parameters in the request body

Parameter

Mandatory

Type

Description

node

Yes

Table 3 object

Node information.

Table 3 action

Parameter

Mandatory

Type

Description

action

Yes

String

Starting or stopping an edge node. Value: start or stop.

Request example:

{
    "node": {
        "action": "start"
    }
}

Response

Response parameters

Table 4 Parameters in the request body

Parameter

Type

Description

node

Table 5 object

Node information.

Table 5 action

Parameter

Type

Description

action

String

Starting or stopping an edge node. Value: start or stop.

Response example:

{
    "node": {
        "action": "start"
    }
}

Error Codes

For details, see Error Codes.