UpdateAdaptor

Updated at:

Modifies the runtime parameters, optimization configurations, and user configurations of a specified application adapter.

Operation description

The AdaptorId must correspond to a valid application adapter manageable by the current account. Pass only the configurations that need to be modified in this request.

SilenceParam is used for application startup parameters. UserConfig is used for application runtime configurations. This operation does not support modifying application scripts or executable file paths through AppScript or ExecuteFileAddress. Do not pass these two parameters.

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

appstreaming:UpdateAdaptor

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

AdaptorId

string

No

The ID of the application adapter to be modified. This parameter is required and must belong to an application adapter manageable by the current account.

adt-bp1example****

AppScript

string

No

Not enabled. Do not pass this parameter. This operation does not support modifying application scripts through this parameter.

The example "Not applicable (not enabled)" is only a description of the field status and is not a valid parameter value.

Not applicable (not enabled)

OptimizeParam

string

No

The application optimization configuration, represented as a JSON object string. Pass this parameter only when specific optimization configuration requirements exist. The content must be a valid JSON object.

{}

ExecuteFileAddress

string

No

Not enabled. Do not pass this parameter. This operation does not support modifying executable file paths through this parameter.

The example "Not applicable (not enabled)" is only a description of the field status and is not a valid parameter value.

Not applicable (not enabled)

SilenceParam

string

No

The command-line parameters used when the application starts. If not empty, this parameter is used to update the startup parameters of the application adapter. Specify the value based on the startup requirements of the application.

--lang=zh-CN

UserConfig

object

No

The application runtime configuration object. If this parameter is omitted, the existing user configuration is not modified.

If passed, the original UserConfig is entirely replaced and not merged item by item. Submit the complete configuration and include the configuration items that need to be retained. Subfields that are not provided do not automatically inherit the original values.

{"FixedResolution":"1440x2560","DisconnectAction":"KEEP_CURRENT","ShowWindow":"HIDE"}

FixedResolution

string

No

The fixed resolution used when the application runs, in the format of width × height, in pixels.

1440x2560

DisconnectAction

string

No

The processing policy after a connection is disconnected. When modifying other UserConfig configurations, if you need to retain the original policy, pass the original value in the complete configuration object. This operation does not automatically populate default values.

KEEP_CURRENT

ShowWindow

string

No

The application window display configuration. When modifying other UserConfig configurations, if you need to retain the original configuration, pass the original value in the complete configuration object. This operation does not automatically populate default values.

HIDE

Response elements

Element

Type

Description

Example

object

The response result of this API call.

Data

boolean

Indicates whether the operation was processed successfully. A value of true indicates that the operation was successful.

Success

boolean

Indicates whether the request was processed successfully. A value of true indicates that the request was processed successfully. To check whether an asynchronous task is completed, query the task status separately.

Code

string

The error code. This parameter is returned when the request fails. A successful response may not contain this field.

InternalError

Message

string

The error or result message. This parameter describes the cause when the request fails. A successful response may not contain this field.

Internal error.

RequestId

string

The unique identifier of the request. You can provide this value when troubleshooting issues.

01A1A962-5503-107B-AC8F-EBA85DF905AC

Examples

Success response

JSON format

{
  "Data": false,
  "Success": false,
  "Code": "InternalError",
  "Message": "Internal error.",
  "RequestId": "01A1A962-5503-107B-AC8F-EBA85DF905AC"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.