メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
logs
/
{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.Logs.Get(
        context.TODO(),
        "id",
    )
}
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.logs.get("id");
}
main();
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.logs.get("id");
}
main();
curl --request GET \
  --url https://{tenantDomain}/api/v2/logs/{id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://{tenantDomain}/api/v2/logs/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://{tenantDomain}/api/v2/logs/{id}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
HttpResponse<String> response = Unirest.get("https://{tenantDomain}/api/v2/logs/{id}")
  .header("Authorization", "Bearer <token>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://{tenantDomain}/api/v2/logs/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "date": "2016-02-23T19:57:29.532Z",
  "type": "sapi",
  "description": "<string>",
  "connection": "<string>",
  "connection_id": "<string>",
  "client_id": "AaiyAPdpYdesoKnqjj8HJqRn4T5titww",
  "client_name": "My application Name",
  "ip": "190.257.209.19",
  "hostname": "190.257.209.19",
  "user_id": "auth0|56c75c4e42b6359e98374bc2",
  "user_name": "<string>",
  "audience": "<string>",
  "scope": "",
  "strategy": "<string>",
  "strategy_type": "<string>",
  "log_id": "<string>",
  "isMobile": true,
  "details": {},
  "user_agent": "<string>",
  "security_context": {
    "ja3": "<string>",
    "ja4": "<string>"
  },
  "location_info": {
    "country_code": "<string>",
    "country_code3": "<string>",
    "country_name": "<string>",
    "city_name": "<string>",
    "latitude": 123,
    "longitude": 123,
    "time_zone": "<string>",
    "continent_code": "<string>"
  }
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

log_id of the log to retrieve.

レスポンス

Log successfully retrieved.

date
デフォルト:2016-02-23T19:57:29.532Z

Date when the event occurred in ISO 8601 format.

type
string
デフォルト:sapi

Type of event.

description
string | null

Description of this event.

connection
string

Name of the connection the event relates to.

connection_id
string

ID of the connection the event relates to.

client_id
string
デフォルト:AaiyAPdpYdesoKnqjj8HJqRn4T5titww

ID of the client (application).

client_name
string
デフォルト:My application Name

Name of the client (application).

ip
string
デフォルト:190.257.209.19

IP address of the log event source.

hostname
string
デフォルト:190.257.209.19

Hostname the event applies to.

user_id
string
デフォルト:auth0|56c75c4e42b6359e98374bc2

ID of the user involved in the event.

user_name
string

Name of the user involved in the event.

audience
string

API audience the event applies to.

scope
string
デフォルト:""

Scope permissions applied to the event.

strategy
string

Name of the strategy involved in the event.

strategy_type
string

Type of strategy involved in the event.

log_id
string

Unique ID of the event.

isMobile
boolean

Whether the client was a mobile device (true) or desktop/laptop/server (false).

details
object

Additional useful details about this event (structure is dependent upon event type).

user_agent
string

User agent string from the client device that caused the event.

security_context
object

Information about security-related signals.

location_info
object

Information about the location that triggered this event based on the ip.