- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
base64 encoding and ref_obj values for Postman API collection
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2020 08:50 PM
I look up the https://community.infoblox.com/t5/Community-Blog/Getting-started-with-WAPIs-using-POSTMAN/ba-p/14860.
How can I retrieve the environment variables from Infoblox about "base64_encoding" and "object_reference" values?
Re: base64 encoding and ref_obj values for Postman API collection
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2020 06:07 AM
Hi,
The object_reference is only used for PUT and DELETE queries. It can be obtained by doing a GET request like below. This is example uses the GET Authoritative Zones request from the POSTMAN collection.
{"result": [{"_ref": "zone_auth/ZG5zLnpvbmUkLl9kZWZhdWx0LmNvbS50ZXN0:test.com/default", "fqdn": "test.com", "view": "default" }]}
Base64_encoding is the base64 encoding of your username credentials that you use to access the grid.
If you have a linux machine, you can run a simple base64 encode command to get the string:
# echo <username>:<password> | base64 YWRtaW46aW5mb2Jsb3gK
Hope this is helpful,
Krishna
Re: base64 encoding and ref_obj values for Postman API collection
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2020 04:38 AM
I just tried the Postman Collection example - "Get IPv4 address in a subnet". I used the base64 value to the global environment. But it got the error message "could not get any response".
Re: base64 encoding and ref_obj values for Postman API collection
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2020 05:24 AM
It seems that it is required to turn off ssl certificate verification. In addition, under Authorization Type to enable Basic Auth even though base64 is specified.