Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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!

0 votes


Accepted answer

Permanent link

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

0 votes

Comments

 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!

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.
 

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

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

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

1 vote

Comments

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941
× 7,495
× 1,325
× 515
× 60
× 54

Question asked: Feb 10 '22, 9:56 a.m.

Question was seen: 1,566 times

Last updated: Feb 13 '22, 10:44 a.m.

Confirmation Cancel Confirm