Forum Discussion
Mel_339767
Nov 09, 2017Nimbostratus
What kind of account do I need to access the REST API?
I'm having issues in accessing the API, I think.
I got Error 401 whenever I use my credentials that I believe has admin privileges already. Is there a way to access the API without using the "admin" ...
Cory_Blankenshi
Nov 17, 2017Altostratus
After your credentials are adjusted so that you can access the API, I would take a look at either the f5-sdk or iCR APIs. Both have the REST API under the hood, but making requests to the f5 and getting back data is pretty easy.
Here's some sample code using the iCR API:
!/usr/bin/env python
from iCR import iCR
import json
f5 = iCR.iCR('my.f5.com', 'userID', 'password')
result = f5.get('your/endpoint')
print json.dumps(result, indent=4, sort_keys=True) pretty print the json output
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects