forked from docs/doc-exports

ModelArts GA API 06052022 from R&D R&D has provided a right version of ModelArts GA API (06052022) Reviewed-by: Artem Goncharov <Artem.goncharov@gmail.com>
11 KiB
11 KiB
Managing a Development Environment Instance
Function
This API is used to startor stop a notebook instance.
URI
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. |
instance_id |
Yes |
String |
Instance ID |
Request Body
Table 2 describes the request parameters.
Response Body
Table 3 describes the response parameters.
Samples
The following shows how to start instance 6fa459ea-ee8a-3ca4-894e-db77e160355e.
- Sample request
{ "action": "start" }
- Successful sample response
{ "current_status": "STARTING", "previous_state": "STOPPED" }
- Failed sample response
{ "error_message": "The instance does not exist.", "error_code": "ModelArts.6309" }
Status Code
For details about the status code, see Status Code.
Error Codes
See Error Codes.
Parent topic: DevEnviron