メインコンテンツへスキップ
GET
/
guardian
/
enrollments
/
{id}
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.guardian.enrollments.get("id");
}
main();
{
  "id": "dev_0000000000000001",
  "status": "pending",
  "name": "iPhone 7",
  "identifier": "76dc-a90c-a88c-a90c-a88c-a88c-a90c",
  "phone_number": "+1 999999999999",
  "enrolled_at": "2016-07-12T17:56:26.804Z",
  "last_auth": "2016-07-12T17:56:26.804Z"
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

ID of the enrollment to be retrieve.

Pattern: ^((totp|sms|voice|push|email|recovery-code|webauthn-roaming|webauthn-platform)\|)?dev_[A-Za-z0-9-_]+$

レスポンス

Enrollment successfully retrieved.

id
string
デフォルト:dev_0000000000000001
必須

ID for this enrollment.

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

Status of this enrollment. Can be pending or confirmed.

利用可能なオプション:
pending,
confirmed
name
string
デフォルト:iPhone 7

Device name (only for push notification).

Required string length: 1 - 20
Pattern: ^\+[0-9]{8, 20}
identifier
string
デフォルト:76dc-a90c-a88c-a90c-a88c-a88c-a90c

Device identifier. This is usually the phone identifier.

phone_number
string
デフォルト:+1 999999999999

Phone number.

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

Enrollment date and time.

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

Enrollment date and time.