Provides the WazuhApiInfo class, which allows to parse the GET / api endpoint’s response data.

class WazuhApiInfo(**kwargs)#

Bases: object

Object representation of the wazuh GET / api endpoint.

Wazuh reference: https://documentation.wazuh.com/current/user-manual/api/reference.html#tag/API-Info/operation/api.controllers.default_controller.default_info

get_version() Version#

Creates a semver.Version representation of the API’s version string.

Returns:

semver.Version representation of the API version.

Return type:

Version

hostname: str#

Server hostname.

license_name: str#

API license name.

license_url: str#

API license url.

revision: str#

API revision.

timestamp: str#

Timestamp of the record.

title: str#

API title name.

version: str#

API version of the Wazuh manager. The version has a semantic versioning format with a v prefix:

v<major>.<minor>.<patch>