REST API for retrieving the License Metric Tool version
You use the GET operation on the api/sam/about element to request information about the version of License Metric Tool.
Resource URL
To retrieve information about the current version of License Metric Tool, use the following URL:
https://server_url:server_port/api/sam/about?token=token
Resource information
| Operation details | Description |
|---|---|
| Purpose | Returns the version of License Metric Tool |
| HTTP method | GET |
| Resource URI | https://server_host_name:port_number/api/sam/about |
| Request headers |
|
| Request payload | n/a |
Request Content-Type |
|
| Response headers |
|
| Response payload | About element |
Response Content-Type |
|
| Normal HTTP response codes |
|
| Error HTTP response codes |
Message body includes an error message with details. |
Example HTTP conversation
- Request
-
GET https://server_host_name:port_number/api/sam/about - Request header
-
Accept: application/json Accept-Language: en-US Token: <token> - Response header
-
HTTP/1.1 200 OK Content-Type: application/json Content-Language: en-US - Response body (JSON)
-
{ "product": "IBM License Metric Tool", "version": "9.2.20140331-2015" }