Version 6.7.5 (build 38563)
I have some script code that dynamically creates a SonarQube project with a certain configuration, based on the configuration of an existing project. Up to now, only the quality gate and quality profile were copied over. I now realize that I have to copy the webhook value also.
So, on the page where I set the webhook, I see that it says this is property “sonar.webhooks.project”.
I first got the output from “/api/properties/”. This worked, returning a long list of key/value pairs of existing SonarQube properties. I assume this is a “global” list, not for specific projects.
I then tried getting “/api/properties/sonar.webhooks.project?resource=…”. The best response I could get from this was “” (empty list). I do have the webhook value set in the project id I specified, and it’s been saved there for a while.
I don’t see any way to get all the properties specific to a resource. I tried several logical variations of the “properties” service, and they all ignored the “resource” parameter and just gave me (apparently) all of the global properties.
I hope this isn’t another “can’t do that in your version” issue.