Hi Team,
I want to understand if it is possible to get the count of number of services on a particular DMA using automation script.
Also i trying to create a service on specific DMA from automation script, assuming that DMA is in failover then will there be any error while creating the service.
Hi Hari,
You can use the Idms and Idma calls to get the number of services in a cluster or in an agent.
var idms = engine.GetDms();
// services in the cluster
var dmsServices = idms.GetServices();
var nbrOfIdmsServices = dmsServices.Count;// services in a particular agent/DMA
var idma = idms.GetAgent(agentId);
var dmaServices = idma.GetServices();
var nbrOfIdmaServices = dmaServices.Count;// Create a service in the DMA
var dmsServiceId = idma.CreateService(serviceConfiguration);
Thanks for the response. This was quite helpful