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 Remove schedule delete or change the date for schedule delete

New Member
Posts: 3
918     0

Hello,

How to remove schedule delete or change the schedule date for schedule delete for Network and IP address using Infoblox API?

 

BR,

Ashok

Re: How to Remove schedule delete or change the date for schedule delete

[ Edited ]
New Member
Posts: 3
919     0

Hello,

Any solution available in Infoblox api for this functionality?

Re: How to Remove schedule delete or change the date for schedule delete

Moderator
Moderator
Posts: 287
919     0

First get the _ref for the scheduled task:

 

curl -k -u admin:infoblox -X GET 'https://192.168.1.2/wapi/v2.12/scheduledtask'

returns something like this:

[
    {
        "_ref": "scheduledtask/b25lLnF1ZXVlZF90YXNrJDIwNS4w:205/PENDING", 
        "approval_status": "PENDING", 
        "execution_status": "PENDING", 
        "task_id": 205
    }
]


To delete it, just perform a DELETE call on the _ref:

curl -k1 -u admin:infoblox -X DELETE 'https://192.168.1.2/wapi/v2.12/scheduledtask/scheduledtask/b25lLnF1ZXVlZF90YXNrJDIwNS4w:205/PENDING'



To approve and schedule a task, update the approval status and timestamp:

curl -k1 -u admin:infoblox -X PUT 'https://192.168.1.2/wapi/v2.12/scheduledtask/b25lLnF1ZXVlZF90YXNrJDIwNS4w:205/PENDING' \
-H "Content-Type: application/json" -d \
'{
	"approval_status": "APPROVED",
	"scheduled_time": 1682536621
}'
Showing results for 
Search instead for 
Did you mean: 

Recommended for You