Home
last modified time | relevance | path

Searched refs:APIUtils (Results 1 – 25 of 28) sorted by relevance

12

/openbmc/phosphor-webui/app/overview/controllers/
H A Dsystem-overview-controller.js34 var getLogsPromise = APIUtils.getLogs().then(
44 var getFirmwaresPromise = APIUtils.getFirmwares().then(
53 var getLEDStatePromise = APIUtils.getLEDState().then(
55 if (data == APIUtils.LED_STATE.on) {
65 var getBMCTimePromise = APIUtils.getBMCTime().then(
89 var getPowerCapPromise = APIUtils.getPowerCap().then(
132 APIUtils.LED_STATE.off :
133 APIUtils.LED_STATE.on;
136 APIUtils.LED_STATE_TEXT.off :
137 APIUtils.LED_STATE_TEXT.on;
[all …]
/openbmc/phosphor-webui/app/server-control/controllers/
H A Dserver-led-controller.js17 APIUtils.getLEDState().then(function(state) {
22 if (state == APIUtils.LED_STATE.on) {
23 dataService.LED_state = APIUtils.LED_STATE_TEXT.on;
25 dataService.LED_state = APIUtils.LED_STATE_TEXT.off;
31 (dataService.LED_state == APIUtils.LED_STATE_TEXT.on) ?
32 APIUtils.LED_STATE.off :
33 APIUtils.LED_STATE.on;
35 (dataService.LED_state == APIUtils.LED_STATE_TEXT.on) ?
36 APIUtils.LED_STATE_TEXT.off :
37 APIUtils.LED_STATE_TEXT.on;
[all …]
H A Dpower-operations-controller.js75 APIUtils.hostReboot()
105 APIUtils.chassisPowerOff()
114 return APIUtils.hostPowerOn();
139 APIUtils.hostPowerOff()
163 APIUtils.chassisPowerOff()
190 APIUtils.hostPowerOn()
273 APIUtils.getBootOptions()
308 APIUtils.getTPMStatus()
342 APIUtils.saveBootSettings(data).then(
365 APIUtils.saveTPMEnable(tpmEnabled)
[all …]
H A Dpower-usage-controller.js14 function($scope, $window, APIUtils, $route, $q, toastService) { argument
23 var getPowerCapPromise = APIUtils.getPowerCap().then(
31 var getPowerConsumptionPromise = APIUtils.getPowerConsumption().then(
79 return APIUtils.setPowerCap($scope.power_cap.PowerCap)
89 return APIUtils.setPowerCapEnable($scope.power_cap.PowerCapEnable)
H A Dbmc-reboot-controller.js14 function($scope, $window, APIUtils, dataService, toastService) { argument
17 APIUtils.getLastRebootTime().then(
31 APIUtils.bmcReboot().then(
/openbmc/phosphor-webui/app/common/services/
H A DuserModel.js15 function($cookies, APIUtils) { argument
18 APIUtils.login(username, password, function(response, error) {
20 (response.status == APIUtils.API_RESPONSE.SUCCESS_STATUS ||
46 APIUtils.logout(function(response, error) {
48 response.status == APIUtils.API_RESPONSE.SUCCESS_STATUS) {
50 sessionStorage.removeItem(APIUtils.HOST_SESSION_STORAGE_KEY);
53 } else if (response.status == APIUtils.API_RESPONSE.ERROR_STATUS) {
/openbmc/phosphor-webui/app/configuration/controllers/
H A Dfirmware-controller.js60 APIUtils.getActivation(imageId).then(
96 APIUtils.activateImage($scope.activate_image_id)
119 APIUtils.bmcReboot().then(
145 APIUtils.hostPowerOn()
150 return APIUtils.pollHostStatusTillOn();
160 APIUtils.hostReboot()
165 return APIUtils.pollHostStatusTilReboot();
180 APIUtils.uploadImage($scope.file)
215 APIUtils.getFirmwares().then(
241 APIUtils.getFirmwares()
[all …]
H A Dnetwork-controller.js16 $scope, $window, APIUtils, dataService, $timeout, $route, $q, argument
100 if (!APIUtils.validIPV4IP(
109 !APIUtils.validIPV4IP(
170 return APIUtils
192 return APIUtils.setHostname($scope.hostname)
202 return APIUtils
214 return APIUtils
238 return APIUtils
255 return APIUtils
261 return APIUtils
[all …]
H A Ddate-time-controller.js14 function($scope, APIUtils, $route, $q, toastService, $timeout) { argument
26 var getTimePromise = APIUtils.getTime().then(
68 var getNTPPromise = APIUtils.getNTPServers().then(
171 return APIUtils.setNTPServers($scope.ntp.servers);
175 return APIUtils.setTimeMode(
181 return APIUtils.setTimeOwner(
188 return APIUtils.setBMCTime(time);
194 return APIUtils.setHostTime(time);
H A Dsnmp-controller.js14 function($scope, $window, APIUtils, $route, $q, toastService) { argument
19 var getSNMPManagers = APIUtils.getSNMPManagers().then(
118 return APIUtils.addSNMPManager(address, port);
122 return APIUtils.deleteObject(path);
126 return APIUtils.setSNMPManagerAddress(path, address);
130 return APIUtils.setSNMPManagerPort(path, port);
/openbmc/phosphor-webui/app/common/directives/
H A Dldap-user-roles.js6 function(APIUtils) { argument
13 function($scope, APIUtils, toastService, $q) {
27 APIUtils.getAccountServiceRoles()
58 APIUtils.saveLdapProperties(data)
91 APIUtils.saveLdapProperties(data)
122 APIUtils.saveLdapProperties(data)
167 APIUtils.saveLdapProperties(data)
H A Dapp-header.js6 function(APIUtils) { argument
71 APIUtils.getLogs().then(function(result) {
80 APIUtils.getHostState().then(
102 APIUtils.getNetworkInfo().then(function(data) {
110 APIUtils.getRedfishSysName().then(
H A Dcertificate.js6 function(APIUtils) { argument
13 function($scope, APIUtils, toastService, Constants, $uibModal) {
78 APIUtils.deleteRedfishObject(certificate['@odata.id'])
116 APIUtils.replaceCertificate(data).then(
H A Dlog-event.js6 function(APIUtils) { argument
25 APIUtils.resolveLogs([{Id: event.Id}])
H A Dsyslog-filter.js6 function(APIUtils) { argument
H A Dfirmware-list.js6 function(APIUtils) { argument
/openbmc/phosphor-webui/app/server-health/directives/
H A Dremote-logging-server.js6 function(APIUtils) { argument
87 APIUtils.setRemoteLoggingServer($scope.remoteServerForm)
105 APIUtils.updateRemoteLoggingServer($scope.remoteServerForm)
122 APIUtils.disableRemoteLoggingServer()
142 APIUtils.getRemoteLoggingServer()
/openbmc/phosphor-webui/app/access-control/controllers/
H A Duser-controller.js14 function($scope, APIUtils, toastService, $uibModal, $q) { argument
76 APIUtils.getAllUserAccounts()
94 APIUtils.getAllUserAccountProperties()
108 APIUtils.getAccountServiceRoles()
124 APIUtils.createUser(username, password, role, enabled)
144 APIUtils
167 users.map((user) => APIUtils.deleteUser(user.UserName));
202 (user) => APIUtils.updateUser(
240 APIUtils.saveUserAccountProperties(lockoutDuration, lockoutThreshold)
H A Dldap-controller.js14 function($scope, APIUtils, $q, toastService) { argument
33 APIUtils.getAllUserAccountProperties().then(
103 APIUtils.saveLdapProperties(disabledServicePayload)
105 return APIUtils.saveLdapProperties(enabledServicePayload);
145 APIUtils.saveLdapProperties(disabledServicePayload)
165 return APIUtils.getCertificate(location).then(function(data) {
167 return APIUtils.getCertificate(data.Members[0]['@odata.id'])
H A Dcertificate-controller.js16 $scope, APIUtils, $q, Constants, toastService, $timeout, $uibModal) { argument
38 APIUtils.getCertificateLocations().then(
86 APIUtils
106 var promise = APIUtils.getCertificate(url).then(function(data) {
174 APIUtils.createCSRCertificate(addCSR).then(
272 APIUtils.getBMCTime().then(function(data) {
/openbmc/phosphor-webui/app/profile-settings/controllers/
H A Dprofile-settings-controller.js15 function($scope, APIUtils, dataService, toastService) { argument
28 APIUtils.updateUser($scope.username, null, password)
50 APIUtils.getAllUserAccountProperties().then((accountSettings) => {
/openbmc/phosphor-webui/app/server-health/controllers/
H A Dlog-controller.js23 $scope, $window, APIUtils, dataService, Constants, $routeParams, argument
58 APIUtils.getLogs().then(function(result) {
175 APIUtils.deleteLogs($scope.selectedEvents).then(function() {
188 APIUtils.resolveLogs(events).then(
H A Dsyslog-controller.js21 function($scope, APIUtils, Constants) { argument
43 APIUtils.getSystemLogs(recordType)
64 APIUtils.clearSystemLogs(selectedRecordType)
H A Dinventory-overview-controller.js14 function($scope, $window, APIUtils, dataService) { argument
22 APIUtils.getHardwares(function(data, originalData) {
H A Dsensors-overview-controller.js13 function($scope, $log, $window, APIUtils, dataService, Constants) { argument
120 APIUtils.getAllSensorStatus(function(data, originalData) {

12