Cancels an instance refresh task. Take note that instances whose configurations were already updated by running an instance refresh task remain intact even after you cancel the task.
Usage notes
You cannot call the CancelInstanceRefresh operation to cancel instance refresh tasks that are being rolled back.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | CancelInstanceRefresh | The operation that you want to perform. Set the value to CancelInstanceRefresh. |
RegionId | String | Yes | cn-hangzhou | The region ID of the scaling group. |
ScalingGroupId | String | Yes | asg-bp1igpak5ft1flyp**** | The ID of the scaling group. |
InstanceRefreshTaskId | String | No | ir-aca123sf**** | The ID of the instance refresh task. |
Response parameters
Parameter | Type | Example | Description |
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** | The request ID. |
Examples
Sample requests
http(s)://ess.aliyuncs.com/?Action=CancelInstanceRefresh
&RegionId=cn-hangzhou
&ScalingGroupId=asg-bp1igpak5ft1flyp****
&InstanceRefreshTaskId=ir-aca123sf****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<CancelInstanceRefreshResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</RequestId>
</CancelInstanceRefreshResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
Error codes
For a list of error codes, see Service error codes.