Hi Everyone,
I just want to run the automation using orchestrator API only on ideal execution target. Suppose I have 2 machine connected. I want that with the help of api we can get status of any machine if any one of the machine is ideal. Then automation should run there.
Thanks,
Hi @Codeverse ,
you can use the GET /machines endpoint to retrieve a list of machines and current status, then filter the list to find the machine with ideal status. you can use the POST /executions endpoint to run the automation on that machine.
Thanks,
@RajKumar_DC Thanks for information.
I tried get machine end point without passing parameter it is giving all available machine. Could you please tell me about which key need to use for identifying status of machine.
This is the response I’m getting while hitting get machine end point.
{
"@odata.type": "#UiPath.Server.Configuration.OData.ExtendedMachineDto",
"ServerlessLicensingModel": null,
"LicenseKey": "*",
"Name": "Random",
"Description": "Unattended Machine",
"Type": "Standard",
"Scope": "Default",
"NonProductionSlots": 0,
"UnattendedSlots": 1,
"HeadlessSlots": 0,
"TestAutomationSlots": 0,
"AutomationCloudSlots": 0,
"AutomationCloudTestAutomationSlots": 0,
"Key": "*",
"EndpointDetectionStatus": "NotAvailable",
"AutomationType": "Any",
"TargetFramework": "Any",
"ClientSecret": null,
"Id": *,
"RobotVersions": [
{
"Count": 1,
"Version": "*"
}
],
"RobotUsers": [],
"UpdatePolicy": null,
"Tags": [],
"MaintenanceWindow": null,
"VpnSettings": null
},
Hi @Codeverse ,
"EndpointDetectionStatus": "NotAvailable"
Other possible values are:
Available
NotAvailable
Initializing
Busy
Offline
Thanks,
Hi @RajKumar_DC
I got it, but little unsure about why it is showing not available even after machine is available or ideal.
Please help me out.
Thanks
Hi @Codeverse ,
please share the Orchestrator version details
Thanks,