> User macro object

    Host macro

    PropertyTypeDescription
    hostmacroidstringID of the host macro.

    :
    - read-only
    - required for update operations
    hostidstringID of the host that the macro belongs to.

    Property behavior:
    - constant
    - required for create operations
    macrostringMacro string.

    :
    - required for create operations
    valuestringValue of the macro.

    Property behavior:
    - write-only if is set to “Secret macro”
    - required for create operations
    typeintegerType of macro.

    Possible values:
    0 - (default) Text macro;
    1 - Secret macro;
    2 - Vault secret.
    descriptionstringDescription of the macro.
    automaticintegerDefines whether the macro is controlled by discovery rule.

    Possible values:
    0 - (default) Macro is managed by user;
    1 - Macro is managed by discovery rule.

    User is not allowed to create automatic macro.
    To update automatic macro, it must be .