ManagerBackup

Extends

Methods

connect

(async) connect(): Promise.<void>

Connect to the realtime namespace.

Returns

Promise.<void>

disconnect

(async) disconnect(): Promise.<void>

Disconnect from the realtime namespace.

Returns

Promise.<void>

getOptionAutomaticBackupsEnabled

(async) getOptionAutomaticBackupsEnabled(): Promise.<any>

Scopes

SYSTEM

HTTP

GET /api/manager/backup/option/automaticBackupsEnabled

Returns

Promise.<any>

getOptionLastSuccessfulBackup

(async) getOptionLastSuccessfulBackup(): Promise.<any>

Scopes

SYSTEM

HTTP

GET /api/manager/backup/option/lastSuccessfulBackup

Returns

Promise.<any>

getState

(async) getState(): Promise.<any>

Scopes

SYSTEM_READONLY

HTTP

GET /api/manager/backup/state

Returns

Promise.<any>

isConnected

isConnected(): Boolean

If this manager's namespace is connected to Socket.io.

Returns

Boolean

scheduleBackup

(async) scheduleBackup(): Promise.<any>

Scopes

homey.system

HTTP

POST /api/manager/backup/backup/

Returns

Promise.<any>

setOptionAutomaticBackupsEnabled

(async) setOptionAutomaticBackupsEnabled(opts): Promise.<any>

Scopes

SYSTEM

HTTP

PUT /api/manager/backup/option/automaticBackupsEnabled

Parameters

Name Type Description
opts
object
value
boolean
}

Returns

Promise.<any>

setOptionLastSuccessfulBackup

(async) setOptionLastSuccessfulBackup(opts): Promise.<any>

Scopes

-

HTTP

PUT /api/manager/backup/option/lastSuccessfulBackup

Parameters

Name Type Description
opts
object
value
string
}

Returns

Promise.<any>

unsetOptionAutomaticBackupsEnabled

(async) unsetOptionAutomaticBackupsEnabled(): Promise.<any>

Scopes

SYSTEM

HTTP

DELETE /api/manager/backup/option/automaticBackupsEnabled

Returns

Promise.<any>

unsetOptionLastSuccessfulBackup

(async) unsetOptionLastSuccessfulBackup(): Promise.<any>

Scopes

-

HTTP

DELETE /api/manager/backup/option/lastSuccessfulBackup

Returns

Promise.<any>