URL
URL 是用于保存网站链接的输入法。
💡 常用网址 Usage
例如,URL 输入类型可被用来存储指向任何网络资源的 链接:
- Datadog 仪表板链接;
- 配置文件链接;
- 链接到拉取请求;
- 等等。
应用程序接口定义
- Basic
- Select (Enum)
- Array
{
"myUrlInput": {
"title": "My url input",
"icon": "My icon",
"description": "My url input",
"type": "string",
"format": "url",
"default": "https://example.com"
}
}
{
"myUrlSelectInput": {
"title": "My url select input",
"icon": "My icon",
"description": "My url select input",
"type": "string",
"format": "url",
"enum": ["https://example.com", "https://getport.io"]
}
}
{
"myUrlArrayInput": {
"title": "My url array input",
"icon": "My icon",
"description": "My url array input",
"type": "array",
"items": {
"type": "string",
"format": "url"
}
}
}
Check out Port's API reference to learn more.
Terraform 定义
- Basic
- Select (Enum)
- Array
resource "port_action" "myAction" {
# ...action properties
user_properties = {
string_props = {
"myUrlInput" = {
title = "My url input"
icon = "My icon"
description = "My url input"
format = "url"
default = "https://example.com"
}
}
}
}
resource "port_action" "myAction" {
# ...action properties
user_properties = {
string_props = {
"myUrlSelectInput" = {
title = "My url select input"
icon = "My icon"
description = "My url select input"
format = "url"
enum = ["https://example.com", "https://getport.io"]
}
}
}
}
resource "port_action" "myAction" {
# ...action properties
user_properties = {
array_props = {
"myUrlArrayInput" = {
title = "My url array input"
icon = "My icon"
description = "My url array input"
format = "url"
}
}
}
}