Expression

Expression

Following are the expressions used in NGL:

should-have

Usage: should-have is used to match the condition against the resource type.

Syntax: <app suite> <resource type> should-have <condition>

Example:

microsoft365 remotedomain should-have autoforwardenabled = false

Explanation: the NGL rule will filter the Microsoft365 resources that have remotedomain resource type where autoforwardenable property is false.

should-not-have

Usage: should-not-have is used to not match the condition against the resource type.

Syntax: <app suite> <resource type> should-not-have <condition>

Example:

microsoft365 remotedomain should-not-have autoforwardenabled = false

Explanation:  the NGL rule will filter the Microsoft365 resources that have remotedomain resource type but autoforwardenable property is not false.

Share this Doc

Expression

Or copy link

In this topic ...