Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence license detail via API

Yasir
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 5, 2022

Hi, I'd like to get the license detail via the API. I am interested in the number of users. Something similar to the endpoint /rest/api/3/applicationrole which provides numberOfSeats. This endpoint returns only Jira detail and not for Confluence. Thanks in advance

1 answer

0 votes
Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 26, 2016

The SOAP APIs are deprecated, but still available and will remain so until equivalent REST APIs are in place. There are quite a few SOAP capabilities missing. If there is a REST API available for the function you want, best to use that, otherwise use the SOAP APIs. If you are just creating pages, the REST APIs should be sufficient. 

The Confluence Command Line Interface (CLI) is an alternative for this type of use case. It uses a combination of  REST or SOAP APIs to provide various actions - see Reference. Moreover, if you are a Bamboo user (I know you referenced Jenkins), it is even easier to integrate using the Confluence CLI task. For Jenkins, you would need to install the client on your Jenkins server and just use command scripting.

Oleg Kalinin
March 29, 2016

Hi Bob,

Thanks for your answer!

 

Could you please comment this statement?:

===========================================

So you are telling me that the xml rpc API, besides being deprecated, is still available ? If this is correct, then the maven plugin I'm using should succeed. This plugin can't use Confluence Command Line Interface nor Confluence REST API. So if the xml rpc api is available for us, it should do the trick.
This morning, 9H47 am my time (France) I tried to create page and I got the following :    [INFO] Confluence version [5.5.4-5517] development version [false] [ERROR] has been imposssible connect to confluence due exception org.codehaus.swizzle.confluence.ConfluenceException: java.lang.Exception: com.atlassian.confluence.rpc.RemoteException: You're not allowed to view that page, or it does not exist.
The credentials I'm providing are mine (username and my password) and seems correct because I have a different error when using another password or login.


 Can you tell me why this was not allowed ?

===========================================

Oleg

Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 29, 2016

Yes, they are available (provided they are enabled - https://confluence.atlassian.com/doc/enabling-the-remote-api-150460.html) and your error message indicates that you are connecting and just getting an error message: You're not allowed to view that page, or it does not exist.

You will need to sort that part out on your own.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events