For some reason I’m not able to add the Elastic Alerts integration via the API, it keeps tellng me “Vendor not found”. Here’s my original post request:
curl --request POST \
--url https://api.pagerduty.com/services/<my service id>/integrations \
--header 'Accept: application/vnd.pagerduty+json;version=2' \
--header 'Authorization: Token token=<my api token>' \
--header 'Content-Type: application/json' \
--data '{
"integration": {
"type": "events_api",
"name": "Elastic Alerts",
"service": {
"id": "<my service id>",
"type": "service_reference"
},
"vendor": {
"type": "vendor_reference",
"id": "NT0MJYN"
}
}
}'
This gave me the vendor not found error and I actually used ChatGPT to get that vendor ID for Elastic Alerts.
The reason why I resorted to ChatGPT (Which still didn’t work) is because running this command to get the vendor ID also returned “vendor nout found”
curl --request GET \
--url https://api.pagerduty.com/vendors/Elastic \
--header 'Accept: application/vnd.pagerduty+json;version=2' \
--header 'Authorization: Token token=<my api token>' \
--header 'Content-Type: application/json'
I tried using Elastic and Elastic Alerts for the vendor name and both game me that error. Not sure what else to try to get the appropriate vendor ID for Elastic Alerts