GetImageTestResult

Updated at:

Retrieves the details of an image test result.

Operation description

  1. You must purchase DataWorks Basic Edition or a higher edition to use this feature.

  2. Before using this operation, make sure that the service-linked role AliyunServiceRoleForDataWorks has been created.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Id

string

Yes

The image ID.

Custom_image_xxxx_xxxx

ProcessId

string

Yes

The test process ID.

582d4896-d224-413b-b883-239eeebe0bc5

Response elements

Element

Type

Description

Example

object

Schema of Response

Success

boolean

Indicates whether the request was successful.

true

TestResult

object

The details of the image test result.

ProcessId

string

The process ID.

582d4896-d224-413b-b883-239eeebe0bc5

ImageId

string

The image ID.

Custom_image_xxxx_xxxx

Status

string

The test process status. Valid values:

  • running: Running.

  • completed: Completed.

  • failed: Failed.

  • cancelled: Cancelled.

completed

PublishStage

string

The image publish status. Valid values:

  • Untest: Not tested.

  • Testing: Testing in progress.

  • TestFailed: Test failed.

  • Unpublished: Not published.

  • Publishing: Publishing in progress.

  • Published: Published.

  • PublishFailed: Publish failed.

  • Building: Building in progress.

  • BuildSuccess: Build succeeded.

  • BuildFailed: Build failed.

  • Accelerating: Acceleration in progress.

  • AccelerateSuccess: Acceleration succeeded.

  • AccelerateFailed: Acceleration failed.

Unpublished

OperateTime

integer

The operation time, represented as a 64-bit timestamp.

1727055811000

ResourceGroupId

integer

The resource group ID.

Serverless_res_group_****

Message

string

The test result message.

test finished

RequestId

string

The request ID, which is used to locate logs and troubleshoot issues.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Success response

JSON format

{
  "Success": true,
  "TestResult": {
    "ProcessId": "582d4896-d224-413b-b883-239eeebe0bc5",
    "ImageId": "Custom_image_xxxx_xxxx",
    "Status": "completed",
    "PublishStage": "Unpublished",
    "OperateTime": 1727055811000,
    "ResourceGroupId": 0,
    "Message": "test finished"
  },
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.