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://$HOST:9443Responses
Information about Onezone.
| Property | Type & Description |
|---|---|
online boolean True if connection to the Onezone was achieved. If false, fields other than 'domain' will not be sent. | |
version string Onezone cluster version. | |
domain string Domain of the Onezone. | |
name string Name of the Onezone cluster. | |
compatible boolean True if versions of this Oneprovider and the Onezone are compatible. | |
subdomainDelegationSupported boolean Whether given Onezone allows subdomain delegation. | |
Unauthorized request.
Forbidden request.
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}