- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to Remove schedule delete or change the date for schedule delete
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 05:47 AM
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 ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 12:34 AM - edited 04-25-2023 12:36 AM
Hello,
Any solution available in Infoblox api for this functionality?
Re: How to Remove schedule delete or change the date for schedule delete
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2023 12:18 PM
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 }'