//  Copyright (c) 2024 Huawei Technologies Co., Ltd.
//  openUBMC is licensed under Mulan PSL v2.
//  You can use this software according to the terms and conditions of the Mulan PSL v2.
//  You may obtain a copy of Mulan PSL v2 at:
//        #  http://license.coscl.org.cn/MulanPSL2
//  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
//  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
//  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
//  See the Mulan PSL v2 for more details.
export const UI_REST_LOGIN = '/UI/Rest/Login';
export const UI_REST_KVM = '/UI/Rest/KVMHandler';
export const UI_REST_KEEPALIVE = '/UI/Rest/KeepAlive';
export const UI_REST_RIGHT_MANAGEMENT = '/UI/Rest/AccessMgnt/RightManagement';
export const UI_REST_ADVANCE_SECURITY = '/UI/Rest/AccessMgnt/AdvancedSecurity';
export const UI_RESET_LOGINOUT = '/UI/Rest/Sessions/{sid}';
export const UI_RESET_GENERIC = '/UI/Rest/GenericInfo';
export const UI_RESET_SESSIONS = '/UI/Rest/Sessions';
export const UI_RESET_TWOFAC = '/UI/Rest/MutualHandler';
export const UI_RESET_KRBSSO = '/UI/Rest/KerberosHandler';
export const UI_REST_REAUTH = '/UI/Rest/ReauthBeforeUpload';
export const UI_REST_RSAKEY = '/UI/Rest/AccessMgnt/Encryption';

// 通用上传文件接口
export const UI_REST_FIRMWAREINVENTORY = '/UI/Rest/FirmwareInventory';
export const UI_REST_GENERALDOWNLOAD = '/UI/Rest/GeneralDownload';

// 系统管理
export const UI_REST_PROCESSOR = '/UI/Rest/System/Processor';
export const UI_REST_PRODUCT_INFO = '/UI/Rest/System/ProductInfo';
export const UI_REST_SYSTEM_MEMORY = '/UI/Rest/System/Memory';
export const UI_REST_SYSTEM_UNITS = '/UI/Rest/System/Units';
export const UI_REST_SYSTEM_BOARDS = '/UI/Rest/System/Boards';
export const UI_REST_SYSTEM_THERMAL = '/UI/Rest/System/Thermal';
export const UI_REST_CLEAR_INLET_HISTORY = '/UI/Rest/System/Thermal/ClearInletHistory';
export const UI_REST_BIOS = '/UI/Rest/System/BootOptions';
export const getSystemBootOptionsUrl = (systemId: string):string => `/UI/Rest/Systems/${systemId}/BootOptions`;
export const UI_REST_ENERGY_SAVING = '/UI/Rest/System/EnergySaving';
export const UI_REST_CPU = '/UI/Rest/System/CPUAdjust';
export const UI_REST_LCN_DOWNLOAD = '/UI/Rest/Maintenance/SystemDiagnostic/DownloadLCNLog';

// 服务管理
export const UI_REST_SERVICE_PORT = '/UI/Rest/Services/PortConfig';
export const UI_REST_SERVICES_WEBSERVICE = '/UI/Rest/Services/WEBService';
export const UI_REST_SERVICE_WEBSERVICE_EXPORTCSR = '/UI/Rest/Services/WEBService/ExportCSR';

// 用户管理
export const UI_REST_ACCESSMGNT_ADVANCEDSECURITY = '/UI/Rest/AccessMgnt/AdvancedSecurity';
export const UI_REST_LDAP_CONTROLLER = '/UI/Rest/AccessMgnt/LDAP/{id}';
export const UI_REST_LDAP_CERT = '/UI/Rest/AccessMgnt/LDAP/{id}/ImportLDAPCertificate';
export const UI_REST_LDAP_CRL_CERT = '/UI/Rest/AccessMgnt/LDAP/{id}/ImportCrlVerification';
export const UI_REST_ACCESSMGNT_ACCOUNTS_USER = '/UI/Rest/AccessMgnt/Accounts/{id}';

// iBMC管理
export const UI_REST_BMCSETTING_NTP = '/UI/Rest/BMCSettings/NTP';
export const UI_REST_NTP_IMPORTKEY = '/UI/Rest/BMCSettings/NTP/ImportKey';
export const UI_REST_LANGUAGE = '/UI/Rest/BMCSettings/Language';
export const UI_REST_CLOSE_LANGUAGE = '/UI/Rest/BMCSettings/Language/CloseLanguage';
export const UI_REST_OPEN_LANGUAGE = '/UI/Rest/BMCSettings/Language/OpenLanguage';
export const UI_REST_IMPORTCONFIG = '/UI/Rest/BMCSettings/Configuration/ImportConfig';
export const UI_REST_EXPORTCONFIG = '/UI/Rest/BMCSettings/Configuration/ExportConfig';
export const UI_REST_IMPORT_PROGRESS = '/UI/Rest/BMCSettings/Configuration/ImportExportProgress';

// FRU信息
export const UI_REST_FRU = '/UI/Rest/System/Fru';
