Skip to main content
Skip table of contents

How to trigger a full Bitbucket rescan?

You can schedule re-scan of all data on your Bitbucket with a single REST-call like this:

CODE
curl -u admin -X PUT https://{bitbucket.server}/rest/security/latest/status/total_rescan
  • where admin is your Bitbucket admin user (you’ll be prompted for a password)

  • {bitbucket.server} is URL of your Bitbucket server

You can monitor progress of scanning on the Security Scan Report page.

Please note, that if you have a large Bitbucket instance, all existing branches in all projects and repositories will be scanned, which may be very resource-intensive and may take a long time to complete.

For full documentation of this API, including changing the number of scans run in parallel, see REST API for Mass Scanning.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.