1. Interface Description
Interface request domain name: cwp.api3.convergecloud.com.
This API is used to edit or create Java Webshell allowlist rules.
Default interface request rate limit: 20 times per second.
Interface update time: 0001-01-01 00:00:00.
The interface is both signature verification and authentication.
2. Input Parameters
The following list of request parameters only lists interface request parameters and some public parameters, For a complete list of public parameters see public request parameters.
| Parameter name | Required | Allow NULL | Type | Description |
|---|---|---|---|---|
| Action | Yes | No | String | Public parameter, The value of this interface: ModifyMemShellRules |
| Version | Yes | No | String | Public parameter, The value of this interface: 2018-02-28 |
| Region | No | No | String | Public parameter,Regional information This interface does not need to pass this parameter. |
| AnnotationsRegexp | No | No | String | Based64-encoded annotations (regular expression). If this parameter is left blank, matching is not performed. Example: cmVkaXMuY2Zn |
| ClassNameRegexp | No | No | String | Based64-encoded class name (regular expression). If this parameter is left blank, matching is not performed. Example: LW5vcmcuYXBhY2hlLmNhdGFsaW5hLnN0YXJ0dXAuQm9vdHN0cmFwCg== |
| GroupID | No | No | String | Batch ID. Example: 85c909fe-c87c-11e9-a100-5cb90191ae78 |
| GroupName | No | No | String | Policy name Example: groupname |
| HandleHistory | No | No | Uint64 | Whether to process historical events. 0: no, 1: yes. Example: 1 |
| Id | No | No | Uint64 | Rule auto-increment ID (leave this parameter empty for rule addition). Example: 1302396215 |
| InterfacesRegexp | No | No | String | Based64-encoded names of inherited APIs (regular expression). If this parameter is left blank, matching is not performed. Example: LW5vcmcuYXBhY2hlLmNhdGFsaW5hLnN0YXJ0dXAuQm9vdHN0cmFwCg== |
| IsGlobal | No | No | Uint64 | Whether it is a global rule. (Whether it is effective for all hosts under appid. 0: single UUID, 1: global. The default value is no.) Example: 1 |
| LoaderClassNameRegexp | No | No | String | Based64-encoded class loader name (regular expression). If this parameter is left blank, matching is not performed. Example: LW5vcmcuYXBhY2hlLmNhdGFsaW5hLnN0YXJ0dXAuQm9vdHN0cmFwCg |
| LogicalSymbol | No | No | Uint64 | Logical operator. 0: 5 valid regular expression logical ANDs, 1: logical OR. Example: 0 |
| MemshellListID | No | No | Uint64 | ID of the event, which must be passed in when you add the event to the allowlist. If you create a rule, leave this parameter empty. Example: 12 |
| SuperClassNameRegexp | No | No | String | Based64-encoded parent class name (regular expression). If this parameter is left blank, matching is not performed. Example: LW5vcmcuYXBhY2hlLmNhdGFsaW5hLnN0YXJ0dXAuQm9vdHN0cmFwCg |
| Uuids | No | No | Array of String | Agent IDs. Example: ["0039803a-ca13-40cc-8b39-bd3b103765ec"] |
3. Output Parameters
| Parameter name | Type | Description |
|---|---|---|
| RequestId | String | Unique request id, Each request will return. The RequestId of the request needs to be provided when locating the problem. |
4. Error Code
The following lists only the error codes related to the interface business logic, For other error codes, see public ErrorCode.
| Error Code | Description |
|---|---|
| InternalError | Internal error. |
| MissingParameter | Missing parameter. |
| ResourceNotFound | The resource does not exist. |
| InvalidParameter | Invalid parameter. |
| OperationDenied | Operation denied. |
| InvalidParameterValue | The parameter value is invalid. |