![]() |
Consumption Analytics Documentation |
Creates a new customer based on the provided information.
The customer definition information. The customer’s
id
attribute should be empty. XML text with root element
customer
and the following XML schema:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.cloudcruiser.com/webservices/v1/Customer" targetNamespace="http://www.cloudcruiser.com/webservices/v1/Customer">
<xs:element name="customer" type="tns:Customer"/>
<xs:complexType name="Customer">
<xs:sequence>
<!-- Required element -->
<xs:element name="accountId" type="xs:string"/>
<!-- Required element -->
<xs:element name="active" type="xs:boolean"/>
<!-- Required element -->
<xs:element name="accountLevel">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="description" type="xs:string" use="required"/>
<xs:attribute name="level" type="xs:short"/>
</xs:complexType>
</xs:element>
<!-- Required element, element name is required. -->
<xs:element name="ratePlan">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="id" type="xs:int"/>
</xs:complexType>
</xs:element>
<!-- Optional element. The default is 1 -->
<xs:element minOccurs="0" name="accountingDay" type="xs:short"/>
<!-- Optional element. The default is 1 -->
<xs:element minOccurs="0" name="fiscalStartMonth" type="xs:short"/>
<!-- Optional element. -->
<xs:element minOccurs="0" name="altAccountId" type="xs:string"/>
<!-- Optional element. -->
<xs:element minOccurs="0" name="description" type="xs:string"/>
<!-- All five flags are Optional chars. -->
<xs:element minOccurs="0" name="flag1" type="xs:string"/>
<xs:element minOccurs="0" name="flag2" type="xs:string"/>
<xs:element minOccurs="0" name="flag3" type="xs:string"/>
<xs:element minOccurs="0" name="flag4" type="xs:string"/>
<xs:element minOccurs="0" name="flag5" type="xs:string"/>
</xs:sequence>
<xs:attribute name="id" type="xs:int"/>
</xs:complexType>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<customer xmlns="http://www.cloudcruiser.com/webservices/v1/Customer">
<accountId>B-AA-KKKK-11-vm100</accountId>
<active>true</active>
<accountLevel description="VM Name" level="5"/>
<ratePlan name="default" id="1"/>
<accountingDay>1</accountingDay>
<fiscalStartMonth>1</fiscalStartMonth>
<description>VM Host B-AA-KKKK-11-vm100</description>
</customer>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customer xmlns="http://www.cloudcruiser.com/webservices/v1/Customer" id="10400">
<accountId>B-AA-KKKK-11-vm100</accountId>
<active>true</active>
<accountLevel description="VM Name" level="5"/>
<ratePlan name="default" id="1"/>
<accountingDay>1</accountingDay>
<fiscalStartMonth>1</fiscalStartMonth>
<description>VM Host B-AA-KKKK-11-vm100</description>
</customer>
(c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP