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

How to schedule a Delete of a record:host via the (W)API ?

New Member
Posts: 2
4528     1

Hi,

 

Is it possible to delete a record:host on a scheduled date via the (W)API?

 

I know it is possible to schedule the deletion of a record host via the UI, but I am unable to do this via the API. 

 

Currently I am able to:

- Delete a record:host directly with /DELETE /wapi/v2.0/record:host/

- See a list of scheduled tasks with /GET /wapi/v2.0/scheduledtask/

 

It seems that there is not attribute which I can add to the delete call to do the deletion on a certain date and the API doesn't allow me to create a new scheduled task.

 

Is there any other way this is achieveable?

 

Re: How to schedule a Delete of a record:host via the (W)API ?

Authority
Posts: 14
4528     1

Hi,

 

We can do it :

 

Delete a record with Schedule time :

 

DELETE /record:host/ZG5zLmhvc3QkLl9kZWZhdWx0LmRlLnVuaS1tYWdkZWJ1cmcuaW1lZC5hYmluZXAtNzQ2MjU:abinep-74625.alma.uni.com/default?_schedinfo.scheduled_time=1660175175

 

You can give the scheduled_time in the parameter

 

thanks

Re: How to schedule a Delete of a record:host via the (W)API ?

New Member
Posts: 2
4529     1

Works like a charm, thanks!

Showing results for 
Search instead for 
Did you mean: 

Recommended for You