PagerDuty 凭据(PagerDuty credentials)#
你可以使用以下凭据验证以下节点:
🌐 You can use these credentials to authenticate the following nodes:
先决条件(Prerequisites)#
创建一个 PagerDuty 账户。
🌐 Create a PagerDuty account.
支持的身份验证方法(Supported authentication methods)#
- API 令牌
- OAuth2
相关资源(Related resources)#
有关该服务的更多信息,请参阅 PagerDuty 的 API 文档。
🌐 Refer to PagerDuty's API documentation for more information about the service.
使用 API 令牌(Using API token)#
要配置此凭据,你需要:
🌐 To configure this credential, you'll need:
- 通用访问 API 令牌:要生成 API 令牌,请转到 集成 > 开发者工具 > API 访问密钥 > 创建新的 API 密钥。更多信息请参阅 生成通用访问 REST API 密钥。
使用 OAuth2(Using OAuth2)#
Note for n8n Cloud users
Cloud users don't need to provide connection details. Select Connect my account to connect through your browser.
如果你需要从零配置 OAuth2,注册一个新的 Pagerduty 应用。
🌐 If you need to configure OAuth2 from scratch, register a new Pagerduty app.
使用以下设置注册你的应用:
🌐 Use these settings for registering your app:
- 在 类别 下拉列表中,选择 基础设施自动化。
- 在 功能 部分,选择 OAuth 2.0。
一旦你保存应用,请打开应用详情并编辑你的应用配置以使用这些设置:
🌐 Once you Save your app, open the app details and edit your app configuration to use these settings:
- 在 OAuth 2.0 部分,选择 添加。
- 从 n8n 复制 OAuth 回调 URL 并粘贴到 重定向 URL 字段中。
- 从 PagerDuty 复制 Client ID 和 Client Secret,并将它们添加到你的 n8n 凭据中。
- 从 设置权限范围 下拉列表中选择 读取/写入。
有关可用功能的更多信息,请参阅 应用功能 中的说明。有关 OAuth 流程的更多信息,请参阅 PagerDuty 的 OAuth 功能文档。
🌐 Refer to the instructions in App functionality for more information on available functionality. Refer to the PagerDuty OAuth Functionality documentation for more information on the OAuth flow.