Hi,
I am trying to fetch the logs from the Orchestrator.
For fetching the token I am using this api:- orchestratorip/identity/connect/token, with the payload having these scopes:- OR.Folders OR.Robots OR.Robots.Read OR.Robots.Write OR.Machines OR.Execution OR.Assets OR.Jobs OR.Queues OR.Jobs.Write
next I am using the token to fetch the JobKey through this api :-orchestratorip/odata/Jobs?$filter=Id eq executionId&OrganizationUnitId=1&$orderby=StartTime%20desc
and I am getting this response:-
{
“@odata.context”: “orchestratorip/odata/$metadata#Jobs”,
“@odata.count”: 0,
“value”:
}
When I am trying to fetch the logs using this api:-orchestratorip/odata/RobotLogs?$filter=JobKey
I am getting You are not authorized error.
What scope do I have to add to get the right token for fetching these RobotLogs?
Can anyone help?