API v2: Authentication¶
To access Fudo Enterprise data structures via the API interface, you need a user object defined in the local database with the API Key authentication method specified. To obtain the API Key, please follow below steps in the Fudo Enterprise Admin Panel:
- Create new user or edit existing admin user definition.
- Specify the API Key authentication method for this user.
- Generate the API Key value, copy it, and archive it for future API requests.
Note
The API Key cannot be retrieved after saving this authentication method.
For more detailed information, please refer to the Users section of the Fudo Enterprise Documentation.
How To Authenticate Using an API Key¶
For successful authentication, include the key Authorization
with the generated API Key value in the Headers of your API requests.
Example request
curl -k -X GET -H "Authorization:KEDV0gernOHGpiOmAksvegNDFVWihUy9vknnqCoYDU6X5fiaOmvLU9237LuEjFsc" https://10.0.0.0/api/v2/user
Access Rights Restrictions¶
The same access rights restrictions apply to the API interface as in case of Administration Panel access. Outlined in the table below are the access rights specified for each of the roles available in Fudo Enterprise.
Role | Access rights |
---|---|
user |
|
service |
|
operator |
|
admin |
|
superadmin |
|