UploadCloudApp

Updated at:

Uploads or publishes a cloud application package. This is an asynchronous operation. You can call the ListCloudApps operation to query the upload progress.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vs:UploadCloudApp

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

AppName

string

Yes

The application name. For Android applications, we recommend that you use the package name, such as com.aaa.bbb. Naming conventions: 1. The length is 4 to 50 characters. 2. The name can contain lowercase letters, digits, underscores (_), hyphens (-), and periods (.). 3. The first and last characters must be letters or digits.

com.aaa.bbb

AppVersion

string

Yes

The application version. For Android applications, we recommend that you use the VersionName, such as 1.1.1. Naming conventions: 1. The length is 1 to 50 characters. 2. The version can contain lowercase letters, digits, underscores (_), hyphens (-), and periods (.). 3. The first and last characters must be letters or digits.

1.1.1

DownloadUrl

string

Yes

The download URL of the application package.

https://xxx.xxx.xxx.apk

Md5

string

Yes

The MD5 hash of the application package, which is used to check the integrity of the application package.

0CFBB7BD10CDD7279642ADAB8FEF3DEE

PkgFormat

string

No

The format of the installation package. The default value is the file name extension of the download URL. Valid values: 1. apk 2. tar.gz 3. tar 4. zip 5. rar.

Valid values:

  • zip :

    ZIP format.

  • tar.gz :

    tar.gz format.

  • rar :

    RAR format.

  • tar :

    tar format.

  • apk :

    APK format.

apk

PkgType

string

No

The type of the installation package. ## Valid values: 1. android 2. win 3. android_appmarket: This value applies to Android app marketplace scenarios. In this scenario, the actual package name of the APK is restricted. a. The package names of different AppName values cannot be duplicated. b. Different AppVersion values of the same AppName can be associated with different package names. ## Default value description: If this parameter is not specified, the installation package type is automatically mapped based on the PkgFormat parameter or the file name extension of the DownloadUrl parameter. The default mapping between PkgFormat and the installation package type is as follows: 1. android: apk. The apk format is mapped to android by default. 2. win: tar.gz, tar, zip, and rar. 3. android_appmarket: apk.

Valid values:

  • android_appmarket :

    Android app marketplace.

  • android :

    Android application.

  • win :

    Windows application.

android

Description

string

No

The description of the application.

Test application package

PkgLabels

array

No

The tags of the cloud application. You can specify multiple tags. Valid values: 1. hot 2. game 3. app.

string

No

The tag of the cloud application.

Valid values:

  • app :

    Application.

  • game :

    Game.

  • hot :

    Popular.

app

PostCommandPath

string

No

The relative path of the post-command in the application package. This parameter is supported only for Windows applications.

install.ps1

PostCommandTimeoutSec

integer

No

The timeout period for executing the post-command, in seconds. This parameter is supported only for Windows applications.

10

Response elements

Element

Type

Description

Example

object

Schema of Response

AppId

string

The ID of the cloud application, which corresponds to a unique application package.

cap-b06b26edfhytbn b94a75ae1a79efc90eb

RequestId

string

The request ID.

BEA5625F-8FCF-48F4-851B-CA63946DA664

Examples

Success response

JSON format

{
  "AppId": "cap-b06b26edfhytbn b94a75ae1a79efc90eb",
  "RequestId": "BEA5625F-8FCF-48F4-851B-CA63946DA664"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.