InstallCloudApp

Updated at:

Installs a cloud application on a specified cloud application instance. This operation is asynchronous. You can call the ListCloudAppInstallations operation to query the installation 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:InstallCloudApp

update

*Crs

acs:videosurveillancesystem::{#AccountId}:crs/{#CrsId}

None None

Request parameters

Parameter

Type

Required

Description

Example

RenderingInstanceId

string

No

The cloud application service instance ID.

render-9f8c57355d224ad7beaf95e145f22111

AppId

string

Yes

The cloud application ID.

cap-b06b26edfhytbn b94a75ae1a79efc90eb

RenderingInstanceIds

array

No

The list of cloud application service instance IDs.

string

No

The cloud application service instance ID.

render-4523e7b93ca246febd10cd12347d70c0

ProjectId

string

No

The project ID.

project-422bc38dfgh5eb44149f135ef76304f63b

PageSize

integer

No

The maximum number of instances that can be selected under the project. This parameter takes effect only when ProjectId is not empty. It limits the maximum number of instances on which the operation is performed under the project to control the impact scope. Default value: 100. Valid values: 1 to 100.

10

PageNumber

integer

No

The page number for the paged query of instance associations under the project. By default, the paged query is sorted by instance association time in descending order. This parameter takes effect only when ProjectId is not empty. It limits the maximum number of instances on which the operation is executed under the project to control the impact scope. Default value: 1.

  1. About the value range of PageNumber: a. [Recommended] Method 1: Calculate the upper limit based on the total number of instances associated with the project (you can call the ListRenderingProjectInstances operation to obtain the total number). b. Method 2: Determine whether PageNumber has reached the upper limit of the project based on the response. [Advantage: You do not need to calculate the value range.] If the response meets either of the following conditions, PageNumber has reached the upper limit: i. The response returns HTTP status code 403 and error code 200301. ii. The response returns SuccessInstanceCount + FailedInstanceCount < PageSize.

  2. Example scenarios: a. Full installation for instances under a project: If the number of instances in the project is greater than PageSize (default value: 100), you can call the Install operation multiple times by incrementing PageNumber by 1 each time to perform a full installation. You can call the ListCloudAppInstallations operation to query the installation progress of the instances. b. Installation for newly added instances under a project: Start with PageNumber=1. By default, the paged query is sorted by instance association time in descending order. The page with PageNumber=1 contains the most recently added instances.

1

PatchId

string

No

The patch package ID to install. This parameter is supported only in Windows scenarios.

  1. By default, StablePatchId is installed.

  2. If you set the value to origin, the original version is installed.

patch-7bdf679812484df08a956b73e0b3bdf6

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

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

SuccessInstanceCount

integer

The number of successful cloud application service instances.

5

SuccessInstances

array<object>

The list of successful cloud application service instances.

object

The cloud application service instance.

RenderingInstanceId

string

The cloud application service instance ID.

render-5130e2feb23f442fb9456a3d977f03d4

FailedInstanceCount

integer

The number of failed cloud application service instances.

0

FailedInstances

array<object>

The list of failed cloud application service instances.

object

The failed cloud application service instance.

RenderingInstanceId

string

The cloud application service instance ID.

render-b45f28650ffe4591bf4c5c95996a428c

ErrMessage

string

The failure reason information.

Rejected due to timeout

ErrCode

integer

The failure error code.

300000

Examples

Success response

JSON format

{
  "RequestId": "BEA5625F-8FCF-48F4-851B-CA63946DA664",
  "SuccessInstanceCount": 5,
  "SuccessInstances": [
    {
      "RenderingInstanceId": "render-5130e2feb23f442fb9456a3d977f03d4"
    }
  ],
  "FailedInstanceCount": 0,
  "FailedInstances": [
    {
      "RenderingInstanceId": "render-b45f28650ffe4591bf4c5c95996a428c",
      "ErrMessage": "Rejected due to timeout",
      "ErrCode": 300000
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.