Storage
These endpoints controls two embedded Flash Drives - regular and encrypted, available on Encedo PPA only.
Embedded Flash Drive is available on Encedo PPA only. On Encedo EPA these two endpoints are not available, response code 404 will be returned.
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
https://my.ence.do/api/storage/unlockDisk number and mode (read-only or read/write) are taken from the access scope from JWT_TOKEN.
Headers
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Bearer JWT_TOKEN |
Response status code
- 200: Operation successful
- 401: Missing or invalid JWT_TOKEN
- 403: Incorrect access scope
- 406: Operation failed
- 409: Incorrect internal state
- 412: Protocol error - CORS validation failed
No response body.
No response body.
No response body.
No response body.
No response body.
No response body.
Log entries
| Event | Result | Source |
|---|---|---|
| LOG_TYPE_FAILED_SCOPE_CHECK | LOG_RESULT_FAILED | 403 |
Lock a disk
https://my.ence.do/api/storage/lockDisk number is taken from the access scope of the JWT_TOKEN.
Headers
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Bearer JWT_TOKEN |
Response status code
- 200: Operation successful
- 401: Missing or invalid access token
- 403: Incorrect access scope
- 406: Operation failed
- 409: Incorrect internal state
- 412: Protocol error - CORS validation failed
No response body.
No response body.
No response body.
No response body.
No response body.
No response body.
Log entries
| Event | Result | Source |
|---|---|---|
| LOG_TYPE_FAILED_SCOPE_CHECK | LOG_RESULT_FAILED | 403 |
Unlock a disk read/write
https://my.ence.do/api/storage/unlock/rwExposes 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
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Bearer JWT_TOKEN |
Response status code
- 200: Operation successful
- 401: Missing or invalid JWT_TOKEN
- 403: Incorrect access scope
- 406: Scope lacks :rw, or invalid slot
- 409: Incorrect internal state
- 412: Protocol error - CORS validation failed
No response body.
No response body.
No response body.
No response body.
No response body.
No response body.
Log entries
| Event | Result | Source |
|---|---|---|
| LOG_TYPE_FAILED_SCOPE_CHECK | LOG_RESULT_FAILED | 403 |
Unlock a disk read-only
https://my.ence.do/api/storage/unlock/roExposes the disk read-only regardless of the mode encoded in the access scope.
Headers
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Bearer JWT_TOKEN |
Response status code
- 200: Operation successful
- 401: Missing or invalid JWT_TOKEN
- 403: Incorrect access scope
- 406: Invalid slot in scope
- 409: Incorrect internal state
- 412: Protocol error - CORS validation failed
No response body.
No response body.
No response body.
No response body.
No response body.
No response body.
Log entries
| Event | Result | Source |
|---|---|---|
| LOG_TYPE_FAILED_SCOPE_CHECK | LOG_RESULT_FAILED | 403 |