Block all api calls

Issue

  • Block all api calls

Environment

  • CloudBees Jenkins Enterprise
  • CloudBees Jenkins Operations Center

Resolution

Install the CloudBees Request Filter Plugin and add the following rule in Manage Jenkins > Configure System:

.*\/api\/(python|json|xml)

If you would like to block all api requests (including those which use tree and depth, then you would use the following:

.*\/api\/(python|json|xml).*
Have more questions? Submit a request

1 Comments

  • 0
    Avatar
    Ryan Campbell

    Note that this will only block API calls which don't pass a parameter, such as the tree parameter.

Please sign in to leave a comment.