电子邮件
电子邮件是用于保存电子邮件地址的输入。
💡 常用电子邮件 Usage
电子邮件 输入类型可被用来存储任何合法的电子邮件地址。
应用程序接口定义
- Basic
- Select (Enum)
- Array
{
  "myEmailInput": {
    "title": "My email input",
    "icon": "My icon",
    "description": "My email input",
    "type": "string",
    "format": "email",
    "default": "[email protected]"
  }
}
{
  "myEmailSelectInput": {
    "title": "My email select input",
    "icon": "My icon",
    "description": "My email select input",
    "type": "string",
    "format": "email",
    "enum": ["[email protected]", "[email protected]"]
  }
}
{
  "myEmailArrayInput": {
    "title": "My email array input",
    "icon": "My icon",
    "description": "My email array input",
    "type": "array",
    "items": {
      "type": "string",
      "format": "email"
    }
  }
}
Check out Port's API reference to learn more.
Terraform 定义
- Basic
- Select (Enum)
- Array - coming soon
resource "port_action" "myAction" {
  # ...action properties
  user_properties = {
    string_props = {
      "myEmailInput" = {
        title       = "My email input"
        description = "My email input"
        format      = "email"
        default     = "[email protected]"
      }
    }
  }
}
resource "port_action" "myAction" {
  # ...action properties
  user_properties = {
    string_props = {
      "myEmailInput" = {
        title       = "My email input"
        description = "My email input"
        format      = "email"
        default     = "[email protected]"
        enum = ["[email protected]", "[email protected]"]
      }
    }
  }
}
resource "port_action" "myAction" {
  # ...action properties
  user_properties = {
    array_props = {
      "myEmailInput" = {
        title       = "My email input"
        description = "My email input"
        default     = "[email protected]"
        string_items = {
          format = "email"
        }
      }
    }
  }
}