MFA一括無効化
指定したアカウントの多要素認証(MFA)を無効化します。
HTTPリクエスト
POST /api/sonar/users/mfa/disable
cURL例
curl -H "Authorization: Bearer <API_KEY>" \
-d '{"guids":"a1b2c3d4-e5f6-7890-abcd-ef1234567890,b2c3d4e5-f6a7-8901-bcde-f12345678901"}' \
-X POST https://HOSTNAME/api/sonar/users/mfa/disable
リクエストパラメータ
| キー | 必須 | 型 | 説明 | 備考 |
|---|---|---|---|---|
| guids | O | 文字列 | アカウント識別子リスト | カンマ(,)区切りのアカウント識別子リスト |
正常応答
{
"failures": []
}
エラー応答
必須パラメータが不足している場合
HTTPステータスコード 400 応答
{
"error_code": "null-argument",
"error_msg": "guids should be not null"
}
識別子がGUID形式でない場合
HTTPステータスコード 400 応答
{
"error_code": "invalid-param-type",
"error_msg": "guids should be guid type."
}
アカウントが存在しない場合
HTTPステータスコード 200 応答
{
"failures": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"reason": "user-not-found"
}
]
}