Retrieval of PVU and RVU node reports
You use the GET operation on the reports/pvusubcapnodes|pvufullcapnodes|rvusubcapnodes|rvufullcapnodes elements
to request information about processor value unit (PVU) and resource
value unit (RVU) node reports.
You must have the View License Metrics permission to perform this
task.
| Operation details | Description |
|---|---|
| Operation |
|
| Purpose | Returns a list of PVU or RVU full capacity or subcapacity node reports. |
| HTTP method | GET |
| Resource URI |
|
| URL link relation | n/a |
| URL query parameters | For a list of applicable query parameters, see: Query parameters. |
| Request headers |
Used to negotiate the language of the response. If this header is not specified, the content is returned in the server language. |
| Request payload | n/a |
Request Content-Type |
|
| Response headers |
Specifies the content type of the response. |
Specifies the language of the response content. If this header is not specified, the content is returned in the server language. |
|
| Response payload | reports element |
Response Content-Type |
|
| Normal HTTP response codes |
|
| Error HTTP response codes |
Message body includes an error message with details. |
Query parameters
You
can use query parameters to narrow down the results of your search.
The following table presents query parameters that you can use for
the reports/pvusubcapnodes|pvufullcapnodes|rvusubcapnodes|rvufullcapnodes elements.
| Parameter | Description | Required | Value |
|---|---|---|---|
| criteria | Filtering criteria, expressed in the following
format: For
example: For
the list of input parameters, see: Filtering parameters. |
No | |
| enddate | The query end date. | Yes | Date in the YYYY-MM-DD format |
| format | Returns data in JSON format. | Yes | json |
| limit | The number of rows to be returned. | No | Numeric Default: 50 |
| offset | The number of the first row of data to be returned. | No | Numeric Default: 0 |
| order[] | The parameter can be used to sort the results.
The format is:where:
Restriction: You can specify only one sort parameter. |
No | |
| productid | The identifier of the product. Use the GET operation on the swinventory/products element to get product identifiers. |
Yes | Numeric |
| quantity | The quantity of PVU or RVU licenses used by
the product. Use the GET operation on the reports/metrics element to get the quantity of PVUs or RVUs used. |
Yes | Numeric |
| reportgroupid | Identifier of the report group to which the computer that has the software installed belongs. | No | Numeric Default: 1 |
| startdate | The query start date. | Yes | Date in the YYYY-MM-DD format |
| token | A unique user authentication identifier. | Yes | Alphanumeric |
Filtering parameters
The following table describes extra filtering input parameters. The response output uses the same information items as the input parameters.
| Filtering parameter | Description | Value |
|---|---|---|
| comment | The comment code that is returned from the server.
It contains information that is related to nodes. The following is
a list of possible values:
Restriction: The comment cannot be used to filter
or sort your search results. |
Numeric |
| cores | The CPU core full capacity or CPU core subcapacity. | Numeric |
| coreslimit | The limit of the CPU core subcapacity. The parameter is applicable only to subcapacity reports. | Numeric |
| nodeid | The identifier of the node (server) that hosts the product. | Numeric |
| nodename | The name of the node (server) that hosts the product. | String |
| processor | The name of the processor that is available to the product. | String |
| pvus | PVU only. The quantity of used licenses. | Numeric |
| pvuslimit | PVU only. The limit of PVU subcapacity. The parameter is applicable only to subcapacity reports. | Numeric |
| reportgroupid | Identifier of the report group to which the computer that has the software installed belongs. | Numeric |
Example commands
http://localhost:9080/api/sam/reports/rvusubcapnodes?token= 7adc3efb175e2bc0f4484bdd2efca54a8fa04623?&format=json&enddate=2013-04-26 &startdate=2013-01-15&productid=1&quantity=900http://localhost:9080/api/sam/reports/pvufullcapnodes?token= 7adc3efb175e2bc0f4484bdd2efca54a8fa04623&format=json&enddate=2013-04-26 &startdate=2013-01-15&productid=4&quantity=2800
Example HTTP conversation
- Request
GET /ibm/sua/api/sam/reports/rvusubcapnodes?token= 7adc3efb175e2bc0f4484bdd2efca54a8fa04623?&format=json&enddate=2013-04-26 &startdate=2013-01-15&productid=1&quantity=900 HTTP/1.1 Host: localhost:9080 Accept: application/json Accept-Language: en-US- Response header
HTTP/1.1 200 OK Content-Type: application/json Content-Language: en-US- Response body (JSON) for RVU subcapacity
[ { "reportgroupid":1, "coreslimit":1, "nodename":"IBM 8676 KBRD742", "comment":0, "processor":"Intel(R) Xeon(R) or Pentium(R) Single-core All Existing", "cores":1, "nodeid":4} ]- Response body (JSON) for PVU full capacity
[ { "reportgroupid":1, "coreslimit":1, "nodename":"IBM 8676 KBRD742", "comment":0, "processor":"Intel(R) Xeon(R) or Pentium(R) Single-core All Existing", "cores":1, "nodeid":4} ]