Skip to main content

Чтение параметров тенанта

Метод и конечная точка​

GET /tenants/{tenant_name}

Описание​

Выводит перечень параметров тенанта.

Параметры​

Параметры для метода указаны в таблице.

НазваниеОбязательныйТип данныхОписание
tenant_nameдаstringИмя тенанта

Запрос​

curl -X 'GET' $LOGIN_TOKEN \
"https://admin[-<ENV>].<DEFAULT_DOMAIN>/adminapi/\
tenants/<TENANT_NAME>" \
-H 'accept: application/json'

где <TENANT_NAME>— имя тенанта.

Ответ​

Возможные варианты ответов:

  • 200 — Success — Успешно. Пример вывода:
{
"autoversion_settings": {
"autoversion_time": 0,
"enable_autoversion": 0,
"max_autoversions": 0
},
"default_domain": "string",
"domains": [
"string"
],
"enable_recovery_email": 0,
"enabled": true,
"enabled_users_count": 0,
"excluded_locales": true,
"history_settings": {
"has_history_events": true,
"history_enabled": true,
"history_events_max_count": 0,
"history_expiration_period": 0,
"history_strategy": "string"
},
"id": "string",
"lang": "string",
"max_users": 0,
"name": "string",
"passwordPolicies": {
"length": 0,
"max_keep_passwords": 0,
"min_digits": 0,
"min_lower_case": 0,
"min_upper_case": 0,
"password_exp_time": 0,
"special_characters": 0
},
"public_link_settings": {
"public_link_access_time_without_password": 0,
"public_link_corp_folders_enabled": true,
"public_link_enabled": true,
"public_link_password_required": true,
"public_link_threshold_attempts_number": 0
},
"security_log_settings": {
"is_protect_data_in_security_log": true,
"is_security_log": true,
"siem_host": "string",
"siem_port": "string",
"siem_protocol": "string"
},
"users_count": 0
}
  • 401 — Auth header is not provided or token is invalid — Не указан параметр авторизации или некорректный токен. Пример вывода:
{
"message": "string"
}
  • 404 — Tenant not found — Тенант не найден. Пример вывода:
{
"message": "string"
}