Update a compliance alert rule
Set, per status of one compliance rule, what the cockpit shows as Off / Create Issue / Create Issue and Ticket: nonCompliantStatus lists every status that raises an issue, ticketCreationStatus the ones among them that also open a ticket. Send the full lists — read the rule with getComplianceAlertRules first and edit them. Omitting ticketCreationStatus keeps the ticket statuses the rule already has. An empty nonCompliantStatus turns the rule off. Every device the rule covers is recomputed, so issues and tickets follow within minutes.
Authorizations
Use your Primo API key in the Authorization header as Bearer <API_KEY>.
Path Parameters
Body
Non-compliant device statuses that should trigger an alert for this rule. Only non-compliant statuses are accepted (compliant statuses like SUCCESS, ONLINE, ENCRYPTED, etc. are rejected). Pass an empty array to disable alerts.
ACTIVE, NOT_PROTECTED, OFFLINE_7_DAYS, PENDING, PROTECTED, FAILED, NOT_ENCRYPTED, MISSING_RECOVERY_KEY, ENCRYPTED, ACTION_REQUIRED, GRACE_PERIOD, UP_TO_DATE, NOT_UP_TO_DATE, ENFORCED, ERROR, CREATION_PENDING, DEMOTION_PENDING, CREATED, CREATION_FAILED, SUCCESS, UNSUPPORTED, INSTALLED, MDM_ON, MDM_OFF, MDM_ON_IN_ANOTHER_MDM, READY_ZTD, MISSING_AGENT, ONLINE, OFFLINE, ENABLED, DISABLED, MISSING_BYPASS_CODE, MEETS_REQUIREMENTS, BELOW_MINIMUM_VERSION, UNSUPPORTED_OS_EDITION Statuses that also open a ticket, each one also listed in nonCompliantStatus. Omit it to keep the ticket statuses the rule already has (a status removed from nonCompliantStatus stops opening tickets either way); pass an empty array to open no ticket.
ACTIVE, NOT_PROTECTED, OFFLINE_7_DAYS, PENDING, PROTECTED, FAILED, NOT_ENCRYPTED, MISSING_RECOVERY_KEY, ENCRYPTED, ACTION_REQUIRED, GRACE_PERIOD, UP_TO_DATE, NOT_UP_TO_DATE, ENFORCED, ERROR, CREATION_PENDING, DEMOTION_PENDING, CREATED, CREATION_FAILED, SUCCESS, UNSUPPORTED, INSTALLED, MDM_ON, MDM_OFF, MDM_ON_IN_ANOTHER_MDM, READY_ZTD, MISSING_AGENT, ONLINE, OFFLINE, ENABLED, DISABLED, MISSING_BYPASS_CODE, MEETS_REQUIREMENTS, BELOW_MINIMUM_VERSION, UNSUPPORTED_OS_EDITION