Cloud Cruiser became HPE Consumption Analytics on Nov. 1st. You'll still see the old name in places while we update this site.

 

 

Consumption Analytics Documentation

Home > Cloud Cruiser 4 > REST API reference > Usage data > Publish or delete text data

Publish or delete text data

Publishes plain text data to a file on the HPE Consumption Analytics Portal 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 used

The 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.txt.

Resource URL

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>

Request

Parameters
  Name Type Description
URL path parameters (required) feedPath string The directory in which to write the plain text data
Content-Type

text/plain

Body

The data to publish, in plain text format.

Response

None

Example

URL invocation

POST http://localhost:8080/rest/v2/usages​​/myfeed

Java invocation
Request body
Id,Name,Provisioning,Type,CopyOf,BaseId,ReadPerms,State,SnapAdmSpace,SnapSpace,UserSpace,Size,UserCPG
677,3P01-PLA-W2K8-bfs001,tpvv,base,---,677,RW,normal,256,512,13696,71680,USTIL1SCL-3P01-X2R5
685,3P01-PLA-W2K8-bfs002,tpvv,base,---,685,RW,normal,256,512,10368,71680,USTIL1SCL-3P01-X2R5
1599,3P01-PLA-W2K8-bfs003,tpvv,base,---,1599,RW,normal,128,512,11264,71680,USTIL1SCL-3P01-X2R5
Last modified

Tags

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP