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

Publish or delete XML data

Publishes XML 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 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.xml.

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 XML data
Content-Type

application/xml

Body

The data to publish, in XML format.

Response

None

Example

URL invocation

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

Java invocation
Request body
<?xml version="1.0"?>
<ROWSET>
  <ROW>
    <Id>677</Id>
    <Name>3P01-PLA-W2K8-bfs001</Name>
    <Provisioning>tpvv</Provisioning>
    <Type>base</Type>
    <CopyOf>---</CopyOf>
    <BaseId>677</BaseId>
    <ReadPerms>RW</ReadPerms>
    <State>normal</State>
    <SnapAdmSpace>256</SnapAdmSpace>
    <SnapSpace>512</SnapSpace>
    <UserSpace>13696</UserSpace>
    <Size>71680</Size>
    <UserCPG>USTIL1SCL-3P01-X2R5</UserCPG>
  </ROW>
  <ROW>
    <Id>685</Id>
    <Name>3P01-PLA-W2K8-bfs002</Name>
    <Provisioning>tpvv</Provisioning>
    <Type>base</Type>
    <CopyOf>---</CopyOf>
    <BaseId>685</BaseId>
    <ReadPerms>RW</ReadPerms>
    <State>normal</State>
    <SnapAdmSpace>256</SnapAdmSpace>
    <SnapSpace>512</SnapSpace>
    <UserSpace>10368</UserSpace>
    <Size>71680</Size>
    <UserCPG>USTIL1SCL-3P01-X2R5</UserCPG>
  </ROW>
  <ROW>
    <Id>1599</Id>
    <Name>3P01-PLA-W2K8-bfs003</Name>
    <Provisioning>tpvv</Provisioning>
    <Type>base</Type>
    <CopyOf>---</CopyOf>
    <BaseId>1599</BaseId>
    <ReadPerms>RW</ReadPerms>
    <State>normal</State>
    <SnapAdmSpace>128</SnapAdmSpace>
    <SnapSpace>512</SnapSpace>
    <UserSpace>11264</UserSpace>
    <Size>71680</Size>
    <UserCPG>USTIL1SCL-3P01-X2R5</UserCPG>
  </ROW>
</ROWSET>
Last modified

Tags

Classifications

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