Provides the WazuhAgentAddRequest class, which allows
to create the json request body for the POST /agents api endpoint.
- class WazuhAgentAddRequest(name: str, ip: str = None)#
Bases:
objectObject representation of the Wazuh agent add request body.
Wazuh reference: https://documentation.wazuh.com/current/user-manual/api/reference.html#tag/Agents/operation/api.controllers.agent_controller.add_agent
- ip: str#
IP address of the new agent.
- json() str#
Creates a json string which is safe to use for Agent add API requests.
- Returns:
Agent add request JSON body.
- Return type:
str
- name: str#
Name of the new Wazuh agent.