- About Veeam Recovery Orchestrator REST API
- Overview
- Changelog
- Token
- Mfa
- Clients
- Plans
- getGet Collection of Plans
- getGet Plan Data
- getGet VMs Added to Inventory Group in Plan
- getGet All Groups in Plan
- getGet Parameters Configured for Step in Plan
- getGet Steps Added for VM in Plan
- getGet Steps Added to Virtual Group in Plan
- postEnable Plan
- postDisable Plan
- postHalt Plan
- postRun Permanent Failover
- postFail Back to Source VMs
- postPrepare for Failback
- postSwitchover to Production
- postCommit Failback
- postUndo Plan
- postReset Plan State
- postClear Change Log History for Plan
- postRun Failover
- postRun Restore Plan
- postContinue Plan Execution
- postRun Readiness Check
- delDelete Plan Schedule
- putSchedule Plan to Run at Specific Time
- putSchedule Plan to Run After Another Plan
- postClone Plan
- RecoveryLocations
- RuntimeDetails
- Scopes
- LicenseUsage
Generate MFA Secret Code
The HTTP POST request to the /Mfa/GenerateMfaCode
path retrieves an MFA secret code that must be used to configure MFA for a user.
SecurityuserAuth or clientAuth
Request
Request Body schema: application/json
mfaToken | string or null MFA token. |
Responses
200
OK
400
Bad request. The request body is malformed, incomplete or otherwise invalid.
401
Unauthorized request. The authorization field in the request has been expected but not found, found but expired or the MFA secret code has already been generated.
500
Internal server error.
post/api/v7.21/Mfa/GenerateMfaCode
Request samples
- Payload
- curl
- Python
- JavaScript
- C#
- Go
application/json
{- "mfaToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiSm9obiBEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.hqWGSaFpvbrXkOWc6lrnffhNWR19W_S1YKFBx2arWBk"
}
Response samples
- 200
application/json
{- "mfaKey": "HBIG4FZN5XM7RGZCYWM76EGEYLFZ6OYK",
- "mfaQrCodeUrl": "otpauth://totp/domain%5CAdministrator?secret=HBIG4FZN5XM7RGZCYWM76E111LFZ6OYK&issuer=Machine Name"
}