GetJob API - How to use in PowerShell

I’m trying to use PowerShell to get all the job info from Orchestrator, but when i type ‘Get-UiPathJob’ in PowerShell, it required me to provide a ID, i don’t know where to find the ID, can someone help to answer?

Actually, i want to get a result that includes last months Job running summary, this summary will include each jobs running time and successful or not.
Please help to provide a way to achieve above. That would be very helpful!!

Depends on how its configured… if you’re using “Secure deployment” this should be a user ID from the Orchestrator… if you’re using an API key, you should use the key to grab a token and make your calls.