This API enables the user to fetch the details of all the vCenter Chargeback Manager servers.
The syntax for calling this API is:
GET <Base_URL>/servers
A sample API call is as follows:
GET https://123.123.123.123/vCenter-CB/api/servers
None. Any user authenticated with vCenter Chargeback Manager can use this API.
This API call does not take any input parameters.
The API returns an XML that provides the following information.
XPath |
Type |
Min Occurs |
Max Occurs |
Description |
---|---|---|---|---|
Servers/Server |
|
0 |
unbounded |
This is the vCenter Chargeback Manager server element. |
Servers/Server/@id |
xs:int |
1 |
1 |
Identifier of the vCenter Chargeback Manager. |
Servers/Server/Url |
xs:string |
1 |
1 |
URL of the vCenter Chargeback Manager. |
Servers/Server/Version |
xs:string |
1 |
1 |
Version of the vCenter Chargeback Manager. |
Servers/Server/BuildNumber |
xs:string |
1 |
1 |
Build number of the vCenter Chargeback Manager. |
Servers/Server/HeartBeat |
xs:long |
1 |
1 |
Heart beat of the vCenter Chargeback Manager. |
Servers/Server/CreateTime |
xs:long |
1 |
1 |
The time when the vCenter Chargeback Manager was created. |
Servers/Server/UpdateTime |
xs:long |
1 |
1 |
The time when the Chargeback Manager server was updated. |
A sample response is provided here.