Get Onezone information
Get information about a Onezone. Before registration, this endpoint requires a registration token and returns information about the Onezone which issued the token. If the Oneprovider is registered, returns information about the Onezone at which the provider is registered.
Query parameters
| Parameter | Type & Description |
|---|---|
| token | string Oneprovider registration token obtained from Onezone. Required if the Oneprovider is not registered. |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE getOnezoneInfo --host https://$OP_PANEL_HOST:9443Responses
Information about Onezone.
True if connection to the Onezone was achieved. If false, fields other than 'domain' will not be sent.
Onezone cluster version.
Domain of the Onezone.
Name of the Onezone cluster.
True if versions of this Oneprovider and the Onezone are compatible.
Whether given Onezone allows subdomain delegation.
Unauthorized request.
Forbidden request.
Internal server error.
error object (ErrorDetails) Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}