To retrieve details of a data node user, send the following request:
GET https://<IA_director_node_IP_address>/config/v1/users/<data_node_IP_address>/<user>
Required header:
--user <username>:<password>
Options
IA_director_node_IP_address—IP address of the director node NDR appliance 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)—IP address of an NDR data node appliance.user(path parameter)—The username of a user whose details you need to retrieve.
Example
GET https://xxx.xxx.xxx.xxx/config/v1/users/yyy.yyy.yyy.yyy/jdoe
Required header:
--user npadmin:hammerhead
Data node user details: Response
HTTP/1.1 [Response Code] [Response Message] Date: [Date] Content-Type: [Content Type] username: [User Name] name: [Full Name] groups: [Groups] remote: [Remote Status]
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.
User Name—The username of the user whose details you retrieved.
Full Name—The full name of the user whose details you retrieved.
Groups—Groups of NDR appliance users that include the specified user.
Remote Status—Specifies whether a user is a remote-user (Y) or a non-remote user (N).
Example
HTTP/1.1 200 OK
Date: Tue, 24 Jan 2017 18:58:06 GMT
Content-Type: application/json; charset=utf-8
{
"username": "jdoe",
"name": "Jane Doe",
"groups": [
"wheel",
"klish",
"uiapi"
],
"remote": "Y"
}cURL code sample: Data node user details
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/jdoe -X GET
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. Replacehammerheadwith the corresponding administrator password for the director node.https://xxx.xxx.xxx.xxx/config/v1/users/yyy.yyy.yyy.yyy/jdoe—Replacexxx.xxx.xxx.xxxwith the IP address of the director node. Replaceyyy.yyy.yyy.yyywith the IP address of a data node whose details you wish to retrieve. Replacejdoewith the user name of the user whose details you wish to retrieve.-X GET—This option specifies using the GET method.
Results
This example returns details about the specified data node user. The output is in JSON format.