jtp:license string in JTS rootservices (Jazz OSLC API discovery)
Hello guys,
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
Ralph Schoon (63.5k●3●36●46)
| 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!
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,
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
Ian Barnard (2.3k●7●14)
| 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:
The documentation for repotools commands is here: https://www.ibm.com/docs/en/elm/7.0.2?topic=reference-repository-tools-command-line
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 Hi Ian,
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
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.