Reply

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

New Member
Posts: 3
1531     1

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
1531     1

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: 321
1531     1

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