Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

API & Integration

Reply
Highlighted
Accepted Solution

Query for bulk Host via WEB-API

Techie
Posts: 7
2029     0

Should be a simple one, I'm doing well with the WAPI interface with pulling networks, networkobjects, host:records and DNS zones. I can create, get info, update, delete without problem. I have a pretty good grasp of the interface. I'm unable to query for bulkhost objects. I am looking to pull a list of all bulkhost objects defined on the system.  Simple example if I enter into web browser:

https://myserver/wapi/v2.2.2/bulkhost?_return_type=json-pretty

Response is:

{ "Error": "AdmConProtoError: Illegal object type (bulkhost)", 
  "code": "Client.Ibap.Proto", 
  "text": "Illegal object type (bulkhost)"
}

Is there a limitation on getting bulkhost object through wapi? Hopefully I'm missing something simple.

 

 

Highlighted

Re: Query for bulk Host via WEB-API

Moderator
Moderator
Posts: 87
2029     0

The bulkhost object was introduced in WAPI 2.3 (NIOS 7.3) so it will not be available in the WAPI v2.2.2 that you're using.

Highlighted

Re: Query for bulk Host via WEB-API

Techie
Posts: 7
2029     0

Nice was simple, somehow copied and went forward with old links, changed wapi to up to date version 2.6.1 and its working, Thank you for help! 

Showing results for 
Search instead for 
Do you mean 

Recommended for You