- Documentation
Elastic Compute Service
Elastic Compute Service
API Reference
Patch management
RegisterDefaultPatchBaseline - Sets the default patch baseline
Patch management
RegisterDefaultPatchBaseline - Sets the default patch baseline
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***************
X-Top-Account-Id: 21000*****
Content-Type: application/json
"BaselineId": "bl-12345678abc****"
Sample response
"RequestId": "202601221006060606****",
"Action": "RegisterDefaultPatchBaseline",
"Version": "2020-04-01",
"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.
Last updated: 2026.03.30 11:55:54