Introducing SOC Insights for BloxOne Threat Defense: Boost your SOC efficiency with AI-driven insights to eliminate manual work and accelerate investigation and response times. Read the blog announcement here.

API Examples

Reply

Rest API to delete a host record

New Member
Posts: 1
5395     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: 181
5395     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

Authority
Posts: 14
5395     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 
Did you mean: 

Recommended for You