I trying to automate a few things in regards to deployment of hosts that has a parrent relationship.
Background
I have 320+ locations connected to our network through a router. That router is the parent for that given location.
On the location i have from zero to 10+ hosts that i monitor, in at least to diffent ip subnets.
When i deploy or refresh the location i would like to add a dependency rule in Director through the API.
Is it possible at the moment?
I have tried using the /director/dependency/ url with and without add and add?type=apply and the director/dependencies/ url.
But I am getting a internal server error (500) each time and i just add one new apply rules.
I have also tried to fetch the current apply-rule configuration, converting it to json and adding my new dependency-rule to the object, and POST / PUT but i get the http 500 error.
I am creating the hosts through the API already, so that works fine.
Is it possible to create new dependency rules through Director API?
If yes how do is it done?