azure-devops-cli-extension icon indicating copy to clipboard operation
azure-devops-cli-extension copied to clipboard

[Feature Request] Missing documentation for `az devops invoke`

Open davidmarekmsft opened this issue 9 months ago • 0 comments

Is your feature request related to a problem? Please describe. It's impossible to figure out the name of a resource for az devops invoke, there's no documentation and no way how to figure out the name from the rest api documentation.

Describe the solution you'd like There should be a way how to figure out the correct area and resource for each REST api call.

Additional context

I wanted to use the az devops invoke command to get a list of leases for a build: https://learn.microsoft.com/en-us/rest/api/azure/devops/build/builds/get-retention-leases-for-build?view=azure-devops-rest-7.1

I tried to use --resource leases, but that failed. The correct resource is buildleases, I haven't found this documented anywhere, I had to modify the invoke.py source code to find the full list of all resource location.

davidmarekmsft avatar Mar 07 '25 13:03 davidmarekmsft