メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
guardian
/
factors
Go
package example

import (
    context "context"

    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Guardian.Factors.List(
        context.TODO(),
    )
}
[
  {
    "enabled": true,
    "name": "sms",
    "trial_expired": true
  }
]

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

レスポンス

認証要素が正常に取得されました。

enabled
boolean
デフォルト:true
必須

この認証要素が有効(true)か無効(false)か。

name
enum<string>
デフォルト:sms

認証要素名。smspush-notificationemailduootpwebauthn-roamingwebauthn-platform、または recovery-code です。

利用可能なオプション:
push-notification,
sms,
email,
duo,
otp,
webauthn-roaming,
webauthn-platform,
recovery-code
Minimum string length: 1
trial_expired
boolean
デフォルト:true

試用版の制限を超過しているかどうか。