Get emergency passphrase status
GET /emergency_passphrase
Returns information whether emergency passphrase is set.
Request Examples
Shell
onepanel-rest-cli getEmergencyPassphraseStatus --host https://$HOST:9443Responses
application/json
200
The passphrase status.
| Property | Type & Description |
|---|---|
isSet boolean True if the passphrase is set. | |
400
Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
application/json
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
} 401
Unauthorized request.
403
Forbidden request.
500
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
application/json
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}