-
Notifications
You must be signed in to change notification settings - Fork 3
get_encryption
Alberto Gonzalez edited this page Oct 29, 2015
·
1 revision
Returns the encryption information about the specified system.
GET /api/encryption/?sid={sid}
Host: <server host name>
Accept: application/json
AuthToken: <authentication token returned from authenticate>
Optional filters include:
| Filter | Description | Example |
|---|---|---|
| ?sid={sid} | return only the encryption status on system id {sid} | GET /api/encryption/?sid=1 |
200 success
| Index | Value | Type | Returned |
|---|---|---|---|
| state | encryption state | string | always |
- | "on" - encryption is active and enabled, not persistent across reboots |
- | "persist" - encryption is active and enabled, and will persist across reboots |
- | "off" - encryption is not enabled | has_passphrase | the encryption passphrase has been set? | boolean | always
GET /api/encryption/?sid=2
Host: <server host name>
Accept: application/json
AuthToken: 8a00sjerhterqerjlqkjlk443l4j56869h4f_)(fjdkasHHHHHkdal324
{
"data": {
"system_id": 2,
"system_name": "UEB-CentOS6-lmc",
"state": "on",
"has_passphrase": true
}
}