Querying Application Details

Function Description

  • API Name

    QueryAppDetail

  • Function

    Query details about an application based on a specified application ID.

URI

GET /v1/{project_id}/cloud-phone/apps/{app_id}

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.

The value can contain a maximum of 32 characters.

Request

  • Request parameters

    None

  • Example request
    1
    GET https://{CPH Endpoint}/v1/{project_id}/cloud-phone/apps/{app_id}
    

Response

  • Response parameters

    Parameter

    Type

    Description

    request_id

    String

    Specifies the request ID, which is unique.

    package_name

    String

    Specifies the application package name.

    The value can contain a maximum of 128 characters, including uppercase letters, lowercase letters, digits, hyphens (-), periods (.), and underscores (_).

    name

    String

    Specifies the application name.

    The value can contain a maximum of 64 characters, including only letters, digits, hyphens (-), periods (.), and underscores (_).

    description

    String

    Provides supplementary information about the application.

    The value can contain a maximum of 256 characters.

    app_versions

    Array of objects

    Specifies the application version information. For details, see Table 2.

    Table 2 app_version field description

    Parameter

    Type

    Description

    app_verison_id

    String

    Specifies the application version ID.

    version_code

    String

    Specifies the application version code.

    version_name

    String

    Specifies the application version name.

    bucket_name

    String

    Specifies the name of the bucket where the application package is stored.

    A valid OBS bucket name contains 3 to 63 characters, including only lowercase letters, digits, hyphens (-), and periods (.).

    object_path

    String

    Specifies the storage path of the application package.

    A valid OBS object key can contain a maximum of 1024 characters.

    launch_activity

    String

    Specifies the application startup path.

    The value can contain a maximum of 256 characters, including only uppercase letters, lowercase letters, digits, periods (.), underscores (_), and hyphens (-).

    create_time

    String

    Specifies the time when the application is created.

    The value is a UTC time.

    update_time

    String

    Specifies the time when the application is updated.

    The value is a UTC time.

  • Example response
    {
        "request_id": "6837531fd3f54550927b930180a706bf",
        "package_name": "com.game.package",
        "name": "app_name",
        "description": "app_description",
        "app_versions": [
            {
                "app_verison_id": "",
                "version_code": "",
                "version_name": "",
                "bucket_name": "",
                "object_path": "",
                "launch_activity": "xxx",
                "create_time": "2020-01-01T00:00:00Z",
                "update_time": "2020-01-03T00:00:00Z"
            }
        ]
    }

Returned Values

See Returned Values.

Error Codes

See Error Codes.