Domain name for API request: csip.intl.tencentcloudapi.com.
Modify the network attack detection switch and asset scope configuration.
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: ModifyNetAttackSetting. |
| Version | Yes | String | Common Params. The value used for this API: 2022-11-21. |
| Region | No | String | Common Params. This parameter is not required. |
| NetAttackEnable | Yes | Integer | 0: disable network attack detection; 1: enable network attack detection |
| MemberId.N | No | Array of String | Group account member id |
| NetAttackAlarmStatus | No | Integer | 0: new warning events pending processing by default; 1: new warning events processed by default; 3: new warning events ignored by default |
| AutoInclude | No | Integer | Automatic inclusion of new assets: 0 means not included, and 1 means included |
| CWPScope | No | Integer | Host range: 0 - specify 1 - all 2 - Pro Edition 3 - Flagship Edition 4 - Pro + Flagship |
| InstanceIDsWithAppId.N | No | Array of InstanceIDWithAppIdItem | Specify the host list (used when CWPScope=0) |
| ExcludeInstanceIDsWithAppId.N | No | Array of InstanceIDWithAppIdItem | Host exclusion list |
| TagIDs.N | No | Array of String | Tag ID list |
| TCSSScope | No | Integer | Container scope: 0-within specified clusters 1-all clusters |
| ClusterIDsWithAppId.N | No | Array of ClusterIDWithAppIdItem | Specify the cluster list (used when TCSSScope=0) |
| ExcludeClusterIDsWithAppId.N | No | Array of ClusterIDWithAppIdItem | Cluster exclusion list |
| 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. |
POST / HTTP/1.1
Host: csip.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyNetAttackSetting
<Common request parameters>
{
"NetAttackEnable": 1,
"MemberId": [
"mem-tencent-b624e485fee5fe29"
],
"NetAttackAlarmStatus": 1,
"AutoInclude": 1,
"CWPScope": 0,
"TagIDs": [
"1"
],
"TCSSScope": 0
}
{
"Response": {
"RequestId": "bc888f22-c7c8-4fa5-9e17-2e989c2b0416"
}
}
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. |
| InvalidParameterValue | Parameter value error. |
| MissingParameter | Parameters are missing. |
| OperationDenied | Operation denied. |
| ResourceNotFound | The resource does not exist. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback