This API lists the guest operating systems in vCenter Chargeback Manager.
The syntax for calling this method is:
GET <Base_Url>/guestOperatingSystems
A sample API call is as follows:
GET https://123.123.123.123/vCenter-CB/api/guestOperatingSystems
You must be authenticated with vCenter Chargeback Manager but do not need any special privileges.
This API does not need any request parameters.
The API returns a response XML that provides the following information.
XPath |
Type |
Min Occurs |
Max Occurs |
Description |
GuestOperatingSystems/GuestOperatingSystem |
0 |
unbounded |
Represents the guest operating system. |
|
GuestOperatingSystems/GuestOperatingSystem/Name |
xs:string |
1 |
1 |
Name of the guest operating system. |
A sample response is provided here.
The following table explains the error codes displayed by the API.
Error Code |
Description |
VCB_ERR_INVALID_COST_MODEL_ID |
The specified Cost Model ID is invalid. |