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.
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:
|
| 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 |
| 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. |
Add an ignore policy
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"
]
}
{
"Response": {
"RequestId": "f2dec187-04f4-4cd2-aeb1-ce51c56bc8b8"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
文档反馈