ListRunningApps
Queries running applications.
Operation description
Prerequisites
This API operation is called anonymously, but the server still verifies the logon state. The LoginToken and SessionId request parameters are actually required. If either parameter is missing, an HTTP 400 error is returned with the error code InvalidParameter.loginToken or InvalidParameter.sessionId.
Obtain credentials
To obtain the LoginToken and SessionId by using GetLoginToken, call the GetLoginToken operation of the appstream-center 2021-02-20 version. The 2021-09-03 version does not provide this operation. You can also call RefreshLoginToken to update and obtain the LoginToken.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientId |
string |
No |
The unique ID generated by the client. |
370b56f8-2812-4b6c-bfa6-2560791cad88 |
| LoginToken |
string |
No |
The logon credential.
You can obtain this parameter by calling the GetLoginToken operation to log on, or by calling the RefreshLoginToken operation to update the credential after logon. Response parameter: LoginToken.
This parameter is actually required. You must specify this parameter when you call this operation. If this parameter is not specified, the server returns an HTTP 400 error with the error code |
v1124500957832f30b3e716406562071655aa43b2a723ed2be0837815483d54e025db13ba5469f06f2410d0efc4d302e36 |
| EndUserId |
string |
No |
The username of the convenience user. |
test.test |
| SessionId |
string |
No |
The session ID.
You can obtain this parameter from the SessionId response parameter of the GetLoginToken operation.
This parameter is actually required. You must specify this parameter when you call this operation. If this parameter is not specified, the server returns an HTTP 400 error with the error code |
a863f4c3-2f1d-4971-8cf7-e2b92ae97764 |
| ClientOS |
string |
No |
The operating system of the client. |
windows_"Windows 10 Enterprise" 10.0 (Build 18363) |
| ClientVersion |
string |
No |
The client version. |
0.1.0-R-20220512.175656 |
| ClientIp |
string |
No |
The IP address of the client. |
22.21.2.32 |
| ProductType |
string |
No |
The product type. Valid value: Valid values:
|
CloudApp |
| BizRegionId |
string |
No |
The region ID of the app instance group. |
cn-hangzhou |
| TenantId |
string |
No |
The tenant ID. You can obtain this parameter from the TenantId response parameter of the GetLoginToken operation. |
1735953493960828 |
| LoginRegionId |
string |
No |
The region ID for logon. |
cn-hangzhou |
| Uuid |
string |
No |
The UUID of the device used for logon. |
470E8C12AB78CE9C3F6627DD0409E51D |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
2DC3521C-3820-5EA5-9A9A-00BB7AF4E8E5 |
| RunningCloudApps |
array<object> |
The list of information about running cloud apps. |
|
|
object |
The information about a running cloud app. |
||
| AppId |
string |
The app ID. |
ca-dln05y44ze6esfl8x |
| AppInstanceGroupId |
string |
The app instance group ID. |
aig-dk8p95irk9xs5xi6a |
| AppInstanceId |
string |
The app instance ID. |
ai-gc1gemx6vpa6vlync |
| AppName |
string |
The app name. |
alihealth-keeper |
| AppVersion |
string |
The app version. |
11.1 |
| AppVersionName |
string |
The app version name. |
test1.0 |
| Duration |
integer |
The running duration of the cloud app instance. Unit: seconds. |
87 |
| IconUrl |
string |
The URL of the app icon. |
https://app-icon-shanghai.oss-cn-shanghai.aliyuncs.com/tenant/187465/18_bf1.jpg |
| OsType |
string |
The operating system type of the platform on which the instance runs. Valid values:
|
Windows |
| RegionId |
string |
The region ID of the cloud app. |
cn-hangzhou |
| StartTime |
string |
The start time. The value is a UNIX timestamp. Unit: seconds. |
1642748400 |
Examples
Success response
JSON format
{
"RequestId": "2DC3521C-3820-5EA5-9A9A-00BB7AF4E8E5",
"RunningCloudApps": [
{
"AppId": "ca-dln05y44ze6esfl8x",
"AppInstanceGroupId": "aig-dk8p95irk9xs5xi6a",
"AppInstanceId": "ai-gc1gemx6vpa6vlync",
"AppName": "alihealth-keeper",
"AppVersion": "11.1",
"AppVersionName": "test1.0",
"Duration": 87,
"IconUrl": "https://app-icon-shanghai.oss-cn-shanghai.aliyuncs.com/tenant/187465/18_bf1.jpg",
"OsType": "Windows",
"RegionId": "cn-hangzhou",
"StartTime": "1642748400"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.