diff --git a/docs/docs/api.md b/docs/docs/api.md index cbfefed10..191395c4f 100644 --- a/docs/docs/api.md +++ b/docs/docs/api.md @@ -416,5 +416,19 @@ Schedule jobs on nodes which attributes match a regular expression. **Note:** This constraint applies to attributes of type `text` and `scalar` and elements in a `set`, but not `range`. +### UNLIKE constraint + +Schedule jobs on nodes which attributes *do not* match a regular expression. + +```json +{ + ... + "constraints": [["rack", "UNLIKE", "rack-[1-3]"]], + ... +} +``` + +**Note:** This constraint applies to attributes of type `text` and `scalar` and elements in a `set`, but not `range`. + [json]: http://www.json.org/ [ISO 8601]: https://en.wikipedia.org/wiki/ISO_8601