To remove a user from a data node, send the following request to its director node:
DELETE https://<IA_director_node_IP_address>/config/v1/users/<data_node_IP_address>/<user>
Note
To use this request, you must belong to the sudo group.
Required header:
--user <username>:<password>
Options
IA_director_node_IP_address—IP address of the director node running the NDR API.
username—Administrator username for the director node.
password—Administrator password for the director node.
Parameters
data_node_IP_address(path parameter)—The IP address of an NDR data node from which you wish to delete a user.user(path parameter)—The user name of an NDR data node user that you want to delete.
Example
DELETE https://xxx.xxx.xxx.xxx/config/v1/users/yyy.yyy.yyy.yyy/jsmith
Required header:
--user npadmin:hammerhead
Remove a data node user: Response
HTTP/1.1 [Response Code] [Response Message] Date: [Date] Content-Type: [Content Type] error:[error message if the delete operation is unsuccessful] httpStatus:[Response Code] success:[Boolean]
Response fields
Response Code—A standard HTTP response code.
Response Message—A standard HTTP response message.
Date—Standard HTML date format.
Content Type—The response format.
Boolean—Status of deletion (true or false)
Example
HTTP/1.1 200 OK
Date: Tue, 24 Jan 2017 21:30:31 GMT
Content-Type: application/json; charset=utf-8
{
"error": "",
"httpStatus":200,
"success": true
}cURL code sample: Remove a data node user
The code sample was run with cURL 7.57.0.
curl -k --user npadmin:hammerhead https:///xxx.xxx.xxx.xxx/config/v1/users/yyy.yyy.yyy.yyy/msmith -X DELETE -X DELETE
This cURL sample includes the following options:
-k—This option explicitly allows cURL to perform insecure SSL connections and transfers, which allows you to test your SSL connection without installing a CA certificate.--user npadmin:hammerhead—Replacenpadminwith the administrator username for the director node. for the director node. Replacehammerheadwith the corresponding administrator password for the director node.https://xxx.xxx.xxx.xxx/config/v1/users/yyy.yyy.yyy.yyy/msmith— Replacexxx.xxx.xxx.xxxwith the IP address of the director node NDR appliance. Replaceyyy.yyy.yyy.yyywith the IP address of a data node NDR appliance from which you want to delete the user. Replacemsmithwith the user name of the user you wish to remove.-X DELETE—This option specifies using the DELETE method.
Results
This example removes the specified data node user. The output is in JSON format.