- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Rest API to delete a host record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2019 08:30 AM
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.deletehost7
Re: Rest API to delete a host record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 03:08 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2019 01:47 AM
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