Get Guest Operating Systems

This API lists the guest operating systems in vCenter Chargeback Manager. 

Syntax

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

User Privilege

You must be authenticated with vCenter Chargeback Manager but do not need any special privileges.

Request Body Parameters

This API does not need any request parameters.

Response Type

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.

Error Response

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.