Sets the logging level in vCenter Chargeback Manager.
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
You must have the Super User role
This API takes the following URL parameter as input.
Name | Required/ | 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 |
This API does not require a request XML.
The API returns a response XML that indicates the status of the operation.
A sample response XML is provided here.
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 |