Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between "user" and "user_reference" in PagerDuty API

Tags:

pagerduty

I'm writing a terraform template to setup escalation policies.

https://www.terraform.io/docs/providers/pagerduty/r/escalation_policy.html

I want to create an escalation policy to a specific user, but I don't know whether to specify user or user_reference as a value of rule.target.type. What's the difference between user and user_reference in PagerDuty API?

like image 494
Yusuke NOJIMA Avatar asked Sep 15 '25 10:09

Yusuke NOJIMA


1 Answers

As a value of rule.target.type, user and user_reference are one and the same. Using either type should create an escalation policy that involves the specified user that is defined with rule.target.id.

like image 148
stmcallister Avatar answered Sep 18 '25 10:09

stmcallister



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!