C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Flows;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.Flows.Executions.ListAsync(
flowId: "flow_id",
request: new ListFlowExecutionsRequestParameters {
From = "from",
Take = 1
}
);
}
}package example
import (
context "context"
management "github.com/auth0/go-auth0/v3/management"
client "github.com/auth0/go-auth0/v3/management/client"
option "github.com/auth0/go-auth0/v3/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &management.ExecutionsListRequest{
From: management.String(
"from",
),
Take: management.Int(
1,
),
}
mgmt.Flows.Executions.List(
context.TODO(),
"flow_id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.flows.types.ListFlowExecutionsRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.flows().executions().list(
"flow_id",
ListFlowExecutionsRequestParameters
.builder()
.from("from")
.take(1)
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Flows\Executions\Requests\ListFlowExecutionsRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->flows->executions->list(
'flow_id',
new ListFlowExecutionsRequestParameters([
'from' => 'from',
'take' => 1,
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.flows.executions.list(
flow_id="flow_id",
from="from",
take=1,
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.flows.executions.list(
flow_id: "flow_id",
from: "from",
take: 1
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.flows.executions.list("flow_id", {
from: "from",
take: 1,
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.flows.executions.list("flow_id", {
from: "from",
take: 1,
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/flows/{flow_id}/executions \
--header 'Authorization: Bearer <token>'[
{
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"status": "<string>",
"trace_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"journey_id": "<string>",
"started_at": "2023-11-07T05:31:56Z"
}
]Flows の実行を取得
GET
https://{tenantDomain}/api/v2
/
flows
/
{flow_id}
/
executions
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Flows;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.Flows.Executions.ListAsync(
flowId: "flow_id",
request: new ListFlowExecutionsRequestParameters {
From = "from",
Take = 1
}
);
}
}package example
import (
context "context"
management "github.com/auth0/go-auth0/v3/management"
client "github.com/auth0/go-auth0/v3/management/client"
option "github.com/auth0/go-auth0/v3/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &management.ExecutionsListRequest{
From: management.String(
"from",
),
Take: management.Int(
1,
),
}
mgmt.Flows.Executions.List(
context.TODO(),
"flow_id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.flows.types.ListFlowExecutionsRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.flows().executions().list(
"flow_id",
ListFlowExecutionsRequestParameters
.builder()
.from("from")
.take(1)
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Flows\Executions\Requests\ListFlowExecutionsRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->flows->executions->list(
'flow_id',
new ListFlowExecutionsRequestParameters([
'from' => 'from',
'take' => 1,
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.flows.executions.list(
flow_id="flow_id",
from="from",
take=1,
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.flows.executions.list(
flow_id: "flow_id",
from: "from",
take: 1
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.flows.executions.list("flow_id", {
from: "from",
take: 1,
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.flows.executions.list("flow_id", {
from: "from",
take: 1,
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/flows/{flow_id}/executions \
--header 'Authorization: Bearer <token>'[
{
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"status": "<string>",
"trace_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"journey_id": "<string>",
"started_at": "2023-11-07T05:31:56Z"
}
]承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
パスパラメータ
フロー ID
Maximum string length:
30クエリパラメータ
返される結果のページ番号。最初のページは 0 です。
必須範囲:
x >= 01 ページあたりの結果数。デフォルトは 50 です。
必須範囲:
1 <= x <= 100結果を、総件数を含むオブジェクト内に返すか(true)、結果の配列を直接返すか(false、デフォルト)を指定します。
選択開始位置となる任意の ID。
1 ページあたりの結果数。デフォルトは 50 です。
必須範囲:
1 <= x <= 100レスポンス
フローの実行を正常に取得しました。
- Option 1 · object[]
- Option 2 · object
- Option 3 · object
このフロー実行が作成された日時(ISO 8601形式)。
フロー実行識別子
Maximum string length:
30実行ステータス
Required string length:
1 - 50トレース ID
Required string length:
1 - 50このフロー実行が更新された日時(ISO 8601形式)。
このフロー実行が終了した日時(ISO 8601形式)。
ジャーニー ID
Required string length:
1 - 50このフロー実行が開始された日時(ISO 8601形式)。
⌘I