PagerDuty 凭据#
¥PagerDuty credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
先决条件#
¥Prerequisites
创建 PagerDuty 账户。
¥Create a PagerDuty account.
支持的身份验证方法#
¥Supported authentication methods
- API 令牌
¥API token
- 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 密钥。
¥A general access API Token: To generate an API token, go to Integrations > Developer Tools > API Access Keys > Create New API Key. Refer to Generate a General Access REST API key for more information.
使用 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:
- 在“类别”下拉列表中,选择“基础架构自动化”。
¥In the Category dropdown list, select Infrastructure Automation.
- 在“功能”部分,选择“OAuth 2.0”。
¥In the Functionality section, select OAuth 2.0.
保存应用后,打开应用详情和 编辑你的应用配置 以使用以下设置:
¥Once you Save your app, open the app details and edit your app configuration to use these settings:
- 在 OAuth 2.0 部分,选择“添加”。
¥Within the OAuth 2.0 section, select Add.
- 从 n8n 复制 OAuth 回调 URL,并将其粘贴到重定向 URL 字段中。
¥Copy the OAuth Callback URL from n8n and paste it into the Redirect URL field.
- 复制 PagerDuty 中的客户端 ID 和客户端密钥,并将其添加到你的 n8n 凭据中。
¥Copy the Client ID and Client Secret from PagerDuty and add these to your n8n credentials.
- 从“设置权限范围”下拉列表中选择“读/写”。
¥Select Read/Write from the Set Permission Scopes dropdown list.
请参阅 应用功能 中的说明,了解有关可用功能的更多信息。请参阅 PagerDuty OAuth 功能文档 以获取有关 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.