メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
guardian
/
enrollments
/
{id}
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.Enrollments.Get(
        context.TODO(),
        "id",
    )
}
{
  "id": "dev_0000000000000001",
  "enrolled_at": "2016-07-12T17:56:26.804Z",
  "identifier": "76dc-a90c-a88c-a90c-a88c-a88c-a90c",
  "last_auth": "2016-07-12T17:56:26.804Z",
  "name": "iPhone 7",
  "phone_number": "+1 999999999999",
  "status": "pending"
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

取得する登録のID。

レスポンス

登録を正常に取得しました。

id
string
デフォルト:dev_0000000000000001
必須

この登録の ID。

enrolled_at
string
デフォルト:2016-07-12T17:56:26.804Z

登録日時。

identifier
string
デフォルト:76dc-a90c-a88c-a90c-a88c-a88c-a90c

デバイス識別子。通常は電話番号の識別子です。

last_auth
string
デフォルト:2016-07-12T17:56:26.804Z

登録日時。

name
string
デフォルト:iPhone 7

デバイス名(プッシュ通知の場合のみ)。

Required string length: 1 - 20
Pattern: ^\+[0-9]{8, 20}
phone_number
string
デフォルト:+1 999999999999

電話番号。

status
enum<string>
デフォルト:pending

この登録のステータス。pending または confirmed です。

利用可能なオプション:
pending,
confirmed