Requests; Responses - VMware VCENTER CHARGEBACK 1.5 - API Manual

Vcenter chargeback api programming guide
Hide thumbs Also See for VCENTER CHARGEBACK 1.5 - API:
Table of Contents

Advertisement

vCenter Chargeback API Programming Guide
Figure 1-1. REST Architecture in vCenter Chargeback

Requests

An HTTP request sent by a Chargeback API can be of the following type: PUT, POST, GET, or DELETE. 
Table
1‐1 shows how each of these request types maps to a standard CRUD operation. 
Table 1-1. Request Type Mapping
Request Type
POST
GET
PUT
DELETE
Along with the HTTP requests, you can pass request parameters by using XMLs. An example request XML for 
the Login API is provided here. 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Request xmlns="http://www.vmware.com/vcenter/chargeback/1.5.0">
<Users>
<User>
<Name>admin</Name>
<Password>ttt</Password>
<Type>local</Type>
</User>
</Users>
</Request>

Responses

When an API task is successful, the value of the status parameter in the response XML is set to success as 
shown in the following example.
<?xml version="1.0" encoding="UTF-8"?>
<Response status="success" isValidLicense="true"
<Hierarchies>
<Hierarchy id="1">
...
</Hierarchy>
</Hierarchies>
</Response>
8
CRUD Operation
CREATE
READ
UPDATE/CREATE
DELETE
xmlns="http://www.vmware.com/vcenter/chargeback/1.5.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
VMware, Inc.

Advertisement

Table of Contents
loading

Table of Contents