2) Security365 会社別ビルトインプロファイルの照会と更新
Security365 会社別ビルトインプロファイルの照会
API
| Method | URL |
|---|---|
| POST | /builtInProfile/info/all |
Request Header
| Name | Required | Description |
|---|---|---|
| Authorization | required | ユーザー認証手段、JWT値 Authorization: Bearer {JWT}- 参考 : JWT値は認証/認可サービスを通じて発行される。 - 注意 : このトークンは、リクエスト本文に含まれる companyId で発行されたトークンである必要があります。 |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| companyId | required | string | Security365 SHIELD IDサービスに登録されたcompanyId |
Response
| Name | Type | Description |
|---|---|---|
| code | int | 成功の有無 (成功:0) |
| data | JsonArray | ビルトインプロファイルの一覧 |
| key | string | アトリビュート名 |
| value | string | アトリビュート値 |
| desc | string | アトリビュートの詳細 |
| use | string | アトリビュートの使用有無 |
| additionalInformation | string | アトリビュートの説明 |
Examples
Response
- ビルトインプロファイルの取得に成功しました
{
"code": 0,
"data": [
{
"key": "TENANT_APP_ID",
"value": "9a24cf56-aeb0-468d-a15a-f27bf8aa0a95",
"use": true,
"additionalInformation": "회사별 App Id"
},
{
"key": "TENANT_APP_SECRET",
"value": "IictJisoIywlJSUoKSQmKSQlJCwnISIsJCgsKyotISo",
"use": true,
"additionalInformation": "회사별 App Secret"
},
...(생략)
]
}
- トークン検証失敗
{
"code": 40101,
"message": "Invalid token",
"detail": "invalid_token"
}
- 内部サービスの失敗
{
"code": 50001,
"message": "An unexpected error has occurred in the internal system"
}
Security365 会社別ビルトインプロファイルの更新
API
| Method | URL |
|---|---|
| POST | /builtInProfile/info/update |
Request Header
| Name | Required | Description |
|---|---|---|
| Authorization | required | ユーザー認証手段、JWT値 Authorization: Bearer {JWT}- 参考 : JWT値は認証/認可サービスを通じて発行される。 - 注意 : このトークンは、リクエスト本文に含まれる companyId で発行されたトークンである必要があります。 |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| companyId | required | string | Security365 SHIELD IDサービスに登録されたcompanyId |
| data | required | array | ビルトインプロファイルの一覧 |
| key | required | string | アトリビュート名 |
| value | required | string | アトリビュート値 |
| desc | required | string | アトリビュートの詳細 |
| use | required | string | アトリビュートの使用有無 |
| additionalInformation | required | string | アトリビュートの説明 |
Response
| Name | Type | Description |
|---|---|---|
| code | int | 成功の有無 (成功:0) |
| message | string | 応答内容 |
Examples
Response
- ビルトインプロファイルの更新に成功しました
{
"code": 0,
"message" : "BuiltIn Profile Update Successfully"
}
- トークン検証失敗
{
"code": 40101,
"message": "Invalid token",
"detail": "invalid_token"
}
- 必須パラメータなし
{
"code": 40105,
"message": "Required value is missing",
"detail": "Required information is empty."
}
- 内部サービスの失敗
{
"code": 50001,
"message": "An unexpected error has occurred in the internal system"
}