Domain name for API request: csip.intl.tencentcloudapi.com.
Modify the CSC abnormal login custom allowlist with full coverage saving (fields not passed are deemed as cleared). This API does not trigger historical alarm rescanning. Exclude itself during deduplication. If the rule does not exist, return ResourceNotFound.
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: ModifyLoginWhiteCustomEDR. |
| Version | Yes | String | Common Params. The value used for this API: 2022-11-21. |
| Region | No | String | Common Params. This parameter is not required. |
| Id | No | Integer | Rule ID; for self-learning, it is the rule group ID (minimum line ID in the group) |
| MemberId.N | No | Array of String | Group account member id |
| SrcIp | No | String | Login source IP. Use commas (,) to separate multiple items. Supports individual IPs, intervals (a-b), and CIDR. Supports IPv4 and IPv6. Up to 2048 characters. |
| UserName | No | String | Login username separated by commas; up to 1024 characters |
| StartTime | No | String | Login time start HH:MM; it must be filled in or left empty simultaneously with EndTime |
| EndTime | No | String | Login period end HH:MM; must be filled in or empty at the same time as StartTime |
| Places.N | No | Array of LoginWhitePlaceInput | List of common login locations, up to 200. Set ProvinceId/CityId to 99999 to indicate all provinces/all cities. |
| Remark | No | String | Remark, up to 255 characters |
| Scope | No | Integer | Effective asset scope: 0-specified hosts (host or tag hit) 1-all hosts |
| InstanceIDsWithAppId.N | No | Array of InstanceIDWithAppIdItem | List of specified hosts (in instance ID form), up to 10,000 items. The server translates them to QUUIDs via idmap, then merges and deduplicates them with QUUIDSWithAppId. |
| ExcludeInstanceIDsWithAppId.N | No | Array of InstanceIDWithAppIdItem | List of hosts (instance ID form) to remove, up to 10,000 items |
| TagIDs.N | No | Array of String | Security center tag ID list, up to 100. When Scope=0, it is in an OR relationship with the host. Self-learning allowlist does not support taking effect by tag (a non-empty value will be rejected). |
| TargetAppIDs.N | No | Array of Integer | Target appid |
| DealOldEvents | No | Integer | Whether to add historical alarm data to whitelist |
| Parameter Name | Type | Description |
|---|---|---|
| FailedAppIds | Array of Integer | Failed account |
| 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. |
Modify exception logon custom allowlist (full coverage, no rescan)
POST / HTTP/1.1
Host: csip.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyLoginWhiteCustomEDR
<Common request parameters>
{
"Id": 2,
"Places": [
{
"CountryId": 1,
"ProvinceId": 1,
"CityId": 1
}
],
"Remark": "Remark 3",
"Scope": 0,
"InstanceIDsWithAppId": [
{
"AppId": 260199983,
"InstanceID": "ins-2zltluch"
}
],
"TargetAppIDs": [
260199983
]
}
{
"Response": {
"FailedAppIds": [],
"RequestId": "356104a2-3d15-49aa-baed-106a76dbaf2c"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation | Operation failed. |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| ResourceNotFound | The resource does not exist. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan