Set a Log Level

Sets the logging level in vCenter Chargeback Manager.

Syntax

The syntax for calling this API is:

PUT <Base_URL>/logLevel

A sample API call is as follows:

PUT https://123.123.123.123/vCenter-CB/api/logLevel?logLevel=trace

User Privilege

You must have the Super User role

URL Parameters

This API takes the following URL parameter as input.

Name

Required/
Optional

Data Type

Description

Sample Value

logLevel

Required

String

The log level to set. Supported log levels are: trace, debug, info, warn, error, and fatal.

trace

Request Body Parameters

This API does not require a request XML.

API Response

The API returns a response XML that indicates the status of the operation.

A sample response XML is provided here.

Error Codes

The following table explains the possible error codes.

Error code

Description

VCB_ERR_INVALID_LOG_LEVEL

Returned if an invalid Log Level is specified.

VCB_ERR_NO_LOG_LEVEL

Returned if a Log Level is not specified