Reply
Highlighted
Accepted Solution

schedule a task using WAPI like new record: host

[ Edited ]
Authority
Posts: 18
280     0
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

Re: schedule a task using WAPI like new record: host

Adviser
Posts: 99
281     0

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

Authority
Posts: 18
281     0

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)

 

Showing results for 
Search instead for 
Do you mean 

Recommended for You