Skip to content

ActionFieldType

Enum in Oadm.Sdk.Actions · Oadm.Sdk.dll

Input kinds of a declarative action setting; the client draws the form from them.

public enum ActionFieldType
Name Value Description
Text 0 One line of text. Placeholders such as {device} are filled by IActionContext.Text.
Multiline 1 Several lines of text (an email body).
Number 2 A whole number between ActionField.Min and ActionField.Max.
Bool 3 A check box; the value is true or false.
Choice 4 One of ActionField.Choices.
DynamicChoice 5 One of a list the action plugin returns at edit time (IActionPlugin.ListChoicesAsync), e.g. the saved VAPIX Commander commands.
Password 6 A secret: stored encrypted on the server, never sent back to a client, decrypted only for the run.
Code 7 A body with a format (JSON, XML, HTML, text), drawn as a code editor colored by ActionField.Language or by the value of the field ActionField.LanguageKey (“json”, “xml”, “html”, “text”, “form”).
KeyValues 8 Rows of name and value (HTTP headers, query parameters); stored as a JSON array of {“name”, “value”}.
File 9 A file the user chooses (a configuration file of a compliance check); stored as {“name”, “data”} with the content in base64, at most ActionField.MaxLength bytes. Read it with ActionFile.From. Compliance checks only; the rule dialog does not offer it.
Recipient 10 A shared target of the event rules (SDK 0.11.0): the value is the id of a recipient of one of ActionField.RecipientTypes. The host merges the recipient’s fields into the settings before a run.
ClientCertificate 11 A certificate with its key from PKI’s list, for a recipient that logs in with one (SDK 0.12.0): the value is its id.
TrustedCertificate 12 A CA or imported certificate from PKI’s list that a server is checked against (SDK 0.12.0): the value is its id.