uipath-cli
latest
false
UiPath CLI 用户指南
- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 迁移
- 参考与支持
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
Syntax and options for `uip is webhooks`, which retrieves the webhook URL for a connector trigger that uses webhook event mode.
uip is webhooks manages webhook configuration for connector triggers that fire via a registered webhook URL instead of polling. Not every trigger uses webhook event mode — check eventMode on uip is triggers describe first; this command is only useful when eventMode is webhooks.
大纲
uip is webhooks config <connector-key> --connection-id <id> --element-instance-id <id> [options]
uip is webhooks config <connector-key> --connection-id <id> --element-instance-id <id> [options]
动词
| 动词 | 用途 |
|---|---|
config | Get the webhook URL for a connector trigger, for one connection and element instance. |
uip is webhooks config
Get the webhook URL to register with the external service so a webhook-mode trigger can fire.
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<connector-key> | 是 | 连接器键,例如uipath-salesforce-slack 。 |
选项
| 短 | 长 | 值 | 默认 | 描述 |
|---|---|---|---|---|
| — | --connection-id | id | — | Required. Connection UUID. Find it with uip is connections list. |
| — | --element-instance-id | id | — | Required. Numeric element instance ID. Find it in the ElementInstanceId field from uip is connections list --output json. |
示例
uip is webhooks config uipath-salesforce-slack \
--connection-id "28e2de45-24d9-4365-9a66-ae122055b634" \
--element-instance-id 333846
uip is webhooks config uipath-salesforce-slack \
--connection-id "28e2de45-24d9-4365-9a66-ae122055b634" \
--element-instance-id 333846
数据形状(--输出 json)
{
"Code": "WebhookConfig",
"Data": {
"WebhookUrl": "https://cloud.uipath.com/elements_/scaleunit_/.../v1/webhooks/connectors/uipath-salesforce-slack/events/TM3APD0SH",
"ConnectorKey": "uipath-salesforce-slack",
"ConnectionId": "28e2de45-24d9-4365-9a66-ae122055b634",
"ElementInstanceId": 333846
}
}
{
"Code": "WebhookConfig",
"Data": {
"WebhookUrl": "https://cloud.uipath.com/elements_/scaleunit_/.../v1/webhooks/connectors/uipath-salesforce-slack/events/TM3APD0SH",
"ConnectorKey": "uipath-salesforce-slack",
"ConnectionId": "28e2de45-24d9-4365-9a66-ae122055b634",
"ElementInstanceId": 333846
}
}
The response also carries a Hint reminding you that the trigger will not fire until WebhookUrl is registered in the external service's own app settings — this command only reads the URL, it does not register it anywhere.
Failure behavior
--element-instance-idthat doesn't parse as a number:Failure, checked client-side before any network call, withInstructionspointing at theElementInstanceIdfield onconnections list.
相关内容
uip is triggers—describe'seventModetells you whether a trigger needs a webhook at all.uip is connections— source of--connection-idand--element-instance-id.