UploadCloudApp
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
Test
RAM authorization
|
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:
|
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 |
| 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 |
|
| 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.