Help Center> Cloud Phone Host> API Reference> APIs for Cloud Mobile Gaming Management> Application Management> Querying the List of Servers Where Applications Are Deployed

Querying the List of Servers Where Applications Are Deployed

Function Description

  • API Name

    QueryAppDeployServers

  • Function

    Query the list of servers where applications are deployed. A maximum of 100 records can be returned for each request.

URI

GET /v1/{project_id}/cloud-phone/apps/{app_id}/servers?offset=0&limit=100

For details, see Table 1.
Table 1 Parameter description

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.

app_id

Yes

String

Specifies the application 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

  • Request parameters

    None

  • Example request
    1
    GET https://{CPH Endpoint}/v1/{project_id}/cloud-phone/apps/{app_id}/servers?offset=0&limit=100
    

Response

  • Response parameters

    Parameter

    Type

    Description

    request_id

    String

    Specifies the request ID, which is unique.

    servers

    Array of objects

    Specifies the server information. For details, see Table 2.

    Table 2 server field description

    Parameter

    Type

    Description

    server_id

    String

    Specifies the server ID that is unique.

    app_version_id

    String

    Specifies the application package name.

    version_code

    String

    Specifies the application version code.

    version_name

    String

    Specifies the application version name.

    launch_activity

    String

    Specifies the application startup path.

  • Example response
    {
        "request_id": "6a63a18b8bab40ffb71ebd9cb80d0085",
        "servers": [{
            "server_id": "88b8449b896f3a4f0ad57222dd91909",
            "app_verison_id": "",
            "version_code": "",
            "version_name": "",
            "launch_activity":"xxx",
        },
        {
            "server_id": "88b8449b896f3a4f0ad57222dd91909",
            "app_verison_id": "",
            "version_code": "",
            "version_name": "",
            "launch_activity":"xxx",
        }]
    }

Returned Values

See Returned Values.

Error Codes

See Error Codes.