Azure / Azure/azure-rest-api-specs

alertsSuppressionRules ScopeElement is missing properties

Open
#23,893 3 comments 1 reaction 0 assignees View on GitHub
customer-reported needs-team-attention question Security Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 37m
Merged PRs (30d)
446

Description

Hi, I'm looking to create a terraform resource for the Alert Suppression Rules, but there are missing properties in the api specification - `in` and `contains`.

I can only find version ` 2019-01-01-preview ` that supports [alertsSuppressionRules](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json) and the spec for [ScopeElement](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json#L283-L293) defines `field`, but the [examples](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/PutAlertsSuppressionRule_example.json#L13-L27) show additional fields `in` and `contains`.

What are the options to address this?

Cheers

References:

- https://github.com/hashicorp/terraform-provider-azurerm/issues/16996

Contributor guide

Open the contributing guide

Research direction

Start with specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json, especially the ScopeElement definition and the referenced PutAlertsSuppressionRule example. Compare the declared properties with the example's `in` and `contains` fields, then confirm the specification describes the request shape consistently and addresses the Terraform provider reference.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.