THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

Create a postman collection of example REST api calls

New Member
Posts: 4
10334     0

I am going to go out on a limb and assume that everybody here is already aware of the tool Postman.  I was thinking that it would be really helpful if a postman collection full of example and REST api examples was available for users to download from downloads.  Or even in this community board.  Just my two cents.

Re: Create a postman collection of example REST api calls

Adviser
Posts: 181
10334     0

Hi,

 

This is already available: https://blogs.infoblox.com/community/getting-started-with-wapis-using-postman/

 

Let me know if any new examples need to be added.

 

Regards,

Krishna Vasudevan

Re: Create a postman collection of example REST api calls

New Member
Posts: 1
10334     0

Deletion of a DHCP lease would be great. It would be nice to have in the docs as well, but the API collection has been terrific! 

Are there any sandboxes available for the general public?

Re: Create a postman collection of example REST api calls

Superuser
Posts: 115
10334     0

Learning Mock Server in Postman and see if that can build a sandbox.

I know or Product Management team is working on that for us Smiley Happy

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh

https://sifbaksh.com

Re: Create a postman collection of example REST api calls

Techie
Posts: 12
10334     0

I would like a better understanding of Structs vs. Objects so having examples using Structs would be great.  Specifically, pulling NTP (Grid & Member) data would be very helpful.

Re: Create a postman collection of example REST api calls

Adviser
Posts: 181
10334     0

Hi,

 

You can get the NTP setting at the grid level using the following API:

curl -k -u uname:pwd "https://grid-master/wapi/v2.11/grid?_return_fields%2B=ntp_setting"

For the member NTP settings, you can use the below API:

curl -k -u uname:pwd "https://grid-master/wapi/v2.11/member?_return_fields%2B=ntp_setting"

Objects are the API endpoints and Structs are the format of the parameters that are returned, when not a string/int.

 

Hope this helps,

Krishna Vasudevan

Re: Create a postman collection of example REST api calls

Techie
Posts: 12
10334     0

Hello Krishna,

Thank you for your quick reply.  That worked!

My follow up (and more important) question is as follows:

From the WAPI Documentation (linked from the Grid), how would one be able to come up with your answer?

I see this:  

Said differently, if there is a particular syntax I could follow, I could figure out other things on my own (you would be teaching me how to fish).

 

I had to figure out logging categories on my own

NOTE:  The WAPI Documentation needs to change loggingcategories to logging_categories

 

I came up with this: 

https://{{grid_master}}/wapi/v2.10.5/member:dns?_return_fields%2b=logging_categories

 

When I compare the syntax of the GET for logging_categories and NTP, they don't follow a specific pattern which makes it difficult to use the API.

Re: Create a postman collection of example REST api calls

[ Edited ]
Moderator
Moderator
Posts: 315
10334     0

Note that logging_categories is a field, and loggingcategories is a structure.

 

You can ask for the schema of an oject, and all the available fields will be returned.

 

For example:

 

https://{{grid_master}}/wapi/v2.10.5/member:dns?_schema

will return all the available fields for the Member :: DNS object:

 

...
        {
            "is_array": false, 
            "name": "logging_categories", 
            "overridden_by": "use_logging_categories", 
            "standard_field": false, 
            "supports": "rwu", 
            "type": [
                "grid:loggingcategories"
            ]
        }, 
...

Note that loggingcategories is a structure.

 

Think of an object is a "thing", such as a DNS record, a member (appliance), or a member's DNS properties.

 

Think of a field as a setting, such as a hostname, an IP address or a more complex setting ( a structure).

 

Many field types are a simple string.  Some field types are a complex structure containing several strings, integers, boolean variables, or object references.

 

 

 

 

Re: Create a postman collection of example REST api calls

New Member
Posts: 5
10334     0

Hi  Krishna, 

 

Could you  please give few examples to  update RPZ rulesets using postman? 

 

Aneesh 

HCL 

Re: Create a postman collection of example REST api calls

Adviser
Posts: 181
10334     0

Hi Aneesh,

 

Some of the RPZ use cases are covered in this document (page 38). Let me know if you are looking for anything specific - I can share the API calls with you.

 

Regards,

Krishna

Re: Create a postman collection of example REST api calls

New Member
Posts: 5
10335     0

Hi  Kavitha, 

 

The current senario is we were  unable to  generate new reports and unable to  download the result for the inbuilt reports. 

 

we can  only log in to  the reporting server using postman. 

 

could you  pleaSe help me with  the latest API calls for generating a report on the dashboard ,or to  download a report from the dashboard. 

 

Regards,

Aneesh 

Re: Create a postman collection of example REST api calls

New Member
Posts: 5
10335     0

Hi  Team, 

 

Any  update on my previous question?

 

Regards,

Aneesh R. 


@Aneesh-R wrote:

Hi  Kavitha, 

 

The current senario is we were  unable to  generate new reports and unable to  download the result for the inbuilt reports. 

 

we can  only log in to  the reporting server using postman. 

 

could you  pleaSe help me with  the latest API calls for generating a report on the dashboard ,or to  download a report from the dashboard. 

 

Regards,

Aneesh 


 

Re: Create a postman collection of example REST api calls

New Member
Posts: 5
10335     0

Hi  Kavita, 

 

Any updates on this,  we tried following the document :- https://blogs.infoblox.com/community/getting-started-with-wapis-using-postman/.  We can  only login to  the Infoblox reporting applinace.  we were unable to fetch any reports from the reporting server or create any  reports using the postman or any  other means of API.  

 

Could you  please share us with  the latest documentation we are on NIOS 8.5.2. 

 

Regards,

Aneesh R.

Re: Create a postman collection of example REST api calls

New Member
Posts: 5
10335     0

Hi  Kavita, 

 

Any updates on this,  we tried following the document :- https://blogs.infoblox.com/community/getting-started-with-wapis-using-postman/.  We can  only login to  the Infoblox reporting applinace.  we were unable to fetch any reports from the reporting server or create any  reports using the postman or any  other means of API.  

 

Could you  please share us with  the latest documentation we are on NIOS 8.5.2. we are stuck  with this for our dashboard creation in solarwinds. 

 

 

Regards,

Aneesh R.

Re: Create a postman collection of example REST api calls

New Member
Posts: 1
10335     0

Hello Krishna,

thank you for your helpful work, I try to import the environment file on Postman Version Postman v10.6.7 and is fail. Could you help me?

 

THX and Kind Regards

Valentin

Showing results for 
Search instead for 
Did you mean: 

Recommended for You