-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add example of referencing the Default Global Ruleset #239
Add example of referencing the Default Global Ruleset #239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this submission! Will you please make the changes requested? Thanks!
website/docs/d/ruleset.html.markdown
Outdated
``` | ||
data "pagerduty_ruleset" "default_global" { | ||
name = "Default Global" | ||
}w |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the w
here?
website/docs/d/ruleset.html.markdown
Outdated
@@ -46,6 +46,14 @@ resource "pagerduty_ruleset_rule" "foo" { | |||
} | |||
``` | |||
|
|||
### Default Global Ruleset | |||
|
|||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add an hcl
here so that the syntax highlights correctly?
@stmcallister updated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for making the changes!
Most certainly! |
It wasn't exactly clear how to reference the default global ruleset, but I realized I could query the API to find the name of the ruleset:
This showed me the name, which is "Default Global." In hindsight, this now makes sense looking at the PagerDuty dashboard, but it wasn't clear before I looked at the API response. I thought this would help others like me!