Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API Examples

Reply

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

Member
Posts: 3
474     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 ]
Member
Posts: 3
475     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: 246
475     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