# SonarQube 9.7.1 - no more edition API endpoint

**URL:** <https://community.sonarsource.com/t/sonarqube-9-7-1-no-more-edition-api-endpoint/75565>\
**Category:** SonarQube Server / Community Build\
**Tags:** api, web\_api, sonarqube, web-api\
**Created:** [November 4, 2022, 9:00am UTC](https://community.sonarsource.com/t/sonarqube-9-7-1-no-more-edition-api-endpoint/75565 "2022-11-04T09:00:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikaciu](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mikaciu/32/21487_2.png) [@Mikaciu](https://community.sonarsource.com/u/Mikaciu)\
**Post date:** [November 4, 2022, 9:00am UTC](https://community.sonarsource.com/t/sonarqube-9-7-1-no-more-edition-api-endpoint/75565/1 "2022-11-04T09:00:56Z")

</div>

Hello,

We have developed a tool to manage our SonarQube instances and to automate project creation and configuration.

Because in the past we had several SQ editions, we were checking the edition using the api endpoint `api/system/info` and then fetching `['Statistics']['edition']`.

It seems that since the upgrade to 9.7.1 (we had 9.6 previously), the edition is no longer present in the API response. Has it been moved to some other endpoint I don’t know about ?

We are heavily using the API to manage our instance and such modification had a lot of impact. Is there a changelog on API-related changes ?

Thanks ^^

---

<div class="post-metadata">

**Author:** ![Joe](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/joe/32/14820_2.png) [@Joe](https://community.sonarsource.com/u/Joe)\
**Post date:** [November 4, 2022, 6:38pm UTC](https://community.sonarsource.com/t/sonarqube-9-7-1-no-more-edition-api-endpoint/75565/3 "2022-11-04T18:38:06Z")

</div>

Hello @Mikhail_Sidelnikov ,

Yes, we are aware of this issue and are actively working on it. As a workaround, for licensed SonarQube instances (i.e. Developer, Enterprise, Data Center Editions), the `api/editions/show_license` will return details about the edition, but you’ll receive a 404 on Community Edition.

I will update you once we have further updates to share.

---

<div class="post-metadata">

**Author:** ![Mikaciu](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mikaciu/32/21487_2.png) [@Mikaciu](https://community.sonarsource.com/u/Mikaciu)\
**Post date:** [November 7, 2022, 2:21pm UTC](https://community.sonarsource.com/t/sonarqube-9-7-1-no-more-edition-api-endpoint/75565/5 "2022-11-07T14:21:22Z")

</div>

Thanks for your reply @Joe !

I’m afraid in our case this would not be sufficient because we are also relying on the `Statistics` section for KPI purposes (the NLoC namely) …

BR

---

<div class="post-metadata">

**Author:** ![Joe](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/joe/32/14820_2.png) [@Joe](https://community.sonarsource.com/u/Joe)\
**Post date:** [November 7, 2022, 5:28pm UTC](https://community.sonarsource.com/t/sonarqube-9-7-1-no-more-edition-api-endpoint/75565/6 "2022-11-07T17:28:06Z")

</div>

As you may know already, [[SONAR-17194] - Jira](https://sonarsource.atlassian.net/browse/SONAR-17194) and [We’re making some changes to SonarQube telemetry](https://community.sonarsource.com/t/we-re-making-some-changes-to-sonarqube-telemetry/73261) document the reasons for the change. The `Statistics` object is therefore intentionally removed.

In [[SONAR-17578] - Jira](https://sonarsource.atlassian.net/browse/SONAR-17578) for SonarQube 9.8, we will fix LOC information back to GET api/system/info API, which should allow you to obtain LOC information then.

---

<div class="post-metadata">

**Author:** ![michalszelagsonos](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/michalszelagsonos/32/31800_2.png) [@michalszelagsonos](https://community.sonarsource.com/u/michalszelagsonos)\
**Post date:** [November 8, 2022, 10:48am UTC](https://community.sonarsource.com/t/sonarqube-9-7-1-no-more-edition-api-endpoint/75565/7 "2022-11-08T10:48:11Z")

</div>

I am curious to learn more about this:

```auto
We have developed a tool to manage our SonarQube instances and to automate project creation and configuration.

```

Is this tool published somewhere? We have a fairly large org and using click ops to manage lots of projects and settings is not a good idea, hence my interest in this.

---

<div class="post-metadata">

**Author:** ![Mikaciu](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mikaciu/32/21487_2.png) [@Mikaciu](https://community.sonarsource.com/u/Mikaciu)\
**Post date:** [November 8, 2022, 11:52am UTC](https://community.sonarsource.com/t/sonarqube-9-7-1-no-more-edition-api-endpoint/75565/8 "2022-11-08T11:52:04Z")

</div>

Thanks for your interest !

Unfortunately it’s not published, the tool is tightly linked to the way we are using projects (project key generation, application generation and project linking to the application, etc).

In the future, I’d really like to use the [python-sonarqube-api](https://github.com/shijl0925/python-sonarqube-api) Python package to just keep métier-related process in our pipelines and leave the API processes to the Python package.

---

<div class="post-metadata">

**Author:** ![michalszelagsonos](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/michalszelagsonos/32/31800_2.png) [@michalszelagsonos](https://community.sonarsource.com/u/michalszelagsonos)\
**Post date:** [November 8, 2022, 3:00pm UTC](https://community.sonarsource.com/t/sonarqube-9-7-1-no-more-edition-api-endpoint/75565/9 "2022-11-08T15:00:14Z")

</div>

Thank you for sharing the python package link, I will take a look. I’ve been on a lookout for configuration providers that can configure Sonar, perhaps something like this using Terraform:

[https://registry.terraform.io/providers/jdamata/sonarqube/latest/docs](https://registry.terraform.io/providers/jdamata/sonarqube/latest/docs)

The idea is to use an industry standard tool, driven via config, to maintain projects at scale. Yes, the API is neat but that still leaves considerable amount of engineering work to write a tool that can be used in config-as-code paradigm. I would love to see Sonar provide something in this space, using one of the most popular configuration management tools like Terraform, or CloudFormation with custom resource definitions. This idea isn’t unique, and other technology companies do do this to support adoption. It’s a glaring omission in the current portfolio.

---

<div class="post-metadata">

**Author:** ![markluebbehuesen](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/markluebbehuesen/32/6729_2.png) [@markluebbehuesen](https://community.sonarsource.com/u/markluebbehuesen)\
**Post date:** [June 23, 2023, 11:27am UTC](https://community.sonarsource.com/t/sonarqube-9-7-1-no-more-edition-api-endpoint/75565/11 "2023-06-23T11:27:53Z")

</div>

Hello,

until our update to 9.9.1 we also use api endpoint `api/system/info` and fetching [‘Statistics’], but unfortunately it´s currently not available.

I saw that it was implemented or planned again for version 9.8.

Are there plans to reintroduce this for 10.x?

thx,  
Mark
