Skip to content

PagerDuty credentials#

คุณสามารถใช้ credentials นี้เพื่อยืนยันตัวตนกับ node ต่อไปนี้ได้:

Prerequisites#

สร้าง PagerDuty account

Supported authentication methods#

  • API token
  • OAuth2

ดูข้อมูลเพิ่มเติมเกี่ยวกับบริการนี้ได้ที่ PagerDuty's API documentation

Using API token#

สำหรับการตั้งค่า credentials นี้ คุณจะต้องมี:

  • general access API Token: หากต้องการสร้าง API token ให้ไปที่ Integrations > Developer Tools > API Access Keys > Create New API Key ดูข้อมูลเพิ่มเติมที่ Generate a General Access REST API key

Using OAuth2#

หมายเหตุสำหรับผู้ใช้ n8n Cloud

ผู้ใช้ Cloud ไม่จำเป็นต้องให้รายละเอียดการเชื่อมต่อ เลือก Connect my account เพื่อเชื่อมต่อผ่านเบราว์เซอร์ของคุณ

หากคุณต้องการกำหนดค่า OAuth2 ตั้งแต่ต้น ให้ register a new Pagerduty app

ใช้การตั้งค่าเหล่านี้สำหรับการลงทะเบียน app ของคุณ:

  • ใน dropdown list Category เลือก Infrastructure Automation
  • ในส่วน Functionality เลือก OAuth 2.0

เมื่อคุณ Save app ของคุณแล้ว ให้เปิดรายละเอียด app และ edit your app configuration เพื่อใช้การตั้งค่าเหล่านี้:

  • ภายในส่วน OAuth 2.0 เลือก Add
  • คัดลอก OAuth Callback URL จาก n8n และวางลงในฟิลด์ Redirect URL
  • คัดลอก Client ID และ Client Secret จาก PagerDuty และเพิ่มลงใน n8n credentials ของคุณ
  • เลือก Read/Write จาก dropdown list Set Permission Scopes

ดูข้อมูลเพิ่มเติมเกี่ยวกับฟังก์ชันการทำงานที่มีอยู่ใน App functionality ดูข้อมูลเพิ่มเติมเกี่ยวกับ OAuth flow ได้ที่ OAuth Functionality documentation ของ PagerDuty