forked from docs/modelarts
![otcbot[bot]](/assets/img/avatar_default.png)
Changes to ma_api from doc-exports#1 This is an automatically created Pull Request for changes to ma_api in opentelekomcloud-docs/doc-exports#1. Please do not edit it manually, since update to the original PR will overwrite local changes. Original patch file, as well as complete rst archive, can be found in the artifacts of the opentelekomcloud-docs/doc-exports#1 Reviewed-by: Vineet Pruthi <None>
3.5 KiB
3.5 KiB
- original_name
modelarts_03_0152.html
Restarting an ML Studio Instance
Function
This API is used to restart an ML Studio development environment instance.
URI
POST /v1/{project_id}/demanager/instances/{instance_id}/action
Table 1 <modelarts_03_0152__en-us_topic_0181453353_table569625523811>
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 <modelarts_03_0147> . |
instance_id | Yes | String | Instance ID |
Request Body
Table 2 <modelarts_03_0152__en-us_topic_0181453353_table46411941555>
describes the request parameters.
Parameter | Mandatory | Type | Description |
---|---|---|---|
action | Yes | String | Operation on a development environment instance. The value can be restart. |
Response Body
Table 3 <modelarts_03_0152__en-us_topic_0181453353_table1399617427385>
describes the response parameters.
Parameter | Type | Description |
---|---|---|
current_status | String | Current status of an instance |
previous_state | String | Previous status of an instance |
Samples
The following shows how to restart the ML Studio instance whose ID is 47cf4ff3-0c59-44fe-9821-2840a34c02a9.
Sample request
{ "action": "restart" }
Sample response
{ "current_status": "REBOOTING", "previous_state": "ACTIVE" }
Status Code
For details about the status code, see Status Code <modelarts_03_0094>
.