DeleteAdaptor
Deletes a specified application adaptation or dissociates the adaptation from a specified image version.
Operation description
Confirm the deletion scope first.
If both ImageId and VersionId are specified: only dissociates the adaptation from the specified image version.
If ImageId and VersionId are not both specified: initiates the adaptation deletion process. The adaptation cannot be deleted if it is still referenced by multiple images. If the application has other adaptations, it cannot be deleted together with the application.
AdaptorId, AppVersionId, and AppId must be provided at the same time and correspond to the same application adaptation. Verify these identifiers through the application and image query results first.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:DeleteAdaptor |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AdaptorId |
string |
No |
The ID of the application adaptation to be processed. Required. It must point to the same application adaptation as AppId and AppVersionId. |
adt-bp1example**** |
| AppId |
string |
No |
The application ID. Required. It must correspond to the same application as AdaptorId. |
app-bp1example**** |
| AppVersionId |
string |
No |
The application version ID. Required. It must correspond to the same application version as AdaptorId. This parameter is not the image version ID. |
apv-bp1example**** |
| ImageId |
string |
No |
The ID of the image to be dissociated. Must be provided together with VersionId. If they are not both specified, the adaptation deletion process is initiated. |
imgc-bp1example**** |
| VersionId |
string |
No |
The ID of the image version to be dissociated. It must be provided together with ImageId and belong to the image. |
iv-bp1example**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response result of this API call. |
||
| Data |
boolean |
Indicates whether the operation is successful. A value of true indicates that the operation is successful. |
|
| Success |
boolean |
Indicates whether the request is successful. A value of true indicates that the request is successful. To check whether an asynchronous task is completed, query the task status separately. |
|
| Code |
string |
The error code. Returned when the request fails. A successful response may not contain this field. |
InternalError |
| Message |
string |
The error or result message. Used to describe 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 for troubleshooting. |
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.