I am trying to access the SQ API to extract the rules for our compliance and audit reports.
With the same credentials I am able to see it through the UI
I am not able to extract C# rules Rules = Invoke-RestMethod -Headers {header} -Uri “${SONARQUBEDOMAIN}/sonar/api/rules/search?languages=csharps” -Method Get;
I am able to get Java rules. Rules = Invoke-RestMethod -Headers {header} -Uri “${SONARQUBEDOMAIN}/sonar/api/rules/search?languages=Java” -Method Get;