cluster get billing usage
Displays billing information for specific data in BRIM (Billing and Revenue Innovation Management) format, and generates the file that you must upload to the Data Fabric billing portal for an air-gapped cluster.
In a connected environment, you can view the billing information that is sent
automatically to HPE. Use the following maprcli
command:
Syntax
- CLI
-
maprcli cluster getbillingusage [ -from start_time (UTC timestamp in millisecond or time in yyyy-MM-dd,HH:mm format) ] [ -till end_time (UTC timestamp in millisecond or time in yyyy-MM-dd,HH:mm format) ] [ -duration duration (in minutes. Minimum value is 60 minutes) ] [ -cluster cluster name ] -fileName fileName (file path) [ -clearText <true|false> true generates the file in clear text ]
- REST
-
Request Type GET Request URL http[s]://<host>:<port>/rest/cluster/getbillingusage?<parameters>
Parameters
Parameter | Description |
---|---|
from |
Start time in yyyy-mm-dd, hh:mm format. |
till |
End time in yyyy-mm-dd, hh:mm format. |
duration |
Duration in minutes (minimum value is 60 minutes) . |
cluster |
Cluster name |
fileName |
File name (File path) |
clearText |
True or False. True generate the file in clear text format. |
Example
maprcli cluster getbillingusage -fileName billing.txt -clearText true -json { "timestamp":1688108615644, "timeofday":"2023-06-30 12:03:35.644 GMT-0700 AM", "status":"OK", "total":0, "data":[ ], "messages":[ "Usage Metric data written to the file billing.txt" ] }