This is a translation of the original English documentation page. Help us make it better.

mfa.update

Beschrijving

object mfa.update(object/array MFA methods)

Deze methode maakt het mogelijk om bestaande MFA-methoden bij te werken.

Deze methode is alleen beschikbaar voor het gebruikerstype Super admin. Rechten om de methode aan te roepen, kunnen worden ingetrokken in de instellingen van de gebruikersrol. Zie Gebruikersrollen voor meer informatie.

Parameters

(object/array) MFA method properties to be updated.

The mfaid property must be defined for each item, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.

The method accepts MFA methods with the standard MFA method properties.

Retourwaarden

(object) Retourneert een object met de ID's van de bijgewerkte MFA-methoden onder de eigenschap mfaids.

Voorbeelden

Updating method properties

Update the hash function for generating TOTP codes and the verification code length for the "Zabbix TOTP" MFA method utilizing time-based one-time passwords (TOTP).

Request:

{
           "jsonrpc": "2.0",
           "method": "mfa.update",
           "params": {
               "mfaid": "1",
               "hash_function": 3,
               "code_length": 8
           },
           "id": 1
       }
Copy
✔ Copied

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "mfaids": [
                   "1"
               ]
           },
           "id": 1
       }
Copy
✔ Copied

Source

CMfa::update() in ui/include/classes/api/services/CMfa.php.

To toggle search highlight, press Ctrl+Alt+H
Have an improvement suggestion for this page? Select the text that could be improved and press Ctrl+Enter to send it to the editors.