DeleteAdaptor

Updated at:

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

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: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.