I am looking for an automated way to add devices to XMC, add them to a site and also perform some post discovery actions.
I was playing with the Connect Services API and found the following REST API call:
This works fine as far as the device is added to XMC and also it is assigned to the site.
But XMC does not perform all the post dicovery actions like “enable stats collection” or “assign to map”. Also the snmp profile which is defined inside the site is not assigned to the device.
Is there any way to automate the metioned tasks within XMC?
Good question and I honestly do not have an answer, but an idea: Maybe you could start a workflow after creating the device that triggers all the required actions. While I have not played around with the Connect API, this seems to be possible with the GraphQL API (see https://xmc.domain.tld:8443/nbi/graphiql/index.html for documentation).
Sorry that I cannot provide more input!