Zones
The /zones
endpoint provide access to discover, create and manage zones available. For more information on the role that zones play, see:
Model
Attribute | Type | Description |
id |
| Unique ID the represents the zone. |
name |
| Human readable name. |
description |
| Long form description of the zone. |
tags |
| Tags that provide context for the zone use. E.g. |
settings |
| JSON object containing configuration linked to this zone. |
triggers |
| List of trigger ID's to be applied to all systems that associate with this zone. |
created_at |
| Timestamp of creation. |
Discovery
Search
GET
https://example.com/api/control/zones
List or search for zones.
Query Parameters
Name | Type | Description |
---|---|---|
q | string | A search filter to apply. |
limit | integer | (default 20) Max results to return. |
offset | integer | The offset within the result set. |
tags | string | Return zones of this tag only. |
Queries default to searching for any of the entered terms (words). A small query language provides the ability to structure complex queries.
Operator | Action | |
| Matches both terms. | |
` | ` | Matches either terms. |
| Negates a single token. | |
| Wraps tokens to form a phrase. | |
| Provide precedence. | |
| Specifies edit distance (fuzziness) after a word. | |
| Specifies slop amount (deviation) after a phrase. |
Management
Create
POST
https://example.com/api/control/zones
Defines a new zone.
Request Body
Name | Type | Description |
---|---|---|
name | string | |
description | string | |
tags | string | |
settings | object | |
triggers | array |
Retrieve
GET
https://example.com/api/control/zones/{id}
Lookup an existing zone.
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the zone to retrieve. |
Update
PUT
https://example.com/api/control/zones/{id}
Updates metadata associated with a zone.
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the zone to update. |
Request Body
Name | Type | Description |
---|---|---|
name | string | |
description | string | |
tags | string | |
settings | object | |
triggers | array |
Delete
DELETE
https://example.com/api/control/zones/{id}
Removes a zone.
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the zone to remove. |
Last updated