Mondoo Docs
Built-in FunctionsArray

one

one

Assert that exactly one element in an array satisfies the condition.


Examples

Ensure exactly one default route exists:

routes.one(destination == "0.0.0.0/0")

On this page