I’ve been trying to figure out a way to get the description on SonarQube for a portfolio/project for the URL https://{host}/project/admin/extension/governance/console?id={project}&qualifier=VW. I need the description for a cleanup effort where we document what the account maps to what resources, and my plan was to put a JSON in the description I can parse and use. I’ve done this on other tools, but I can’t seem to figure this one out for the life of me.
So far, I have the script setup to pull a list of the portfolios and I pass that name to the URL as the project, but I get stuck on a loading screen when I try to CURL it. I’ve tried passing it my token as part of the header, but it always shows up as the loading screen. I tried using different python libraries to wait for the page to load, but it never goes past it.
I’m not sure if there is some command I am missing, or some logic anyone might be able to recommend that help. I appreciate any help/input anyone has!
Here is my code, I’ve tried swapping in api into the URL in a couple different places to see if that works, but I’m still just hitting the loading screen. I use both requests and SonarQubeClient since I was hoping to figure out which one lets me get the info I need, and then just use that after some refactoring.
Where would I look at to see if it is a bad request or hitting a firewall or proxy? For future reference for when I’m asked to automate more of the features
BTW - Sorry the code is a little messy, I’ve been hitting my head against the wall trying to figure out what I am just not seeing
Glad you figured it out; I was about to come back on this thread and point out that your URL looked more like one of our internal UI URL references than a proper API call.