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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.