Infoblox Exchange Cybersecurity Roadshow 2020 – Join us!
North America | Europe | Middle East/Africa | Asia-Pacific

API Examples

Reply

Rest API to delete a host record

goeladit
Techie
Posts: 3
1021     0

Hi I have a requirement to delete a host record. To accomplish that I have to first get the object reference for the host name object and then pass it in delete. But when I try to run the below URL in postman(In postman to test my string) but getting a blank value as a result set.

 

Get Call-->

url/wapi/v2.7/record:host?name=corpnet.local.deletehost7error.jpg

Re: Rest API to delete a host record

Adviser
Posts: 111
1022     0

Hi,

 

Can you paste the error message here? The image is not displayed.

 

Also check if the record you are looking for is in the default network view. If not, pass that value to the API.

 

Thanks and Regards,

Krishna

 

Re: Rest API to delete a host record

[ Edited ]
akiliok
Techie
Posts: 2
1022     0

require "rubygems" require "rest_client" require "json" require "uri" fqdn = ARGV[0] || raise("Must define a fqdn") start = Time.now dhcp_server ="http://192.168.100.254:4567" tftp_server_ip = "192.168.100.254" tftp_server="http://#{tftp_server_ip}:9393" dns_server = tftp_server foreman_url ="http://puppet:3000" foreman_user = "admin" foreman_pass = "changeme" @foreman = RestClient::Resource.new foreman_url,{ :user => foreman_user, Smiley Tongueassword => foreman_pass, :headers => { :accept => :json, :content_type => :json }}

 

Sarkari Result Pnr Status 192.168.1.1

 

Re: Rest API to delete a host record

Authority
Posts: 18
1022     0

Hi, check for correct WAPI version (2.7 is the default version from the postman)

 

I tried this way :

 

GET --> CALL

 

url/wapi/v2.6.1/record:host?name~=74625 

 

You get the object reference :

 

DELETE -->call

 

URL/wapi/v2.6.1/Object referece

 

Hope it helps

Showing results for 
Search instead for 
Do you mean 

Recommended for You

Demo: Infoblox IPAM plug-in integration with OpenStack Newton