Help Center/ Workspace/ API Reference/ Workspace APIs/ Desktops/ Obtaining the Real-Time Desktop Process List
Updated on 2026-11-20 GMT+08:00

Obtaining the Real-Time Desktop Process List

Function

Obtains the real-time process details list of a specified desktop.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    workspace:desktops:listProcesses

    List

    desktop *

    • g:ResourceTag/<tag-key>

    • g:EnterpriseProjectId

    -

    -

URI

GET /v2/{project_id}/desktops/{desktop_id}/processes

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

desktop_id

Yes

String

Desktop ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

offset

No

Integer

Where the pagination query starts. The value starts from 0.

limit

No

Integer

Pagination query. The value ranges from 0 to 1000 and defaults to 500.

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

total_count

Integer

Total number of processes.

processes

Array of DesktopProcessInfo objects

Real-time desktop process list.

Table 4 DesktopProcessInfo

Parameter

Type

Description

pid

Long

Process ID.

name

String

Process name.

status

String

Process status. The value can be running or stopped.

commandline

String

Process command line.

session_id

Integer

Session ID.

cpu_percent

Double

CPU usage.

arch

String

Process architecture.

group_id

Integer

Process group ID.

group_name

String

Process group name.

huawei_cloud_process

Integer

Whether the process is a key cloud desktop process. 1: yes; 0: no.

memory

DesktopProcessMemoryInfo object

Process memory information.

disk

DesktopProcessDiskInfo object

Process disk information.

network

DesktopProcessNetworkInfo object

Process network information.

gpu

DesktopProcessGpuInfo object

Process GPU information.

thread_count

Integer

Number of threads.

handle_count

Integer

Number of handles.

user

String

User to which the process belongs.

start_time

Long

Process start time, which is a Unix timestamp, in seconds.

Table 5 DesktopProcessMemoryInfo

Parameter

Type

Description

working_set_bytes

Long

Working set memory size, in bytes.

Table 6 DesktopProcessDiskInfo

Parameter

Type

Description

io_read_bytes_per_sec

Long

Number of bytes read from the disk per second.

io_write_bytes_per_sec

Long

Number of bytes written to the disk per second.

Table 7 DesktopProcessNetworkInfo

Parameter

Type

Description

send_bytes_per_sec

Long

Number of bytes sent by the network per second.

recv_bytes_per_sec

Long

Number of bytes received by the network per second.

Table 8 DesktopProcessGpuInfo

Parameter

Type

Description

utilization_percent

Double

GPU usage.

memory_bytes

Long

GPU memory usage, in bytes.

Status code: 400

Table 9 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

error_detail

String

Error details.

encoded_authorization_message

String

Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason.

Status code: 401

Table 10 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

error_detail

String

Error details.

encoded_authorization_message

String

Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason.

Status code: 403

Table 11 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

error_detail

String

Error details.

encoded_authorization_message

String

Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason.

Status code: 404

Table 12 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

error_detail

String

Error details.

encoded_authorization_message

String

Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason.

Status code: 500

Table 13 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

error_detail

String

Error details.

encoded_authorization_message

String

Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason.

Example Requests

GET /v2/0bec5db98280d2d02fd6c00c2de791ce/desktops/a130ab3a-72bf-4b71-baa9-af4987c8e338/processes

Example Responses

Status code: 200

{
  "total_count" : 2,
  "processes" : [ {
    "pid" : 1234,
    "name" : "chrome.exe",
    "status" : "running",
    "commandline" : "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
    "session_id" : 1,
    "cpu_percent" : 12.5,
    "arch" : 64,
    "group_id" : 101,
    "group_name" : "Google Chrome",
    "huawei_cloud_process" : 1,
    "memory" : {
      "working_set_bytes" : 524288000
    },
    "disk" : {
      "io_read_bytes_per_sec" : 1048576,
      "io_write_bytes_per_sec" : 524288
    },
    "network" : {
      "send_bytes_per_sec" : 20480,
      "recv_bytes_per_sec" : 20960
    },
    "gpu" : {
      "utilization_percent" : 3.2,
      "memory_bytes" : 13421823
    },
    "thread_count" : 42,
    "handle_count" : 1200,
    "user" : "DESKTOP\\Alice",
    "start_time" : 1720160000
  } ]
}

Status Codes

Status Code

Description

200

Real-time desktop process list.

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error. For details, see the error code description.

Error Codes

See Error Codes.