ListTaskStep

Updated at:

Queries the step identifiers, step categories, and interaction methods for application adaptation or image creation tasks.

Operation description

Returns application adaptation steps when Type is set to ADAPTOR, and image creation steps when Type is set to IMAGE.

This operation returns step definitions, not the actual progress of a specific task. Read the step definitions first, and then display the task progress based on the current step and step status returned by GetTask. The step sets vary across different task types. Do not use the step index as the completion percentage.

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

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Type

string

Yes

The task type to which the step belongs. Valid values:

  • ADAPTOR: Application adaptation steps.

  • IMAGE: Image creation steps.

IMAGE

Response elements

Element

Type

Description

Example

object

The response to the API call.

Data

array<object>

The list of step definitions for the selected task type.

object

Index

integer

The numeric index of the step definition, which is used to identify the step and its sequence. Do not use this value as the completion percentage.

10

Name

string

The name identifier of the step, which is used to match the step records returned by GetTask.

Steps when Type is set to IMAGE:

  • INIT: Initializes the task.

  • CREATE_BUILDER_ENV: Creates the build environment.

  • DEPLOY_BUILDER_ENV: Deploys the build environment.

  • INIT_BUILDER: Initializes the build tool.

  • DOWNLOAD_APP: Downloads application resources.

  • START_BUILD: Starts image creation.

  • COMPLETE_INSTALL: Completes application installation and configuration.

  • CREATE_VALIDATE_ENV: Creates the validation environment.

  • DEPLOY_VALIDATE_ENV: Deploys the validation environment.

  • COMPLETE_VALIDATE: Completes image validation.

  • ARCHIVE_DATA: Archives image data.

  • CREATE_IMAGE: Generates the image.

  • FINISH_ADAPT: Ends the creation process.

Steps when Type is set to ADAPTOR:

  • INIT: Initializes the task.

  • CREATE_BUILDER_ENV: Creates the build environment.

  • DEPLOY_BUILDER_ENV: Deploys the build environment.

  • INIT_BUILDER: Initializes the build tool.

  • DOWNLOAD_APP: Downloads application resources.

  • START_VHD: Starts application recording.

  • BUILD_VHD: Generates the application VHD.

  • UPLOAD_VHD: Uploads the application VHD.

  • COMPLETE_BUILDER: Completes application creation.

  • CREATE_VALIDATE_ENV: Creates the validation environment.

  • DEPLOY_VALIDATE_ENV: Deploys the validation environment.

  • COMPLETE_VALIDATE: Completes application validation.

  • CREATE_IMAGE: Generates the application image.

  • FINISH_ADAPT: Ends the application adaptation process.

CREATE_BUILDER_ENV

Category

string

The Chinese name of the phase to which the step belongs, such as build environment preparation or test validation.

制作环境准备

Action

string

The interaction method of the step. Valid values:

  • prompt: Displays step prompts.

  • connection: Provides connection operations to enter the build or validation environment.

  • prompt_connection: Provides both prompts and connection operations.

connection

CategoryEn

string

The English name of the phase to which the step belongs. This field is returned for image creation steps, but may not be returned for application adaptation steps.

Builder Environment Preparation

Count

integer

The total number of records returned in the list.

1

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": [
    {
      "Index": 10,
      "Name": "CREATE_BUILDER_ENV",
      "Category": "制作环境准备",
      "Action": "connection",
      "CategoryEn": "Builder Environment Preparation"
    }
  ],
  "Count": 1,
  "RequestId": "01A1A962-5503-107B-AC8F-EBA85DF905AC"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InternalError Internal error. An internal error occurred.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.