Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2022 12:56 PM
Has anyone worked with the PagerDuty REST API? Built some test JSON and account import says it success, but I'm not seeing any accounts. Getting accounts returned with the same calls from Postman and PowerShell.
Solved! Go to Solution.
04/12/2022 01:57 PM
Hi Gary,
Please find the below Account Import sample json for PagerDuty:
{
"accountParams": {
"connection": "acctAuth",
"createUsers": false,
"adminName": "admin",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"accountsNotInImportAction": "Suspend",
"accountThresholdValue": 10
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://api.pagerduty.com/users",
"httpContentType": "application/json",
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}"
}
},
"listField": "users",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"accounttype": "role~#~char",
"name": "email~#~char",
"displayName": "name~#~char",
"customproperty1": "time_zone~#~char",
"customproperty2": "type~#~char",
"customproperty3": "job_title~#~char",
"customproperty4": "color~#~char",
"customproperty5": "summary~#~char",
"customproperty6": "html_url~#~char"
},
"pagination": {
"offset": {
"offsetParam": "offset",
"batchParam": "limit",
"batchSize": 100,
"totalCountPath": 1000
}
}
}
}
}
}