tencent cloud

APIs

BatchModifyBaselinePolicy

Download
Modo Foco
Tamanho da Fonte
Última atualização: 2026-09-01 10:34:17

1. API Description

Domain name for API request: csip.intl.tencentcloudapi.com.

Batch modify the "periodic scan configuration / automatic synchronization of newly-added detection items / detection item hit configuration / customized detection items" settings in the baseline policy. Only fields passed in the request are modified.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: BatchModifyBaselinePolicy.
Version Yes String Common Params. The value used for this API: 2022-11-21.
Region No String Common Params. This parameter is not required.
PolicyIDList.N Yes Array of Integer

List of baseline policy IDs that need modification. It cannot be empty and elements cannot be 0.

CycleScanConf Yes CycleScanConf

Period scan configuration; can be omitted if not modified. When Enable=1, IntervalType and IntervalValueList must be simultaneously passed in.

AutoSyncItem No Boolean

Automatic synchronization switch for newly-added built-in detection items. true: automatically join; false: do not join.

CategoryConf.N No Array of BaselinePolicySystemCategoryConf

Categorization / subcategory / detection item hit configuration; can be omitted if not modified.

MemberId.N No Array of String

Group account member id

CustomItemConf.N No Array of BaselineCustomItemConf

Configuration list of custom detection item values; can be omitted if not modified. In each element, RuleID and CustomItemID cannot both be 0.

3. Output Parameters

Parameter Name Type Description
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Edit a policy

Edit policy

Input Example

POST / HTTP/1.1
Host: csip.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: BatchModifyBaselinePolicy
<Common request parameters>

{
    "PolicyIDList": [
        2
    ],
    "CycleScanConf": {
        "Enable": 1,
        "IntervalType": "DAY",
        "IntervalValueList": [
            "3"
        ],
        "ScanStart": "00:00",
        "ScanEnd": "00:20"
    },
    "CategoryConf": [
        {
            "CategoryID": 8,
            "AllSelect": true,
            "SubCategoryConfList": [
                {
                    "CategoryID": 161,
                    "AllSelect": true,
                    "ItemIDList": [
                        12838
                    ]
                }
            ]
        }
    ],
    "AutoSyncItem": true,
    "MemberId": [
        "mem-***********795752f66e429"
    ],
    "CustomItemConf": [
        {
            "RuleID": 12837,
            "CustomValueList": [
                "90"
            ],
            "CustomItemID": 2
        }
    ]
}

Output Example

{
    "Response": {
        "RequestId": "4782df10-ce57-447d-a037-d53e231a7b85"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.

Ajuda e Suporte

Esta página foi útil?

comentários