Querying the List of Applications Deployed on the Server
Function Description
URI
GET /v1/{project_id}/cloud-phone/servers/{server_id}/apps?offset=0&limit=100
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
|
server_id |
Yes |
String |
Specifies the server ID. |
|
offset |
No |
Integer |
Offset If the value is an integer greater than 0 but less than the number of resources, all resources after this offset will be queried. The default value is 0. |
|
limit |
No |
Integer |
Specifies the number of resources returned on each page. Value range: 1–100 (default value: 100) Generally, set this parameter to 10, 20, or 50. |
Request
Response
- Response parameters
Parameter
Type
Description
request_id
String
Specifies the request ID, which is unique.
apps
Array of objects
Specifies the application information. For details, see Table 2.
Table 2 app field description Parameter
Type
Description
app_id
String
Specifies the application ID.
package_name
String
Specifies the application package name.
name
String
Specifies the application name.
description
String
Provides supplementary information about the application.
app_version_id
String
Specifies the application version ID.
version_code
String
Specifies the official application version.
version_name
String
Specifies the application version.
launch_activity
String
Specifies the application startup path.
- Example response
{ "request_id": "6a63a18b8bab40ffb71ebd9cb80d0085", "apps": [ { "app_id":"xxxxxx", "app_verison_id": "", "package_name": "com.game.package", "name": "", "description": "", "version_code": "", "version_name": "", "launch_activity": "xxx" }, { "app_id":"xxxxxx", "package_name": "com.game.package1", "name": "", "description": "", "app_verison_id": "", "version_code": "", "version_name": "", "launch_activity": "xxx" } ] }
Returned Values
See Returned Values.
Error Codes
See Error Codes.
Last Article: Application Deployment
Next Article: Deploying an Application Version on a Server
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.