A newer release of this product is available.
Name-services NIS endpoint overview
Contributors
Suggest changes
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
This may take a few minutes. Thanks for your patience.
Your file is ready
Overview
NIS servers are used to authenticate user and client computers. NIS domain name and NIS server information is required to configure NIS. It is important to note that this API is used to retrieve and manage NIS server configurations for data SVMs only. NIS configuration for the cluster is managed via /api/security/authentication/cluster/nis .
Retrieving NIS Information
The NIS GET endpoint retrieves all of the NIS configurations for data SVMs.
Examples
Retrieving all fields for all NIS configurations
# The API: /api/name-services/nis # The call: curl -X GET "https://<mgmt-ip>/api/name-services/nis?fields=*" -H "accept: application/hal+json" # The response: { "records": [ { "svm": { "uuid": "179d3c85-7053-11e8-b9b8-005056b41bd1", "name": "vs1", "_links": { "self": { "href": "/api/svm/svms/179d3c85-7053-11e8-b9b8-005056b41bd1" } } }, "domain": "domainA.example.com", "servers": [ "10.10.10.10", "example.com" ], "bound-servers": [ "10.10.10.10" ], "_links": { "self": { "href": "/api/name-services/nis/179d3c85-7053-11e8-b9b8-005056b41bd1" } } }, { "svm": { "uuid": "6a52023b-7066-11e8-b9b8-005056b41bd1", "name": "vs2", "_links": { "self": { "href": "/api/svm/svms/6a52023b-7066-11e8-b9b8-005056b41bd1" } } }, "domain": "domainB.example.com", "servers": [ "2.2.2.2", "3.3.3.3", "4.4.4.4" ], "bound-servers": [], "_links": { "self": { "href": "/api/name-services/nis/6a52023b-7066-11e8-b9b8-005056b41bd1" } } } ], "num_records": 2, "_links": { "self": { "href": "/api/name-services/nis?fields=*" } } }
Retrieving all NIS configurations whose bound servers start with 10
# The API: /api/name-services/nis # The call: curl -X GET "https://<mgmt-ip/api/name-services/nis?bound_servers=10*" -H "accept: application/hal+json" # The response: { "records": [ { "svm": { "uuid": "179d3c85-7053-11e8-b9b8-005056b41bd1", "name": "vs1", "_links": { "self": { "href": "/api/svm/svms/179d3c85-7053-11e8-b9b8-005056b41bd1" } } }, "bound-servers": [ "10.10.10.10" ], "_links": { "self": { "href": "/api/name-services/nis/6a52023b-7066-11e8-b9b8-005056b41bd1" } } } ], "num_records": 1, "_links": { "self": { "href": "/api/name-services/nis?bound_servers=10*" } } }
Retrieving the NIS configuration of a specific SVM
# The API: /api/name-services/nis/{svm.uuid} # The call: curl -X GET "https://<mgmt-ip>/api/name-services/nis/179d3c85-7053-11e8-b9b8-005056b41bd1" -H "accept: application/hal+json" # The response: { "svm": { "uuid": "179d3c85-7053-11e8-b9b8-005056b41bd1", "name": "vs1" }, "domain": "domainA.example.com", "servers": [ "10.10.10.10", "example.com" ], "bound_servers": [ "10.10.10.10" ] }
Creating a NIS configuration
The NIS POST endpoint creates a NIS configuration for the specified SVM.
Example
The following example shows a POST operation:
# The API: /api/name-services/nis # The call: curl -X POST "https://<mgmt-ip>/api/name-services/nis" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"svm\": { \"uuid\": \"179d3c85-7053-11e8-b9b8-005056b41bd1\" }, \"domain\": \"domainA.example.com\", \"servers\": [ \"10.10.10.10\",\"example.com\" ]}"
Updating the NIS configuration
The NIS PATCH endpoint updates the NIS configuration for the specified NIS server.
Examples
Updating the domain
# The API: /api/name-services/nis/{svm.uuid} # The call: curl -X PATCH "https://<mgmt-ip>/api/name-services/nis/179d3c85-7053-11e8-b9b8-005056b41bd1" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"domain\": \"domainC.example.com\", \"servers\": [ \"13.13.13.13\" ]}"
Updating the server
# The API: /api/name-services/nis/{svm.uuid} # The call: curl -X PATCH "https://<mgmt-ip>/api/name-services/nis/179d3c85-7053-11e8-b9b8-005056b41bd1" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"servers\": [ \"14.14.14.14\" ]}"
Deleting a NIS configuration
The NIS DELETE endpoint deletes the NIS configuration for the specified SVM.
Example
The following example shows a DELETE operation:
# The API: /api/name-services/nis/{svm.uuid} # The call: curl -X DELETE "https://<mgmt-ip>/api/name-services/nis/179d3c85-7053-11e8-b9b8-005056b41bd1" -H "accept: application/hal+json"