usermacro.get

    The method allows to retrieve host and global macros according to the given parameters.

    This method is available to users of any type. Permissions to call the method can be revoked in user role settings. See for more information.

    (object) Parameters defining the desired output.

    (integer/array) Returns either:

    • an array of objects;

    Retrieving host macros for a host

    Retrieve all host macros defined for host “10198”.

    Request:

    Retrieving global macros

    Retrieve all global macros.

    Request:

    Response: