0

In the Jenkins API it's possible to query for information regarding a specific label (MY_LABEL) by invoking:

https://JENKINS_URL/label/MY_LABEL/api/json?pretty=true

Question: Is there any endpoint that could list ALL the available labels on a Jenkins server?

Niclas
  • 1,306
  • 5
  • 15
  • 28

1 Answers1

0

Found out one way to do it. Interpret the output of JENKINS_URL/computer/api/json?pretty=true

Niclas
  • 1,306
  • 5
  • 15
  • 28