Create an Operation Rule
Authentication
Path parameters
Request
Human-readable name of the rule.
Operation code within the operation type. For PowerControl, accepted
values are power_on, force_power_on, power_off, force_power_off,
restart, force_restart, warm_reset, and cold_reset. For
FirmwareControl, accepted values are upgrade, downgrade, and
rollback. The server validates the code against the selected type.
Executable definition of a rule. Structurally identical to Flow’s own rule
schema, so an existing YAML rule file maps across field for field. The
fields declared here use camelCase (componentType, mainOperation,
pollInterval) rather than the snake_case of Flow’s YAML; keys inside
the free-form parameters map pass through unchanged and stay
snake_case (expected_status, component_types).
Optional free-form description.
Response
Human-readable name of the rule. Required and non-empty.
Operation code within the operation type. For PowerControl, accepted
values are power_on, force_power_on, power_off, force_power_off,
restart, force_restart, warm_reset, and cold_reset. For
FirmwareControl, accepted values are upgrade, downgrade, and
rollback. The server validates the code against the selected type.
Immutable after creation.
Executable definition of a rule. Structurally identical to Flow’s own rule
schema, so an existing YAML rule file maps across field for field. The
fields declared here use camelCase (componentType, mainOperation,
pollInterval) rather than the snake_case of Flow’s YAML; keys inside
the free-form parameters map pass through unchanged and stay
snake_case (expected_status, component_types).
Whether this rule is currently the default for its (operationType, operationCode) tuple.
Optional free-form description.