ASA REST API Flashcards
1
Q
what does it support
A
- standard HTTP success and error messages
- JSON encoding
- REST calls
2
Q
REST comes natively suppported
A
no, you must install an add-on module
3
Q
is there a software dependency between OS and API
A
no
4
Q
how to enable REST API
A
- software above 9.3(2) or 9.4(1)
- http server enable
- download REST agent
- rest-api image to install
- rest-api agent to start
5
Q
explain required user priviliges pertaining to API
A
- level 3: only GET /api/monitoring calls
- level 5: all GET calls
- level 15: PUT/POST/DELETE operations
6
Q
how does ASA authenticate the admin
A
checks privileges provided by Basic Auth or Token fields
7
Q
where is API documentation located
A
https:///docs
8
Q
what is an alternative to Postman
A
ASA’s native API console
9
Q
what HTTP methods ASA support
A
GET, POST, PUT, PATCH, DELETE
10
Q
which enconding Basic Auth uses
A
base64 encoded string of username:password
11
Q
how to obtain X-Auth-Token
A
API call to /api/tokenservices