PlaceOS::Client::APIWrapper::APIKeys
Inherits PlaceOS::Client::APIWrapper::Endpoint::Destroy < PlaceOS::Client::APIWrapper::Endpoint::Fetch < PlaceOS::Client::APIWrapper::Endpoint < Reference < Object
Constructors
new(client : APIWrapper)
SourceInstance methods
create(name : String, user_id : String, description : String | Nil = nil, scopes : Array(String) | Nil = nil, permissions : PlaceOS::Model::UserJWT::Permissions | Nil = nil)
Creates a new zone.
search(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil)
List or search for zones.
Results maybe filtered by specifying a query - q - to search across zone attributes. A small query language is supported within this:
| Operator | Action |
|---|---|
+ | Matches both terms |
| ` | ` |
- | Negates a single token |
" | Wraps tokens to form a phrase |
( ) | Provides precedence |
~N | Specifies edit distance (fuzziness) after a word |
~N | Specifies slop amount (deviation) after a phrase |
Up to limit zones will be returned, with a paging based on offset.
Results my also also be limited to those associated with specific tags.
update(id : String, name : String | Nil = nil, user_id : String | Nil = nil, description : String | Nil = nil, scopes : Array(String) | Nil = nil, permissions : PlaceOS::Model::UserJWT::Permissions | Nil = nil)
Updates zone attributes or configuration.