Managed secret providers
PagerDuty (API Key)
Connect PagerDuty to Alter Vault using an API key for secure API access
Overview
Section titled “Overview”Use PagerDuty credentials to make authenticated API calls through Alter Vault without exposing API keys in code.
| Property | Value |
|---|---|
| Provider ID | pagerduty |
| Category | Monitoring & Observability |
| Credential Type | Bearer Token |
Step 1: Get Credentials
Section titled “Step 1: Get Credentials”Log in to PagerDuty
Log in to PagerDuty at app.pagerduty.com.
Go to Integrations → Developer Tools → API Access Keys
Go to Integrations → Developer Tools → API Access Keys (the direct URL is https://<your-subdomain>.pagerduty.com/api_access_keys).
Create a new API Key
Click ‘Create New API Key’.
Copy your API key
Copy the generated API key.
Step 2: Add to Alter Vault
Section titled “Step 2: Add to Alter Vault”Open the Developer Portal
Go to portal.alterauth.com and navigate to the application.
Add PagerDuty
Go to Managed Secrets > Add Provider > PagerDuty.
Enter credentials
Paste your API Key into the credential field.
Save
Click Save. You’ll receive a grant_id to use with the SDK.
Using in Code
Section titled “Using in Code”response = await alter_app.request( HttpMethod.GET, "https://api.pagerduty.com/incidents", grant_id="YOUR_GRANT_ID",)