Reply
Accepted Solution

Query for bulk Host via WEB-API

georgeie_vb
Techie
Posts: 7
1715     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.

 

 

Re: Query for bulk Host via WEB-API

Moderator BRampling
Moderator
Posts: 69
1716     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.

Re: Query for bulk Host via WEB-API

georgeie_vb
Techie
Posts: 7
1716     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