- Silver, 250 points or more
I am currently playing around with firepower rest api on FMC 6.1 and I am looking for a method to get domain name to domain id mapping. Since the specific domain id must be used in the URL to consume the api I would like to get the ID by name.
Please let me know if there is a way to do this atm. Since the api-explorer provides a dropdown to select the correct domain I think this should be possible.
I did get some more insight that may be helpful:
When you retrieve the token, the domains uuids for which the user is authorized are sent in the HTTP header along with the tokens.
When you run a post to the following URI:
using your API credentials (username and password), the return headers will include DOMAIN details. The example below has the domain highlighted. As Kirti said this is the domain the user is authorized to login to so it can be used to quickly and easily identify which domain you are making calls to.
Cache-Control →no-cache, no-store, must-revalidate, max-age=0
Date →Fri, 28 Oct 2016 12:45:42 GMT
Keep-Alive →timeout=5, max=100