Hi Team,
We have created read only user and provided API access to the read only user and were trying to get users list from nagios server using API Key of read only user like below
http://hostname/nagiosxi/api/v1/system/ ... 8QpUFTY5vD
We are getting error and not able to pull data using API Key of read only user and only admin user is able to pull all the data using API Key of admin user
Can some one help me on how to pull data using API key of read only user
Regards,
Mohan
READ ONLY USER WITH API ACCESS
Re: READ ONLY USER WITH API ACCESS
What is the data that this user is not able to access? Please, show us an example command along with the output of it (error messages, etc.). Also, show the security settings of this user.
Admin > Manage Users > <ro user> > Edit
Admin > Manage Users > <ro user> > Edit
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: READ ONLY USER WITH API ACCESS
Hi,
Attached are the screenshots that shows read only user permissions and error screenshot when we try to pull users who are added in nagios using API Key of read only user and third screenshot shows admin user is able to pull same users list.
Attached are the screenshots that shows read only user permissions and error screenshot when we try to pull users who are added in nagios using API Key of read only user and third screenshot shows admin user is able to pull same users list.
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: READ ONLY USER WITH API ACCESS
From the top of the Help page
Help -> REST API Docs -> System Reference
Help -> REST API Docs -> System Reference
The system section of the API allows management of the system, services, and backend. This API section is admin only.
Re: READ ONLY USER WITH API ACCESS
We are trying to pull performance data from nagios using REST API, is there any way that read only user can pull ? As it was mentioned in earlier , only admin can handle API section.
Also can you provide me using admin how we can pull performance data using REST API using custom time period( from a particular date to some other particular date).
Also can you provide me using admin how we can pull performance data using REST API using custom time period( from a particular date to some other particular date).
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: READ ONLY USER WITH API ACCESS
Performance data would be available to that user, that is under Help -> Objects -> objects/rrdexport