Skip to main content

Storage

These endpoints controls two embedded Flash Drives - regular and encrypted, available on Encedo PPA only.

warning

Embedded Flash Drive is available on Encedo PPA only. On Encedo EPA these two endpoints are not available, response code 404 will be returned.

Allowed usersUser✓Master✗ExtAuth✓
Required access scopestorage:disk[0|1][:rw]

Example:

storage:disk0:rw - Unlock Disk0 in read/write mode or lock Disk0

storage:disk1 - Unlock Disk1 in read-only mode or lock Disk1

Unlock a disk​

GEThttps://my.ence.do/api/storage/unlock

Disk number and mode (read-only or read/write) are taken from the access scope from JWT_TOKEN.

Headers​

NameTypeDescription
Authorization*StringBearer JWT_TOKEN

Response status code​

No response body.

Log entries​

EventResultSource
LOG_TYPE_FAILED_SCOPE_CHECKLOG_RESULT_FAILED403

Lock a disk​

GEThttps://my.ence.do/api/storage/lock

Disk number is taken from the access scope of the JWT_TOKEN.

Headers​

NameTypeDescription
Authorization*StringBearer JWT_TOKEN

Response status code​

No response body.

Log entries​

EventResultSource
LOG_TYPE_FAILED_SCOPE_CHECKLOG_RESULT_FAILED403

Unlock a disk read/write​

GEThttps://my.ence.do/api/storage/unlock/rw
Required access scopestorage:disk<N>:rw

Exposes the disk read/write regardless of the mode encoded in the access scope; the scope must still carry the :rw suffix, otherwise the call fails with 406.

Headers​

NameTypeDescription
Authorization*StringBearer JWT_TOKEN

Response status code​

No response body.

Log entries​

EventResultSource
LOG_TYPE_FAILED_SCOPE_CHECKLOG_RESULT_FAILED403

Unlock a disk read-only​

GEThttps://my.ence.do/api/storage/unlock/ro
Required access scopestorage:disk<N>

Exposes the disk read-only regardless of the mode encoded in the access scope.

Headers​

NameTypeDescription
Authorization*StringBearer JWT_TOKEN

Response status code​

No response body.

Log entries​

EventResultSource
LOG_TYPE_FAILED_SCOPE_CHECKLOG_RESULT_FAILED403