Get Details of All Supported Log Levels

This API helps you retrieve details of all the logging levels supported in vCenter Chargeback Manager.

Syntax

The syntax for calling this API is:

GET <Base_URL>/logLevels

A sample API call is as follows:

GET https://123.123.123.123/vCenter-CB/api/logLevels

User Privilege

None. Any user authenticated with vCenter Chargeback Manager can use this API.

Request Body Parameters

This API call does not take any input parameters.

API Response

The API returns all the log levels supported by vCenter Chargeback Manager. The response XML provides the following information.

XPath

Type

Min Occurs

Max Occurs

Description

LogLevels/LogLevel

 

0

unbounded

Represents the log level element.

LogLevels/LogLevel/@id

xs:int

1

1

ID of the supported log level.

LogLevels/LogLevel/Name

xs:string

1

1

Name of the supported log level. Supported log levels are trace, debug, info, warn, error, and fatal.

A sample response is provided here.