Глобальная конфигурация

1. Редактирование параметров глобальной конфигурации (PATCH /global_configuration)

{
  "data": {
    "file_transfer_block_size": 16384,
    "data_spred_into_pool": "sequentially",
    "emergency_storage_local_catalog": "/tmp/rubackup_emergency_storage_local_catalog",
    "done_tasks_remove_period": 1440,
    "error_tasks_remove_period": 10080,
    "broken_tasks_remove_period": 10080,
    "killed_tasks_remove_period": 10080,
    "obsoleted_backup_notification_period": 1440,
    "rule_validity_end_notification_period": 1440,
    "strategy_validity_end_notification_period": 1440,
    "rule_storage_capacity_reserve": 0,
    "strategy_storage_capacity_reserve": 0,
    "rule_storage_capacity_notification_period": 1440,
    "strategy_storage_capacity_notification_period": 1440,
    "service_window_start": "00:00:00",
    "service_window_end": "23:59:59",
    "pool_storage_capacity_reserve": 2000000000,
    "tape_library_mount_point": "/opt/rubackup/mnt",
    "suspended_task_restart_period": 1,
    "unload_tape_cartriges_whes_media_server_starts": "yes",
    "ltfs_umount_timeout": 50,
    "max_system_monitoring_records": 3600,
    "monitoring_period": 1,
    "digital_signature_public_key_obsolence": 1440,
    "rb_key_hash": "",
    "verify_archive_after_creation": "no",
    "kill_task_of_offline_client": "yes",
    "create_new_task_if_client_offline": "create new task",
    "auto_delete_archive_from_broken_chain": "no",
    "consolidating_tape_library_tasks": "yes",
    "clean_tape_drives_period": 30,
    "auto_clean_tape_drives": "no",
    "dedup_clean_unused_blocks": "yes",
    "dedup_clean_period": 30,
    "dedup_provide_common_hash_table_for_client": "yes",
    "dedup_provide_common_hash_table": "yes",
    "dedup_verify_only_meta_data": "yes",
    "mandatory_storage_time": 0,
    "clients_capacity_limits": false,
    "global_schedule_capacity_limits": false,
    "backup_strategies_capacity_limits": false,
    "immutable_archives": true,
    "delete_archives_with_zeroing": true,
    "dont_delete_last_gs_rule_archive": true,
    "dont_delete_last_strategy_rule_archive": true,
    "wrong_auth_attempts_count": 5,
    "wrong_auth_block_period": 30,
    "repository_remove_chain": "yes",
    "filesystems_clean_period": 30,
    "show_previous_login_attempts_after_logging_in": "yes",
    "search_backup_in_cluster_group": true,
    "bandwith_limit_advantage": "client",
    "bandwith_client_limit": "minimum",
    "bandwith_rule_limit": "minimum"
  }
}
200 OK

Параметры глобальной конфигурации изменены

400 BAD_REQUEST

Некорректное тело запроса

2. Получение параметров глобальной конфигурации (GET /global_configuration)

200 OK

Параметры глобальной конфигурации получены

3. Включение и выключение сервисного режима (PATCH /global_configuration/service_mode)

{
  "service_mode": false (1)
}
1 Обязательное поле
200 OK

Статус сервисного режима изменен

400 BAD_REQUEST

Некорректное тело запроса