Starting or Stopping a Service Instance on an Edge Node
Function
This API is used to start or stop a service instance on an edge node.
URI
PUT /v1/{project_id}/services/{service_id}/nodes/{node_id}/status
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
| service_id | Yes | String | Service ID |
| node_id | Yes | String | Node ID |
Request Body
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| status | Yes | String | Service status. Possible values are as follows:
|
Response Body
None
Samples
The following shows how to start a service instance on an edge node.
- Sample request
PUT https://endpoint/v1/{project_id}/services/{service_id}/nodes/{node_id}/status { "status": "running" }
- Sample response
{}
Status Code
For details about the status code, see Table 1.
Last Article: Querying the Details About a Service
Next Article: Updating Service Configurations
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.