A következő objektumok közvetlenül kapcsolódnak a "usermacro" API-hoz.
A globális makró objektum a következő tulajdonságokkal rendelkezik.
| Property | Type | Description |
|---|---|---|
| globalmacroid | string | (readonly) ID of the global macro. |
| macro (required) |
string | Macro string. |
| value (required) |
string | Value of the macro. |
| type | integer | Type of macro. Possible values: 0 - (default) Text macro; 1 - Secret macro; 2 - Vault secret. |
| description | string | Description of the macro. |
Vegye figyelembe, hogy egyes módszereknél (frissítés, törlés) a kötelező/választható paraméterkombináció eltérő.
A gazdagép makróobjektum egy gazdagépen elérhető makrót határoz meg prototípus vagy sablon. A következő tulajdonságokkal rendelkezik.
| Property | Type | Description |
|---|---|---|
| hostmacroid | string | (readonly) ID of the host macro. |
| hostid (required) |
string | ID of the host that the macro belongs to. |
| macro (required) |
string | Macro string. |
| value (required) |
string | Value of the macro. |
| type | integer | Type of macro. Possible values: 0 - (default) Text macro; 1 - Secret macro; 2 - Vault secret. |
| description | string | Description of the macro. |
Vegye figyelembe, hogy egyes módszereknél (frissítés, törlés) a kötelező/választható paraméterkombináció eltérő.