Hello William,
You can place 'simulate=true' as well as 'verbose=true' directly after 'software_instances?' part :
https://hostname:port/api/sam/v2/software_instances?simulate=true&verbose=true&token=<token>
Actually the place doesn't matter as long as you add each new parameter prepended by '&' character.
RESTAPI used by ILMT is consistent with URL's query string format.
what does 'verbose' option provide ?
If you look at our tutorial example (https://www.ibm.com/docs/en/license-metric-tool?topic=ira-tutorial-migrating-software-assignments-between-two-license-metric-tool-servers) response body has this additional "details" section...
this is the part triggered by 'verbose' parameter...
------------------------------
Thank you,
Oktawian
Oktawian Powązka, L3 Support
IBM License Metric Tool
------------------------------
Original Message:
Sent: Tue November 28, 2023 01:31 PM
From: William Van Horne
Subject: What is the RESTAPI syntax for the simluate parameter (put command)
I am attempting to validate the rest commands - ie simulate - without the actual updating. This usage question also applies to the the verbose option.
curl -v -x -K PUT https://ilmt_url:9081/api/sam/v2/software_instances?token=tokenid_from_ilmt -d {\"rows\":[{\"instance_id\":####,\"product_release_guid\":\"guid-id\",\"metric_id\""####}]}
Where does the simulate=true get place d in the rest call shown above? I have tried after the token (ie &simulate=true), after the request body (ie after the trailing }]} as }]} simulate=true as well as other options.
The verbose option has a similar question - where is it placed in the restapi string (and what does it provide?)
------------------------------
William Van Horne
------------------------------