IBM License Metric Tool (ILMT)

IBM License Metric Tool (ILMT)

Connect with Db2, Informix, Netezza, open source, and other data experts to gain value from your data, share insights, and solve problems.

 View Only
Expand all | Collapse all

What is the RESTAPI syntax for the simluate parameter (put command)

  • 1.  What is the RESTAPI syntax for the simluate parameter (put command)

    Posted Tue November 28, 2023 01:32 PM

    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
    ------------------------------


  • 2.  RE: What is the RESTAPI syntax for the simluate parameter (put command)

    Posted Wed November 29, 2023 06:47 AM

    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
    ------------------------------