我有一个 MessageCard,我通过 Incoming Webhook 连接器发送到我的 Teams 频道。这运作良好。但是,该卡具有带有 HttpPOST 操作的按钮。在“目标”中,我以以下格式定义了我的 API 的 URL:“ http://user:pass@address/resource/action.html?add2Queue=test ”。当我尝试按下按钮时,我收到错误消息:“目标 URL 方案 ' http://user:pass@address/resource/action.html?add2Queue=test ' 是不允许的。”。我没有发现使用 HTTP 的任何限制。我正在使用“传入 Webhook”连接器。
它适用于 HTTP 还是仅适用于 HTTPS?
JSON:
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"themeColor": "0076D7",
"summary": "Action on environments status change",
"sections": [{
"activityTitle": "Envrionments status are going to change",
"facts": [{
"name": "Environment:",
"value": "3"
}, {
"name": "Due date",
"value": "On Friday 8:00 PM Central Time"
}, {
"name": "Pending Action",
"value": "Environment are going to be stopped"
}, {
"name": "Notes",
"value": "You can pause this action by pressing Pause button bellow"
}],
"markdown": true
}],
"potentialAction": [{
"@type": "HttpPOST",
"name": "Pause Action",
"actions": [{
"@type": "HttpPOST",
"name": "Pause",
"target": "http://user:pass@server/teamcity/httpAuth/action.html?add2Queue=Marlin_Infrastructure_MarlinInfrastructureStopStartEnvironments_TechnicalTasks_N"
}]
}]
}