- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
schedule a task using WAPI like new record: host
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-11-2019 02:21 AM - edited 06-11-2019 03:01 AM
curl -k1 -u admin:infoblox -X POST 'https://192.168.1.2/wapi/v2.8/record:host?_schedinfo.scheduled_time=1560175175' -H "Content-Type: application/json" -d '{ "name": "host001.example.org", "comment": "This is a comment for Host 001", "ipv4addrs": [{"configure_for_dhcp": false,"ipv4addr": "10.20.30.209"}], "view": "Internal",
"extattrs":{"2:Geraeteart":{"value":"PC"}} }'
Thanks to Mrichard for the Skript. I have tried executing the code, it was successful. But I would like to ask :
1.Why the approve and reject option are disabled
2.When I go to Administration->workflows-> view ,Why I dont see the edit options and values entered for the EA ?
How we could enable the edit option?
thanks
Solved! Go to Solution.
Re: schedule a task using WAPI like new record: host
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-11-2019 05:47 AM
Approvals and rejections are part of a workflow, not a scheduled task. A scheduled task could be created from a workflow but they are different things.
Re: schedule a task using WAPI like new record: host
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-11-2019 07:05 AM
Thanks for the reply.
Hence the scheduled task are not editable ie. their host names and IP addresses are not changable?
only option would be "execute now"?(I mean we havent configured approval workflow groups as of now)