Call DescribeImagePipelineExecutions to get details about an image build task.
Operation description
API
The
ImagePipelineIdcannot refer to a deleted image pipeline. Deleting an image pipeline also deletes its associated build tasks.The
ImagePipelineIdandExecutionIdparameters cannot both be empty.To paginate the results, set
NextTokento the value returned by the previous call toDescribeImagePipelineExecutions. UseMaxResultsto specify the maximum number of results per page.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeImagePipelineExecutions |
get |
*ImagePipelineExecution
*ImagePipelineExecution
*ImagePipeline
*ImagePipeline
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the latest list of Alibaba Cloud regions. |
cn-hangzhou |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
A tag object. |
||
| Key |
string |
No |
The key of tag N. The value of N can be from 1 to 20. |
TestKey |
| Value |
string |
No |
The value of tag N. The value of N can be from 1 to 20. |
TestValue |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the latest list of Alibaba Cloud regions. |
cn-hangzhou |
| ImagePipelineId |
string |
No |
The ID of the image template. |
ip-2ze5tsl5bp6nf2b3**** |
| ExecutionId |
string |
No |
The ID of the image building task. |
exec-5fb8facb8ed7427c**** |
| Status |
string |
No |
The status of the image building task. You can specify multiple values, separated by commas. Example:
Note
If you omit this parameter, the operation returns image building tasks of all statuses. |
BUILDING |
| NextToken |
string |
No |
The query token. Set the value to the |
AAAAAdDWBF2**** |
| MaxResults |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 500. Default value: 50. |
50 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| NextToken |
string |
The token returned in this call. Use this token to retrieve the next page of results. For more information, see the operation description. |
AAAAAdDWBF2**** |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| TotalCount |
integer |
The total number of image pipeline executions. |
1 |
| MaxResults |
integer |
The number of entries per page. |
50 |
| ImagePipelineExecution |
object |
The details of the image pipeline executions. |
|
| ImagePipelineExecutionSet |
array<object> |
The image pipeline executions. |
|
|
array<object> |
Details of an image pipeline execution. |
||
| CreationTime |
string |
The time when the image pipeline execution was created. |
2020-11-24T06:00:00Z |
| ImagePipelineId |
string |
The ID of the image pipeline. |
ip-2ze5tsl5bp6nf2b3**** |
| Status |
string |
The status of the image pipeline execution. Valid values:
|
BUILDING |
| ModifiedTime |
string |
The time when the execution was last updated. |
2020-11-25T06:00:00Z |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-bp67acfmxazb4p**** |
| Message |
string |
The message associated with the execution. |
Create transition vpc "vpc-2ze70rc7093j9idu6****" success! |
| ImageId |
string |
The ID of the destination image. |
m-bp67acfmxazb4p**** |
| ExecutionId |
string |
The ID of the execution. |
exec-5fb8facb8ed7427c**** |
| Tags |
object |
The tags. |
|
| Tag |
array<object> |
A list of tags. |
|
|
object |
The tag object. |
||
| TagValue |
string |
The tag value. |
TestKey |
| TagKey |
string |
The tag key. |
TestValue |
| ErrorCode |
string |
The error code for a failed execution. |
NO_AVAILABLE_INSTANCE_TYPE |
| ErrorInfo |
string |
The error message for a failed execution. |
No available instance type to use. |
Examples
Success response
JSON format
{
"NextToken": "AAAAAdDWBF2****",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TotalCount": 1,
"MaxResults": 50,
"ImagePipelineExecution": {
"ImagePipelineExecutionSet": [
{
"CreationTime": "2020-11-24T06:00:00Z",
"ImagePipelineId": "ip-2ze5tsl5bp6nf2b3****",
"Status": "BUILDING",
"ModifiedTime": "2020-11-25T06:00:00Z",
"ResourceGroupId": "rg-bp67acfmxazb4p****",
"Message": "Create transition vpc \"vpc-2ze70rc7093j9idu6****\" success!",
"ImageId": "m-bp67acfmxazb4p****",
"ExecutionId": "exec-5fb8facb8ed7427c****",
"Tags": {
"Tag": [
{
"TagValue": "TestKey",
"TagKey": "TestValue"
}
]
},
"ErrorCode": "NO_AVAILABLE_INSTANCE_TYPE",
"ErrorInfo": "No available instance type to use."
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.Status | %s | |
| 400 | MissingParameter.ImagePipelineId | The specified parameter ImagePipelineId should not be empty. | The specified parameter ImagePipelineId should not be empty. |
| 400 | InvalidExecutionId.SizeExceeded | ExecutionId list exceeds maximum size of %s. Current size is %s. | The ExecutionId list size you set exceeds the maximum allowed. |
| 403 | Invalid.NextToken | The specified NextToken is not valid. | |
| 404 | InvalidImagePipeline.NotFound | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.