forked from docs/modelarts
![otcbot[bot]](/assets/img/avatar_default.png)
Changes to ma_api from doc-exports#14 This is an automatically created Pull Request for changes to ma_api in opentelekomcloud-docs/doc-exports#14. 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#14 Reviewed-by: Beibei <None>
2.7 KiB
2.7 KiB
- original_name
modelarts_03_0114.html
Deleting a Development Environment Instance
Function
This API is used to delete a development environment instance.
URI
DELETE /v1/{project_id}/demanager/instances/{instance_id}
Table 1 <modelarts_03_0114__en-us_topic_0136223953_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 <modelarts_03_0147> . |
instance_id | Yes | String | Instance ID |
Request Body
None
Response Body
Table 2 <modelarts_03_0114__en-us_topic_0136223953_table14581542113111>
describes the response parameters.
Parameter | Type | Description |
---|---|---|
instance_id | String | Instance ID |
Samples
The following shows how to delete instance 6fa459ea-ee8a-3ca4-894e-db77e160355e.
Sample request
DELETE https://endpoint/v1/{project_id}/demanager/instances/6fa459ea-ee8a-3ca4-894e-db77e160355e
Successful sample response
{ "instance_id": "6fa459ea-ee8a-3ca4-894e-db77e160355e" }
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 <modelarts_03_0094>
.
Error Codes
See Error Codes <modelarts_03_0095>
.