Classic/VPC環境で利用できます。
Tenantの詳細情報を照会します。
リクエスト
リクエスト形式を説明します。 リクエスト形式は次の通りです。
| メソッド | URI |
|---|---|
| GET | /api/v1/tenant |
リクエストヘッダ
Ncloud Single Sign-On APIで共通して使用されるヘッダの詳細は、Ncloud Single Sign-Onのリクエストヘッダをご参照ください。
リクエスト例
リクエストのサンプルコードは次の通りです。
curl --location --request GET 'https://sso.apigw.ntruss.com/api/v1/tenant' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
レスポンス
レスポンス形式を説明します。
レスポンスボディ
レスポンスボディの説明は次の通りです。
| フィールド | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
tenantId |
String | - | Tenant ID |
tenantAlias |
String | - | Tenant Alias(エイリアス) |
mbrLoginAllow |
String | - | メインアカウントでログインできるかどうか
|
idleSessionExpDuration |
Integer | - | ログインした外部アカウントのセッションタイムアウト(秒)
|
multipleLoginAllowed |
Boolean | - | 重複ログインを許可するかどうか
|
organizationEnabled |
Boolean | - | Organizationの連携状態
|
organizationEnabledAt |
String | - | Organizationの連携日時
|
protocols |
Array | - | サポートプロトコル |
applicationTypeSupported |
Array | - | Applicationのタイプ |
oauth2 |
Object | - | OAuth 2.0情報 |
oauth2.grantTypeSupported |
Array | - | 権限付与方法
|
oauth2.responseTypeSupported |
Array | - | OAuth 2.0や OpenID Connectプロトコルでサポートするレスポンスタイプ |
oauth2.scopeSupported |
Array | - | Applicationのアクセス可能な情報の範囲
|
oauth2.clientAuthMethodSupported |
Array | - | Applicationの認証方法
|
oauth2.accessTypeSupported |
Array | - | Applicationアクセス方法
|
isIdpExist |
Boolean | - | External IdPを作成するかどうか
|
createdAt |
String | - | Tenantの作成日時
|
possessionAuthenticationEnabled |
Boolean | - | 占有認証を適用するかどうか
|
possessionAuthenticationTypes |
Array | - | 占有認証手段のタイプ
|
multiFactorAuthenticationEnabled |
Boolean | - | 2段階認証を適用するかどうか
|
レスポンスステータスコード
Ncloud Single Sign-On APIで共通して使用されるレスポンスステータスコードの詳細は、Ncloud Single Sign-Onのレスポンスステータスコードをご参照ください。
レスポンス例
レスポンスのサンプルコードは次の通りです。
{
"tenantId": "bc1fb745-****-****-****-9fc9f7c16369",
"tenantAlias": "bc1fb745-****-****-****-9fc9f7c16369",
"mbrLoginAllow": "UNUSED",
"idleSessionExpDuration": 600,
"multipleLoginAllowed": true,
"organizationEnabled": true,
"organizationEnabledAt": "2025-01-21T00:33:55Z",
"protocols": [
"OAUTH2"
],
"applicationTypeSupported": [
"app",
"web"
],
"oauth2": {
"grantTypeSupported": [
"authorization_code",
"implicit",
"refresh_token"
],
"responseTypeSupported": [
"code",
"token",
"id_token"
],
"scopeSupported": [
"profile",
"openid",
"groups",
"email"
],
"clientAuthMethodSupported": [
"client_secret_basic"
],
"accessTypeSupported": [
"confidential"
]
},
"isIdpExist": true,
"createdAt": "2025-01-20T00:33:55Z",
"possessionAuthenticationEnabled": true,
"possessionAuthenticationTypes": [
"SMS"
],
"multiFactorAuthenticationEnabled": true
}