Services
Services
This page is generated from the SDK and the CLI, so it always matches the code. The parameters and the responses of every method are in the API reference.
V1 API services
Each service is a field of the client, and a command of sonar-cli whose subcommands are its methods.
applications(client.Applications)add-project,create,create-branch,delete,delete-branch,refresh,remove-project,search-all-projects,search-projects,set-tags,show,show-leak,update,update-branchaudit-logs(client.AuditLogs)downloadalm-integrations(client.AlmIntegrations): Manages DevOps platform integrations and project importscheck-pat,get-github-client-id,import-azure-project,import-bitbucket-cloud-repo,import-bitbucket-server-project,import-github-project,import-gitlab-project,list-azure-projects,list-bitbucket-server-projects,list-github-organizations,list-github-repositories,search-azure-repos,search-bitbucket-cloud-repos,search-bitbucket-server-repos,search-gitlab-repos,set-patalm-settings(client.AlmSettings): Manages DevOps platform settings and bindingscount-binding,create-azure,create-bitbucket,create-bitbucket-cloud,create-github,create-github-from-manifest,create-gitlab,delete,delete-binding,get-binding,list,list-definitions,set-azure-binding,set-bitbucket-binding,set-bitbucket-cloud-binding,set-github-binding,set-gitlab-binding,update-azure,update-bitbucket,update-bitbucket-cloud,update-github,update-gitlabanalysis-cache(client.AnalysisCache): Manages scanner analysis cache dataclear,getanalysis-reports(client.AnalysisReports): Manages Compute Engine analysis report queuequeue-statusauthentication(client.Authentication): Manages user authentication sessionslogin,logoutbatch(client.Batch): Provides scanner batch operation dataget-file,get-index,get-projectce(client.Ce): Manages Compute Engine tasks and workersactivity,activity-status,analysis-status,cancel,cancel-all,component,dismiss-analysis-warning,indexation-status,info,pause,resume,set-worker-count,submit,task,task-types,worker-countcomponents(client.Components): Manages project components and navigationapp,search,search-projects,show,suggestions,treedevelopers(client.Developers): Provides developer-specific event datasearch-eventsdismiss-message(client.DismissMessage): Manages dismissible UI messagescheck,dismissduplications(client.Duplications): Manages code duplication datashowemails(client.Emails): Manages email sending functionalitysendfavorites(client.Favorites): Manages user favorite componentsadd,remove,searchfeatures(client.Features): Lists available SonarQube featureslistgithub-provisioning(client.GithubProvisioning): Manages GitHub provisioning statuscheck,status,syncgovernance-reports(client.GovernanceReports)download,status,subscribe,unsubscribe,update-frequency,update-recipientshotspots(client.Hotspots): Manages security hotspotsadd-comment,assign,change-status,delete-comment,edit-comment,list,list-all,migrate-to-issues,migration-status,pull,search,search-all,showissues(client.Issues): Manages code issues and their lifecycleadd-comment,anticipated-transitions,assign,authors,bulk-change,changelog,component-tags,delete-comment,do-transition,edit-comment,gitlab-sast-export,list,list-all,pull,pull-taint,reindex,search,search-all,set-severity,set-tags,set-type,tagsl10n(client.L10N): Manages localization and internationalizationget-indexeditions(client.Editions)activate-grace-period,get,is-valid-license,set,unset-licenselanguages(client.Languages): Lists programming languageslistmeasures(client.Measures): Manages project measures and metrics datacomponent,component-tree,search,search-historyviews(client.Views)add-application,add-application-branch,add-portfolio,add-project,add-project-branch,applications,create,delete,list,move,move-options,projects,projects-status,refresh,remove-application,remove-application-branch,remove-portfolio,remove-project,remove-project-branch,search,set-manual-mode,set-none-mode,set-regexp-mode,set-remaining-projects-mode,set-tags-mode,show,sub-portfolios,updatemetrics(client.Metrics): Manages metric definitionssearch,search-all,typesmonitoring(client.Monitoring): Provides system monitoring datametricsnavigation(client.Navigation): Provides navigation-related datacomponent,global,marketplace,settingsnew-code-periods(client.NewCodePeriods): Manages new code period definitionslist,set,show,unsetnotifications(client.Notifications): Manages user notificationsadd,add-group,list,list-group-subscriptions,list-groups,remove,remove-grouppermissions(client.Permissions): Manages project and global permissionsadd-group,add-group-to-template,add-project-creator-to-template,add-user,add-user-to-template,apply-template,bulk-apply-template,create-template,delete-template,groups,groups-all,remove-group,remove-group-from-template,remove-project-creator-from-template,remove-user,remove-user-from-template,search-templates,set-default-template,template-groups,template-groups-all,template-users,template-users-all,update-template,users,users-allplugins(client.Plugins): Manages SonarQube pluginsavailable,cancel-all,download,install,installed,pending,uninstall,update,updatesproject-analyses(client.ProjectAnalyses): Manages project analysis eventscreate-event,delete,delete-event,search,search-all,update-eventproject-badges(client.ProjectBadges): Manages project badge generationai-code-assurance,measure,quality-gate,renew-token,tokenproject-branches(client.ProjectBranches): Manages project branchesdelete,get-ai-code-assurance,list,rename,set-automatic-deletion-protection,set-mainproject-dump(client.ProjectDump): Manages project data export and importexport,import,statusproject-links(client.ProjectLinks): Manages project linkscreate,delete,searchproject-pull-requests(client.ProjectPullRequests)delete,listproject-tags(client.ProjectTags): Manages project tagssearch,setprojects(client.Projects): Manages SonarQube projectsbulk-delete,create,delete,export-findings,get-contains-ai-code,get-detected-ai-code,search,search-all,search-my-projects,search-my-projects-all,search-my-scannable-projects,set-contains-ai-code,update-default-visibility,update-key,update-visibilitypush(client.Push): Manages server-sent events for SonarLintsonarlint-eventsqualitygates(client.Qualitygates): Manages quality gates and conditionsadd-group,add-user,application-status,assign,copy,create,create-condition,delete,delete-condition,get-by-project,list,project-status,remove-group,remove-user,rename,search,search-all,search-groups,search-groups-all,search-users,search-users-all,set-ai-code-assurance,set-default,show,unassign,update-conditionqualityprofiles(client.Qualityprofiles): Manages quality profiles and rule activationactivate-rule,activate-rules,add-group,add-project,add-user,backup,change-parent,changelog,changelog-all,compare,copy,create,deactivate-rule,deactivate-rules,delete,export,exporters,importers,inheritance,projects,projects-all,remove-group,remove-project,remove-user,rename,restore,search,search-groups,search-groups-all,search-users,search-users-all,set-default,showregulatory-reports(client.RegulatoryReports)downloadrules(client.Rules): Manages coding rulesapp,create,delete,list,repositories,search,search-all,show,tags,updatesaml(client.Saml)validation,validation-initsecurity-reports(client.SecurityReports)download,showscim-management(client.ScimManagement)disable,enable,statusserver(client.Server): Provides SonarQube server informationversionsettings(client.Settings): Manages SonarQube settingscheck-secret-key,encrypt,generate-secret-key,list-definitions,login-message,reset,set,valuessources(client.Sources): Manages source code viewingindex,issue-snippets,lines,raw,scm,showsupport(client.Support)infosystem(client.System): Manages SonarQube system administrationchange-log-level,db-migration-status,health,info,liveness,logs,migrate-db,ping,restart,status,upgradesuser-groups(client.UserGroups): Manages user groupsadd-user,create,delete,remove-user,search,search-all,update,users,users-alluser-tokens(client.UserTokens): Manages user authentication tokensgenerate,revoke,searchusers(client.Users): Manages SonarQube usersanonymize,change-password,create,current,deactivate,dismiss-notice,groups,groups-all,identity-providers,search,search-all,set-ai-tool-usage,set-homepage,update,update-identity-provider,update-loginwebhooks(client.Webhooks): Manages webhookscreate,delete,deliveries,delivery,list,updatewebservices(client.Webservices): Provides API metadatalist,response-example
V2 API services
The V2 services are grouped under client.V2. They are available in the Go SDK only.
| Go SDK | Type |
|---|---|
client.V2.Analysis | AnalysisService |
client.V2.Architecture | ArchitectureService |
client.V2.Authorizations | AuthorizationsService |
client.V2.CleanCodePolicy | CleanCodePolicyService |
client.V2.DopTranslation | DopTranslationService |
client.V2.FixSuggestions | FixSuggestionsService |
client.V2.History | HistoryService |
client.V2.Marketplace | MarketplaceService |
client.V2.Sca | ScaService |
client.V2.System | SystemServiceV2 |
client.V2.UsersManagement | UsersManagementService |
client.V2.Atlassian | AtlassianService |
client.V2.Entitlements | EntitlementsService |
client.V2.Integrations | IntegrationsService |
client.V2.Issues | IssuesV2Service |
client.V2.Jira | JiraService |
client.V2.Monitoring | MonitoringServiceV2 |
client.V2.SoftwareQualityReports | SoftwareQualityReportsService |
client.V2.A3s | A3sService |
client.V2.Agentic | AgenticService |
client.V2.Billing | BillingService |
client.V2.Cag | CagService |
client.V2.Dashboards | DashboardsService |
client.V2.DetectionAgent | DetectionAgentService |
client.V2.LlmConnectivity | LlmConnectivityService |
client.V2.Onboarding | OnboardingService |
client.V2.RemediationAgent | RemediationAgentService |
client.V2.SecurityAlerts | SecurityAlertsService |
CLI global flags
--output format Output format: json, table, yaml (default json)
--password string Password for basic authentication (also read from SONAR_CLI_PASSWORD env var)
--timeout duration HTTP request timeout (default 30s)
--token string Authentication token (also read from SONAR_CLI_TOKEN env var)
--url string SonarQube server URL (also read from SONAR_CLI_URL env var)
--username string Username for basic authentication (also read from SONAR_CLI_USERNAME env var)