Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
actions
/
executions
/
{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.Actions.Executions.Get(
        context.TODO(),
        "id",
    )
}
import { ManagementClient } from "auth0";

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

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

url = "https://{tenantDomain}/api/v2/actions/executions/{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/actions/executions/{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/actions/executions/{id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://{tenantDomain}/api/v2/actions/executions/{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
{
  "id": "c5b35bb1-c67d-40bb-9b0d-700b6fe33dd9",
  "status": "final",
  "results": [
    {
      "action_name": "my-action",
      "error": {
        "id": "<string>",
        "msg": "<string>",
        "url": "<string>"
      },
      "started_at": "2021-01-01T00:00:00.000Z",
      "ended_at": "2021-01-01T00:00:00.000Z"
    }
  ],
  "created_at": "2021-01-01T00:00:00.000Z",
  "updated_at": "2021-01-01T00:00:00.000Z"
}

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

id
string
requis

The ID of the execution to retrieve.

Réponse

The execution was retrieved.

The result of a specific execution of a trigger.

id
string
défaut:c5b35bb1-c67d-40bb-9b0d-700b6fe33dd9

ID identifies this specific execution simulation. These IDs would resemble real executions in production.

trigger_id
enum<string>

An actions extensibility point.

Options disponibles:
post-login,
credentials-exchange,
pre-user-registration,
post-user-registration,
post-change-password,
send-phone-message,
custom-phone-provider,
custom-email-provider,
password-reset-post-challenge,
custom-token-exchange,
event-stream,
password-hash-migration,
login-post-identifier,
signup-post-identifier
status
enum<string>
défaut:final

The overall status of an execution.

Options disponibles:
unspecified,
pending,
final,
partial,
canceled,
suspended
results
object[]
created_at
string<date-time>
défaut:2021-01-01T00:00:00.000Z

The time that the execution was started.

updated_at
string<date-time>
défaut:2021-01-01T00:00:00.000Z

The time that the exeution finished executing.