• Workspace

workspace
  1. Help Center
  2. Workspace
  3. API Reference
  4. Desktops
  5. Starting Desktops

Starting Desktops

Function

This interface is used to start a desktop.

URI

  • URI format

    POST /v1.0/{project_id}/desktops/{desktop_id}/action

  • URI parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    string

    Specifies the user ID.

    desktop_id

    Yes

    string

    Specifies the desktop ID.

Request

  • Request body parameter description

    Parameter

    Mandatory

    Type

    Description

    os-start

    Yes

    Empty structure

    Specifies the operation of starting the desktop. The data structure is null.

  • Request example
POST /v1.0/29dfe82ada564ac2b927e1ff036d9a9b/desktops/bae51750-0089-41a1-9b18-5c777978ff6d/action 
Request Body: 
{ 
   "os-start": null 
}

Response

No response body

Returned Values

  • Normal

    202

  • Abnormal

    Returned Value

    Description

    400 Bad Request

    The request syntax is incorrect and cannot be understood by the server.

    401 Unauthorized

    Authentication fails.

    403 Forbidden

    You are not authorized to perform the operation.

    404 Not Found

    The requested resource is not found.

    405 Method Not Allowed

    The method specified in the request is not allowed.

    500 Internal Server Error

    Internal service error. For details about error codes, see Error Code Description.

    503 Service Unavailable

    The service is unavailable.