Skip to content

Commit

Permalink
docs(ips): added missing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Jan 15, 2025
1 parent 93e159c commit 3bae560
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions packages/ns-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7892,6 +7892,58 @@ Response example:
}
```
### list-disabled-rules
List all disabled rules:
```bash
api-cli ns.snort list-disabled-rules
```
Response example:
```json
{
"rules": [
{
"gid": "1",
"sid": "24225",
"description": ""
}
]
}
```
### disable-rule
Disable a specific rule:
```bash
api-cli ns.snort disable-rule --data '{"gid": 1, "sid": 24225, "description": "false_positive"}'
```
Response example:
```json
{
"status": "success"
}
```
### enable-rule
Enable a previously disabled rule:
```bash
api-cli ns.snort enable-rule --data '{"gid": 1, "sid": 24225}'
```
Response example:
```json
{
"status": "success"
}
```
## ns.wireguard
Expand Down

0 comments on commit 3bae560

Please sign in to comment.