tencent cloud

APIs

ModifyBaselineIgnorePolicy

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-11-10 20:04:55

1. API Description

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

Modify baseline ignore policy

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: ModifyBaselineIgnorePolicy.
Version Yes String Common Params. The value used for this API: 2022-11-21.
Region No String Common Params. This parameter is not required.
ItemID Yes Integer

Detection item ID, identifying which detection item to set an ignore policy for.

ScopeType Yes String

Ignorable range type.

Enumeration values:

  • ALL: all assets
  • PICK: specified asset
Remark Yes String

Remark information.

ID Yes Integer

Ignore policy record ID. Pass 0 when creating, and pass the corresponding record ID when updating.

ScopeIncludeList.N No Array of String

Custom asset ID list. This parameter is valid only when PICK is selected. Import instance-id or cluster ID.

ScopeExcludeList.N No Array of String

Remove asset ID list. This parameter is valid only when set to ALL. Input instance-id or cluster ID.

MemberId.N No Array of String

Group account member id

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 Add ignore policy

Add an ignore policy

Input Example

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

{
    "ItemID": 1,
    "ScopeType": "ALL",
    "ScopeIncludeList": [
        "instance-tki"
    ],
    "ScopeExcludeList": [
        "instance-ikj"
    ],
    "Remark": "ignore all",
    "ID": 0,
    "MemberId": [
        "mem-tencent-6f5795752f66e429"
    ]
}

Output Example

{
    "Response": {
        "RequestId": "f2dec187-04f4-4cd2-aeb1-ce51c56bc8b8"
    }
}

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