C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
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.Organizations.GetByNameAsync(
"name"
);
}
}package example
import (
context "context"
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
}
mgmt.Organizations.GetByName(
context.TODO(),
"name",
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.organizations().getByName("name");
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->organizations->getByName(
'name',
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.organizations.get_by_name(
name="name",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.organizations.get_by_name(name: "name")
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.organizations.getByName("name");
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.organizations.getByName("name");
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/organizations/name/{name} \
--header 'Authorization: Bearer <token>'{
"branding": {
"colors": {
"page_background": "<string>",
"primary": "<string>"
},
"logo_url": "<string>"
},
"client": {
"use_for_member_access": true
},
"display_name": "Acme Users",
"id": "<string>",
"is_app_entitlement_active": true,
"metadata": {},
"name": "organization-1",
"token_quota": {
"client_credentials": {
"enforce": true,
"per_day": 1073741824,
"per_hour": 1073741824
}
}
}名前から名前を取得
名前で指定した単一の組織の詳細を取得します。
GET
https://{tenantDomain}/api/v2
/
organizations
/
name
/
{name}
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
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.Organizations.GetByNameAsync(
"name"
);
}
}package example
import (
context "context"
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
}
mgmt.Organizations.GetByName(
context.TODO(),
"name",
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.organizations().getByName("name");
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->organizations->getByName(
'name',
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.organizations.get_by_name(
name="name",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.organizations.get_by_name(name: "name")
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.organizations.getByName("name");
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.organizations.getByName("name");
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/organizations/name/{name} \
--header 'Authorization: Bearer <token>'{
"branding": {
"colors": {
"page_background": "<string>",
"primary": "<string>"
},
"logo_url": "<string>"
},
"client": {
"use_for_member_access": true
},
"display_name": "Acme Users",
"id": "<string>",
"is_app_entitlement_active": true,
"metadata": {},
"name": "organization-1",
"token_quota": {
"client_credentials": {
"enforce": true,
"per_day": 1073741824,
"per_hour": 1073741824
}
}
}承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
パスパラメータ
取得する organization の名前。
Required string length:
1 - 50レスポンス
組織を正常に取得しました。
Theme はログインページのスタイルを定義します。
Show child attributes
Show child attributes
include_client_association_for クエリパラメータで渡されたクライアントと organization の関連付け。
Show child attributes
Show child attributes
このorganizationの表示名。
Required string length:
1 - 255organization識別子。
Maximum string length:
50この organization でアプリのエンタイトルメントが有効かどうか。
organization に関連付けられたメタデータです。文字列値を持つオブジェクト形式です(最大255文字)。メタデータのプロパティは最大25個まで設定できます。
Show child attributes
Show child attributes
このorganizationの名前。
Required string length:
1 - 50この organization をサードパーティ クライアントのユーザーフローで使用できるかどうかを制御します。デフォルトは block です。
利用可能なオプション:
block, allow Show child attributes
Show child attributes
⌘I