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