Service: Zone
This API is officially released and maintained. |
The zone service allows getting, configuring, deleting and receiving updates of the configured zones.
Method | Request | Response |
---|---|---|
ZoneWatchResponseStream |
||
List
Returns the configured zones
Response
Response containing the configured list of zones
Field | Type | Default | Unit |
---|---|---|---|
zones |
repeated config.ZoneAlgorithm |
- |
- |
The currently configured zones |
Store
Store / Update a zone
Request
Request to store or update existing zones
Field | Type | Default | Unit |
---|---|---|---|
zone |
- |
- |
|
The new zone to be added. If there is a zone with the same uuid, that zone will get updated with this configuration. |
|||
zones |
repeated config.ZoneAlgorithm |
- |
- |
For a batch update: the new zones to be added. If any of them has a uuid matching an existing zone, it will get updated. |
|||
delete_others |
bool |
- |
- |
If this is set to true, all existing zones that are not specified in this request will be deleted. |
Watch
Watch configuration for zone list
Response Stream
Continuous response on zone list changes
Field | Type | Default | Unit |
---|---|---|---|
zones |
repeated config.ZoneAlgorithm |
- |
- |
The current/updated list of zones |
GetTareVolume
Computes raw volume within a volume zone without any offsets.
Request
Request for the raw volume to be used for taring a volume zone
Field | Type | Default | Unit |
---|---|---|---|
zone_uuid |
string |
- |
- |
The uuid of the volume zone |
Response
Response containing the raw volume of the requested zone
Field | Type | Default | Unit |
---|---|---|---|
tare_volume |
float |
- |
m^3 |
The raw volume of the volume zone without any offsets/modifications. The value is supposed to be configured as 'empty_volume' value of a volume zone. As a result the current volume of the zone will be '0' until more volume is added. |