This URL updates the Tacacs configuration.
Resource URL
PUT sensor/<sensor_id>/remoteaccess/tacacs
Request Parameters
URL Request Parameters:
| Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| sensor_id | Sensor id | Number | Yes |
Payload parameters
| Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| inheritSettings | Inherit settings from domain | Boolean | Yes |
| enableTACACS | Enable Tacacs | Boolean | Yes |
| tacacsServerIP1 | Tacacs server IP 1 | String | No |
| tacacsServerIP2 | Tacacs server IP 2 | String | No |
| tacacsServerIP3 | Tacacs server IP 3 | String | No |
| tacacsServerIP4 | Tacacs server IP 4 | String | No |
| enableEncryption | Enable encryption | Boolean | Yes |
| encryptionKey | Encryption key | String | No |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
| Field Name | Description | Data Type |
|---|---|---|
| status | Set to 1 if the operation was successful | Number |
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/remoteaccess/tacacs
{
“inheritSettings”:false,
"enableTACACS":true, "tacacsServerIP1":"1.1.1.1",
"tacacsServerIP2":"1.1.1.2",
"tacacsServerIP3":"1.1.1.3",
"tacacsServerIP4":"1.1.1.4", "enableEncryption":true, "encryptionKey":"abc"
}
Response
{
{
"status":1
}
Error Information
Following error codes are returned by this URL:
| No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
| 1 | 500 | 1001 | Invalid error |
| 2 | 404 | 1106 | Invalid Sensor |
| 3 | 400 | 1125 | The Sensor is inactive |
| 4 | 400 | 4713 | Invalid IP address |