CSV

In a CSV response body (only for a GET of a chargebackReport resource), the name of each reported property for the resource is a field in the first line. Property values are fields in the subsequent lines.

Here’s a request for the chargebackReport resource for the Accounts-Receivable namespace to be returned in CSV format:

curl -k -i -H "Accept: text/csv"
    -H "Authorization: HCP bGdyZWVu:a3b9c163f6c520407ff34cfdb83ca5c6"
    "https://finance.hcp.example.com:9090/mapi/tenants/finance/namespaces/
         accounts-receivable/chargebackReport?start=2017-02-18T13:00:00-0500
         &end=2017-02-18T13:59:59-0500&granularity=hour"

Here’s the CSV response body:

systemName,tenantName,namespaceName,startTime,endTime,objectCount,
    ingestedVolume,storageCapacityUsed,bytesIn,bytesOut,reads,writes,deletes,
    multipartObjects,multipartObjectParts,multipartObjectBytes,multipartUploads,
    multipartUploadParts,multipartUploadBytes,deleted,valid
hcp.example.com,Finance,Accounts-Receivable,2017-02-18T13:00:00-0500,1240,
    2017-02-18T13:59:59-0500,6,134243721,134270976,134243721,87561,1,11,0,2,
    7,93213889,0,0,0,false,true

© 2015, 2020 Hitachi Vantara LLC. All rights reserved.