Domain name for API request: cwp.tencentcloudapi.com.
This API is used to obtain the list of high-risk command policies.
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: DescribeBashPolicies. |
Version | Yes | String | Common Params. The value used for this API: 2018-02-28. |
Region | No | String | Common Params. This parameter is not required. |
Limit | No | Integer | Quantity of returned entries. The maximum value is 100. |
Offset | No | Integer | Offset. Default value: 0. |
Filters.N | No | Array of Filter | Filtering criteria |
Parameter Name | Type | Description |
---|---|---|
List | Array of BashPolicy | List content |
TotalCount | Integer | Total number of entries |
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: cwp.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeBashPolicies
<Common request parameters>
{
"Limit": "10",
"Offset": "0"
}
{
"Response": {
"List": [
{
"Name": "Allowlist 1",
"Enable": 1,
"White": 0,
"BashAction": 2,
"Rule": "curl www.qq.com",
"Level": 2,
"Scope": 2,
"Id": 10004,
"Descript": "message \"Allowlist 1\" not found in language \"zh-CN\"",
"EventId": 0,
"CreateTime": "2022-08-19 15:57:45",
"ModifyTime": "2022-08-30 23:54:43",
"Uuids": [],
"DealOldEvents": 0,
"Quuids": [
""
],
"Category": 1
},
{
"Name": "Interception rule 1",
"Enable": 1,
"White": 0,
"BashAction": 2,
"Rule": "curl www.test0527.com",
"Level": 1,
"Scope": 2,
"Id": 10005,
"Descript": "message \"Interception rule 1\" not found in language \"zh-CN\"",
"EventId": 0,
"CreateTime": "2022-08-23 20:28:02",
"ModifyTime": "2022-08-23 20:28:02",
"Uuids": [],
"DealOldEvents": 0,
"Quuids": [
""
],
"Category": 1
}
],
"RequestId": "f3fe3ac0-099b-4afc-b383-fbf58e8c385a",
"TotalCount": 2
}
}
POST / HTTP/1.1
Host: cwp.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeBashPolicies
<Common request parameters>
{
"Limit": "10",
"Offset": "0"
}
{
"Response": {
"List": [
{
"Name": "Allowlist 1",
"Enable": 1,
"White": 0,
"BashAction": 2,
"Rule": "curl www.qq.com",
"Level": 2,
"Scope": 2,
"Id": 10004,
"Descript": "Allowlist 1",
"EventId": 0,
"CreateTime": "2022-08-19 15:57:45",
"ModifyTime": "2022-08-30 23:54:43",
"Uuids": [],
"DealOldEvents": 0,
"Quuids": [
""
],
"Category": 1
},
{
"Name": "Interception rule 1",
"Enable": 1,
"White": 0,
"BashAction": 2,
"Rule": "curl www.test0527.com",
"Level": 1,
"Scope": 2,
"Id": 10005,
"EventId": 0,
"CreateTime": "2022-08-23 20:28:02",
"ModifyTime": "2022-08-23 20:28:02",
"Uuids": [],
"DealOldEvents": 0,
"Quuids": [
""
],
"Category": 1
}
],
"RequestId": "ab327fc0-3d09-4129-ae1b-7fb7d61a0c01",
"TotalCount": 2
}
}
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 | Incorrect parameter. |
InvalidParameter.IllegalRequest | Invalid request. |
InvalidParameter.InvalidFormat | Incorrect parameter format. |
InvalidParameter.MissingParameter | Missing parameter. |
InvalidParameter.ParsingError | Incorrect parameter parsing. |
InvalidParameterValue | Invalid parameter value. |
MissingParameter | Missing parameter error. |
ResourceNotFound | The resource does not exist. |
本页内容是否解决了您的问题?