It's all about the answers!

Ask a question

jtp:license string in JTS rootservices (Jazz OSLC API discovery)


Dmitry A. Lesin (24825896) | asked Feb 10 '22, 9:56 a.m.

Hello guys,
If request rootservices for JTS application (IBM Rational Jazz), I can find there a string:

<jtp:license rdf:resource="https://<server>:<port>/jts/process-authoring/license"/>


I suspect that it could be used somehow to access info about licensing by JTS OSLC API. But when I try to do GET request, I'm getting HTTP 404 error:

URI:           https://<server>:<port>/jts/process-authoring/license
Headers:   Accept=application/rdf+xml, OSLC-Core-Version=2.0
Response:

What do I do wrong? Is anyway to read and manipulate licensing capabilities by means of OSLC API somehow?
Thank you!

Accepted answer


permanent link
Ralph Schoon (63.1k33645) | answered Feb 10 '22, 10:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Feb 10 '22, 10:14 a.m.

Dmitry,


I am pretty sure that the rootservices document has many links that are not accessible. I have found plenty of services I was unable to access. I was not able to access the service either and I am not convinced you should be able to.

Also, just because something is in the rootservices document, does not mean it has anything to do with OSLC.

The license files are shipped with the product in the license folder and its sub folders.

Dmitry A. Lesin selected this answer as the correct answer

Comments
Dmitry A. Lesin commented Feb 10 '22, 10:19 a.m.

 Ralph,
Thank you very much for quick answer! It's pity that CAL management is unavailable at OSLC level. I mean looking for available licenses, assigned licenses, and may be even releasing some licenses with big timeout. Or may be that is possible somehow?

Thank you!


Ralph Schoon commented Feb 10 '22, 10:52 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Dmitri,


the purpose of OSLC is integration of development tools and not license management.

For license management, you can use the repotools. I have used that to automate the license association for the JKE banking sample.

There is a Jazz Foundation Java API that allows to manage licenses. It is part of the EWM Plain Java Client Libraries. See https://rsjazz.wordpress.com/2017/03/29/managing-contributor-licenses-using-the-plain-java-client-libraries/ 

https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding is what you can also look at. There is a a Jazz Foundation section. There might be hints about license management.
 


Dmitry A. Lesin commented Feb 10 '22, 11:30 a.m.

Ralph,
Thank you very much! This is very valuable information for me.


Ralph Schoon commented Feb 11 '22, 2:20 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Using the repotools this would look like this:


call %SERVERFOLDER%\repotools-jts -createUser userId=bob licenseId=com.ibm.team.rrc.author repositoryURL=%REPOSITORY% adminUserId=%USERID% adminPassword=%PASSWORD% 

One other answer



permanent link
Ian Barnard (1.9k613) | answered Feb 11 '22, 3:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Feb 11 '22, 3:54 a.m.

Hi Dmitry


It's not a REST API but you can automate using repotools commands to:
  • Query users and license allocations to CSV: repotools-jts -exportUsers
  • Create users/assign licenses from CSV: repotools-jts -importUsers
  • Create a user/assign license: repotools-jts -createUser
  • List licenses on the server to CSV: repotools-jts -listLicenses

If you're using floating licenses then RLKS (now IBM Common Licensing) can report usage - see https://www.ibm.com/docs/en/common-licensing/9.0.0?topic=administering-license-usage-reports


Comments
Dmitry A. Lesin commented Feb 13 '22, 10:43 a.m. | edited Feb 13 '22, 10:44 a.m.

Hi Ian,
Thank you very much for this posted answer. At least, I'm considering some research of reportools which could be applied to my task. The entry points provided by you are very valuable for me on this way.

The only difficulty is that I need to do some manipulation by licenses under scope of my task.
Anyway, I will take a look at this way with attention.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.