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 3 > REST API reference > Customers > Import customers from a CSV file

Import customers from a CSV file

Imports CSV-formatted customer data.

URL syntax

http://<ccServerURL
>/rest/v1/customers/import?updateDuplicates=true

HTTP method

POST

Request

URL query parameters (optional)
?updateDuplicates=[true/false]

Default: false

Content-Type
text/csv
Request body

Text/CSV of resource data

Response

Content-Type
application/xml
Response body

XML text with root element itemImportResult . For the schema, see Import users from a CSV file.

JAXB type
com.cloudcruiser.server.webservices.v1.dto.common.ItemImportResult

Example

URL
http://localhost:8080/rest/v1/customers/import?updateDuplicates=true
Request body
account_level,rate_plan,account_id, alt_account_id,description,flag1,flag2,flag3,flag4,flag5,accounting_day
5,"Customer 1","ztpf3LRJ18lIijH2B2bz","D3ueppFeNeCiyj7BWSYJjzQCYLb1TumvgB4YUB44HhKb24BZMRR518ewZidQ5FZBvT8TTDaALfQjRhfnluSIwiGJXMjZbDt9HkmK",,,7,T,,,24
5,"default","B-BB-KKKK-11-vm003",,"VM Host B-BB-KKKK-11-vm003",,,,,,1
Response body
<?xml version="1.0" encoding="UTF-8"?>
<itemImportResult xmlns="http://www.cloudcruiser.com/webservices/v1/Common">
  <importedSummary>
    <totalItems>2</totalItems>
    <newItems>1</newItems>
    <duplicateItems>1</duplicateItems>
    <updatedItems>0</updatedItems>
  </importedSummary>
  <newItemNames>
    <newItemName>Account ztpf3LRJ18lIijH2B2bz</newItemName>
  </newItemNames>
  <duplicateItemNames>
    <duplicateItemName>Account B-BB-KKKK-11-vm003</duplicateItemName>
  </duplicateItemNames>
</itemImportResult>
Last modified

Tags

This page has no custom tags.

Classifications

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