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

Elastic Compute Service

Copy page
Download PDF
Patch management
RegisterDefaultPatchBaseline - Sets the default patch baseline
Copy page
Download PDF
RegisterDefaultPatchBaseline - Sets the default patch baseline
Call RegisterDefaultPatchBaseline to set the default patch baseline.​
Usage notes​
  • Only one default patch baseline can be set for each operating system type. Setting a new default baseline will replace the current one (including any predefined system baseline).​
  • Setting the default patch baseline only applies to newly created patch plans. Existing patch plans will retain the default baseline that was in effect at the time of their creation.​
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: RegisterDefaultPatchBaseline​
The operation that you want to perform. Value: RegisterDefaultPatchBaseline.​
​
Version string required Sample value: 2020-04-01​
The API version. Value: 2020-04-01.​
​
BaselineId string required Sample value: bl-xffsafgewgdf****​
The patch baseline ID. You can obtain it by calling CreatePatchBaseline. Valid value: You can pass in up to 1 patch baseline 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.​
BaselineId string Sample value: bl-xffsafgewgdf****​
The ID of the patch baseline.​
​
​
​
Sample request​
​
POST /?Version=2020-04-01&Action=RegisterDefaultPatchBaseline 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​
​
{​
"BaselineId": "bl-12345678abc****"​
}​
​
Sample response​
​
{​
"ResponseMetadata": {​
"RequestId": "202601221006060606****",​
"Action": "RegisterDefaultPatchBaseline",​
"Version": "2020-04-01",​
"Service": "ecs",​
"Region": "cn-beijing"​
},​
"Result": {​
"BaselineId": "bl-12345678abc****"​
}​
}​
​
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