This URL updates the CLI auditing configuration at the Sensor level.
Resource URL
PUT /sensor/<sensorId>/cliauditing
Request Parameters
URL Parameter
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Sensor id | Number | Yes |
Payload Request Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Inherit settings from parent domain | Boolean | Yes |
| Enable CLI auditing | Boolean | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Set to 1 if the operation was successful | Number |
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/cliauditing
Payload
{
"inheritSettings": false,
"enable": true
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1106 | Invalid Sensor |
2 | 400 | 1124 | The Sensor is inactive |
3 | 500 | 1001 | Internal server error |