This API is used to restart an ML Studio development environment instance.
POST /v1/{project_id}/demanager/instances/{instance_id}/action
Table 1 describes the required parameters.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID and Name. |
instance_id |
Yes |
String |
Instance ID |
Table 2 describes the request parameters.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
action |
Yes |
String |
Operation on a development environment instance. The value can be restart. |
Table 3 describes the response parameters.
Parameter |
Type |
Description |
---|---|---|
current_status |
String |
Current status of an instance |
previous_state |
String |
Previous status of an instance |
The following shows how to restart the ML Studio instance whose ID is 47cf4ff3-0c59-44fe-9821-2840a34c02a9.
{ "action": "restart" }
{ "current_status": "REBOOTING", "previous_state": "ACTIVE" }
For details about the status code, see Status Code.