C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Connections;
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.Connections.Clients.GetAsync(
id: "id",
request: new GetConnectionEnabledClientsRequestParameters {
Take = 1,
From = "from"
}
);
}
}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.GetConnectionEnabledClientsRequestParameters{
Take: management.Int(
1,
),
From: management.String(
"from",
),
}
mgmt.Connections.Clients.Get(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.connections.types.GetConnectionEnabledClientsRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.connections().clients().get(
"id",
GetConnectionEnabledClientsRequestParameters
.builder()
.take(1)
.from("from")
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Connections\Clients\Requests\GetConnectionEnabledClientsRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->connections->clients->get(
'id',
new GetConnectionEnabledClientsRequestParameters([
'take' => 1,
'from' => 'from',
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.connections.clients.get(
id="id",
take=1,
from="from",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.connections.clients.get(
id: "id",
take: 1,
from: "from"
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.connections.clients.get("id", {
take: 1,
from: "from",
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.connections.clients.get("id", {
take: 1,
from: "from",
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/connections/{id}/clients \
--header 'Authorization: Bearer <token>'{
"clients": [
{
"client_id": "<string>"
}
],
"next": "<string>"
}接続のクライアントを取得
指定した接続が有効になっているすべてのクライアントを取得します。
注: この endpoint を初めて呼び出すときは、from パラメーターを省略してください。さらに結果がある場合は、レスポンスに next の値が含まれます。これは後続の API 呼び出しで使用できます。レスポンスに next が含まれなくなった時点で、残りの結果はありません。
GET
https://{tenantDomain}/api/v2
/
connections
/
{id}
/
clients
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Connections;
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.Connections.Clients.GetAsync(
id: "id",
request: new GetConnectionEnabledClientsRequestParameters {
Take = 1,
From = "from"
}
);
}
}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.GetConnectionEnabledClientsRequestParameters{
Take: management.Int(
1,
),
From: management.String(
"from",
),
}
mgmt.Connections.Clients.Get(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.connections.types.GetConnectionEnabledClientsRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.connections().clients().get(
"id",
GetConnectionEnabledClientsRequestParameters
.builder()
.take(1)
.from("from")
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Connections\Clients\Requests\GetConnectionEnabledClientsRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->connections->clients->get(
'id',
new GetConnectionEnabledClientsRequestParameters([
'take' => 1,
'from' => 'from',
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.connections.clients.get(
id="id",
take=1,
from="from",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.connections.clients.get(
id: "id",
take: 1,
from: "from"
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.connections.clients.get("id", {
take: 1,
from: "from",
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.connections.clients.get("id", {
take: 1,
from: "from",
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/connections/{id}/clients \
--header 'Authorization: Bearer <token>'{
"clients": [
{
"client_id": "<string>"
}
],
"next": "<string>"
}承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
パスパラメータ
有効なクライアントを取得する対象の接続の ID
クエリパラメータ
1 ページあたりの結果数。デフォルトは 50 です。
必須範囲:
1 <= x <= 1000取得開始位置を指定する任意の ID。
Maximum string length:
1000⌘I