You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Patch management
CancelPatchPlan - Cancels a patch plan
Copy page
Download PDF
CancelPatchPlan - Cancels a patch plan
Call CancelPatchPlan to cancel a patch plan.​
Usage notes​
Only scheduled and periodic patch plan tasks can be canceled, and canceled plans cannot be re-executed.​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
Only the request parameters specific to this operation and some common parameters are listed below. For more information, refer to Common parameters.​
Action string required Sample value: CancelPatchPlan​
The operation that you want to perform. Value: CancelPatchPlan.​
​
Version string required Sample value: 2020-04-01​
The API version. Value: 2020-04-01.​
​
PatchPlanId string required Sample value: pp-yedfvyt41q5s2jax****​
The patch plan ID. You can obtain it by calling CreatePatchPlan. Valid value: You can pass in up to 1 patch plan ID at a time.​
​
​
​
Response parameters​
Only the response parameters specific to this operation are listed below. For more information, refer to the response structure.​
PatchPlanId string Sample value: pp-yedfvyt41q5s2ja****​
The ID of the patch plan.​
​
​
​
Sample request​
​
POST /?Version=2020-04-01&Action=CancelPatchPlan HTTP/1.1​
Host: ecs.cn-beijing.volcengineapi.com​
AccessKey: AK*****************​
SecretKey: TXpS***************​
ServiceName: ecs​
Region: cn-beijing​
X-Top-Account-Id: 21000*****​
Content-Type: application/json​
​
{​
"PatchPlanId": "pp-87654321zy****"​
}​
​
Sample response​
​
{​
"ResponseMetadata": {​
"RequestId": "202601221011111111****",​
"Action": "CancelPatchPlan",​
"Version": "2020-04-01",​
"Service": "ecs",​
"Region": "cn-beijing"​
},​
"Result": {​
"PatchPlanId": "pp-87654321zy****"​
}​
}​
​
Error codes​
The table below lists the business-related error codes of the operation. For more information, refer to Common error codes.​
​
Status code​
Error code​
Error message​
Description​
400​
InvalidArgument​
The specified argument is invalid.​
The specified parameter is invalid.​
500​
InternalError​
An internal error has occurred.​
An internal error occurred. Try again. If multiple attempts fail, submit a ticket.​
​
​
Last updated: 2026.03.30 11:55:54