Skip to content

Add datadog_scorecard_rule resource and data sources#3597

Open
colinodell wants to merge 1 commit intoDataDog:masterfrom
seatgeek:scorecard-rules
Open

Add datadog_scorecard_rule resource and data sources#3597
colinodell wants to merge 1 commit intoDataDog:masterfrom
seatgeek:scorecard-rules

Conversation

@colinodell
Copy link
Copy Markdown

@colinodell colinodell commented Mar 11, 2026

Adds Terraform support for Datadog Service Scorecard rules via the datadogV2.ServiceScorecardsApi:

  • datadog_scorecard_rule resource — full CRUD + import for managing scorecard rules (name, scorecard_name, description, enabled, level, owner)
  • datadog_scorecard_rule data source — look up a single rule by ID
  • datadog_scorecard_rules data source — list/filter rules by name, enabled, custom, and description

Since the Scorecards API has no GET-by-ID endpoint, reads use ListScorecardRules with FilterRuleId + PageSize(1). The plural data source paginates through all matching results.

All scorecard API operations are marked as unstable in the client SDK and are explicitly enabled via SetUnstableOperationEnabled.

Implements #2725 (except for the outcome endpoints, which I don't personally need)

@colinodell colinodell requested review from a team as code owners March 11, 2026 21:53
@buraizu
Copy link
Copy Markdown
Contributor

buraizu commented Mar 11, 2026

Thanks for the PR! I've created DOCS-13663 for documentation team review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants