1. MFA管理接口
platform
  • MFA管理接口
    • 绑定MFA设备
      POST
    • 激活MFA设备
      POST
    • 解绑MFA设备
      POST
    • 查询MFA状态
      GET
    • 注册可信设备
      POST
    • 查询可信设备列表
      GET
    • 撤销可信设备
      DELETE
    • 撤销所有可信设备
      DELETE
    • 设置主管理设备
      PUT
    • 验证并消耗备份码
      POST
  • 数据模型
    • MfaBindResponse
    • key
    • MapMapString
    • ResultVOMfaBindResponse
    • MfaBindRequest
    • ResultVOVoid
    • MfaActivateRequest
    • MfaUnbindRequest
    • MfaStatusResponse
    • ResultVOMfaStatusResponse
    • TrustedDeviceVO
    • ResultVOTrustedDeviceVO
    • TrustedDeviceRegisterRequest
    • TrustedDeviceListResponse
    • ResultVOTrustedDeviceListResponse
    • ResultVOInteger
    • SetPrimaryTrustedDeviceRequest
    • MfaBackupCodeVerifyRequest
  1. MFA管理接口

设置主管理设备

PUT
/${platform.component.mfa.management.api-prefix:/mfa}/trusted-devices/{deviceId}/primary

仅当前主设备可将另一台设备设为主设备;主设备可移除其他可信设备,非主设备仅可查看。

API路径:PUT /api/mfa/trusted-devices/{deviceId}/primary

请求体:[设为主管理设备请求

仅当前主设备可将另一台设备设为主设备;主设备可移除其他可信设备,非主设备仅可查看。](userId、currentDeviceId 必填;tenantId 可选)

请求参数

Path 参数

Body 参数application/json

示例
{
    "userId": "string",
    "currentDeviceId": "string",
    "tenantId": "string"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --globoff --request PUT '/${platform.component.mfa.management.api-prefix:/mfa}/trusted-devices//primary' \
--header 'Content-Type: application/json' \
--data '{
    "userId": "string",
    "currentDeviceId": "string",
    "tenantId": "string"
}'

返回响应

🟢200
application/json
Bodyapplication/json

示例
{
  "data": null,
  "code": "",
  "msg": "",
  "i18nDict": {
    "": {
      "": ""
    }
  },
  "timestamp": 0
}
修改于 2026-02-03 14:05:35
上一页
撤销所有可信设备
下一页
验证并消耗备份码
Built with