Stopping DevServer Instances
Function
This API is used to stop DevServer instances.
Constraints
No constraints
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
PUT /v1/{project_id}/dev-servers/{id}/stop
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
id |
Yes |
String |
DevServer ID |
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
create_at |
Long |
Creation time |
update_at |
Long |
Update time |
charging_mode |
String |
Billing mode.
|
cloud_server |
CloudServer object |
Cloud service information |
endpoints_response |
Array of Endpoints objects |
Private IP address of the instance |
flavor |
String |
Instance flavor name |
id |
String |
Instance ID |
key_pair_name |
String |
Key pair name |
name |
String |
Instance name |
order_id |
String |
Order ID |
server_image_response |
ServerImageResponse object |
Instance image |
status |
String |
Instance status.
|
vpc_id |
String |
ID of the VPC to which the instance belongs |
endpoints |
Array of EndpointsRes objects |
Private IP address of the server |
image |
ServerImageResponse object |
Server image information |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Server resource ID |
type |
String |
DevServer type. Enums:
|
Parameter |
Type |
Description |
---|---|---|
allowed_access_ips |
Array of strings |
Whitelisted public IP addresses that are allowed to access notebook instances through SSH. By default, all public IP addresses can access the notebook instances. If this parameter is specified, only the clients at the specified IP addresses can access the notebook instances. |
dev_service |
String |
Supported service. Enums:
|
extensions |
Map<String,String> |
App-specific URL for accessing the remote development mode of the App. |
ssh_keys |
Array of strings |
List of SSH key pairs. You can set multiple key pairs to access an SSH instance at the same time. |
Parameter |
Type |
Description |
---|---|---|
allowed_access_ips |
Array of strings |
Whitelist of public IP addresses that are allowed to access the notebook instance through SSH. By default, all public IP addresses can access the notebook instance. If this parameter is specified, only the clients with the specified IP addresses can access the notebook instance. |
dev_service |
String |
Supported service. Options:
|
ssh_keys |
Array of strings |
List of SSH key pairs. You can set multiple key pairs to access an SSH instance at the same time. |
service |
String |
Supported service. The options are:
|
uri |
String |
Private IP address of the instance |
Example Requests
PUT https://{endpoint}/v1/{project_id}/dev-servers/{id}/stop
Example Responses
Status code: 200
OK
{ "charging_mode" : "POST_PAID", "cloud_server" : { "type" : "ECS" }, "create_at" : 1699348284990, "flavor" : "Si2.large.4", "id" : "62383738-e52a-450a-9f84-f9e705402be8", "image" : { "arch" : "X86", "image_id" : "c90fb553-2cdb-4b81-b56a-ef68812c6cf7", "name" : "Ubuntu18.04_x86_64_CPU", "server_type" : "ECS" }, "name" : "EI-evs-1107", "status" : "STOPPING", "update_at" : 1699348285077 }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot