UpdateImageTask
Sends a status update request for an existing image creation task to the corresponding creation resource.
Operation description
The task must exist before you call this operation, and the corresponding creation resource and resource node must be available. The TaskType must match the actual type of the task. This operation does not support modifying the task step, image version, or destination region by using TaskStep, VersionId, or BizRegionId. Do not pass these three parameters. A successful request only indicates that the status update call is completed. To query the final status of the task, call GetTask.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:UpdateTask |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskType |
string |
Yes |
The actual type of the task to be updated, which must match the task specified by TaskId. Status updates support the following application adaptation and manual image creation tasks. Valid values:
|
IMAGE_MANUAL |
| TaskId |
string |
Yes |
The ID of the task to be updated. The task and its creation resource must already exist. |
tid-bp1example**** |
| TaskStep |
string |
No |
Not enabled. Do not pass this parameter. This parameter is not supported for updating the task step. The example "N/A (not enabled)" is only a description of the field status and is not a valid parameter value. |
N/A (not enabled) |
| Status |
string |
No |
The status identifier reported by the creation resource. It must match the task type and the current creation stage. You cannot directly use the overall task status from GetTask as a substitute. Valid values for image creation tasks (IMAGE_MANUAL and IMAGE_MANUAL_RETRY):
|
BUILD_START |
| Code |
string |
No |
Not enabled. Do not pass this parameter. This parameter is not involved in task status updates. The example "N/A (not enabled)" is only a description of the field status and is not a valid parameter value. |
N/A (not enabled) |
| VersionId |
string |
No |
Not enabled. Do not pass this parameter. This parameter is not supported for modifying the image version associated with the task. The example "N/A (not enabled)" is only a description of the field status and is not a valid parameter value. |
N/A (not enabled) |
| BizRegionId |
string |
No |
Not enabled. Do not pass this parameter. The task region is determined by the associated creation resource. This parameter is not used to switch regions. The example "N/A (not enabled)" is only a description of the field status and is not a valid parameter value. |
N/A (not enabled) |
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. This field is returned when the request fails. A successful response may not contain this field. |
InternalError |
| Message |
string |
The error or result message. This field describes 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.