![]() |
Consumption Analytics Documentation |
Publishes JSON data to a file on the Cloud Cruiser server via any of the HTTP methods DELETE, POST, or PUT. The data is appended to the file <usageDir>/<feedPath>/<accountingDate>-<method>.json
, where:
<feedPath>
is the value of the feedPath
parameter<accountingDate>
is the current date in yyyyMMdd
format<method>
is the HTTP method usedThe directory and file are created if they do not exist.
For example, if <usageDir>
is c:\cc-working\usage_files
then invoking this method via DELETE on September 15, 2014 with a feedPath
of 3PAR
would write to the file c:\cc-working\usage_files\3PAR\20140915-DELETE.json
.
One of the following:
DELETE http://<ccServerURL>/rest/v2/usages/<feedPath>
POST http://<ccServerURL>/rest/v2/usages/<feedPath>
PUT http://<ccServerURL>/rest/v2/usages/<feedPath>
Name | Type | Description | |
---|---|---|---|
URL path parameters (required) | feedPath | string | The directory in which to write the JSON data |
application/json
The data to publish, in JSON format.
None
POST http://localhost:8080/rest/v2/usages/myfeed
[ { "Id":677, "Name":"3P01-PLA-W2K8-bfs001", "Provisioning":"tpvv", "Type":"base", "CopyOf":"---", "BaseId":677, "ReadPerms":"RW", "State":"normal", "SnapAdmSpace":256, "SnapSpace":512, "UserSpace":13696, "Size":71680, "UserCPG":"USTIL1SCL-3P01-X2R5" }, { "Id":685, "Name":"3P01-PLA-W2K8-bfs002", "Provisioning":"tpvv", "Type":"base", "CopyOf":"---", "BaseId":685, "ReadPerms":"RW", "State":"normal", "SnapAdmSpace":256, "SnapSpace":512, "UserSpace":10368, "Size":71680, "UserCPG":"USTIL1SCL-3P01-X2R5" } ]
(c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP