diff --git a/datadog/fwprovider/data_source_security_monitoring_suppression.go b/datadog/fwprovider/data_source_security_monitoring_suppression.go index 52e51be88..bcc9ba01c 100644 --- a/datadog/fwprovider/data_source_security_monitoring_suppression.go +++ b/datadog/fwprovider/data_source_security_monitoring_suppression.go @@ -28,6 +28,7 @@ type securityMonitoringSuppressionDataSourceItem struct { RuleQuery types.String `tfsdk:"rule_query"` SuppressionQuery types.String `tfsdk:"suppression_query"` DataExclusionQuery types.String `tfsdk:"data_exclusion_query"` + Tags types.List `tfsdk:"tags"` } type securityMonitoringSuppressionsDataSourceModel struct { @@ -97,6 +98,13 @@ func (r *securityMonitoringSuppressionDataSource) Read(ctx context.Context, requ expirationDate := time.UnixMilli(*attributes.ExpirationDate).Format(time.RFC3339) suppressionModel.ExpirationDate = types.StringValue(expirationDate) } + if attributes.Tags == nil || len(attributes.Tags) == 0 { + suppressionModel.Tags = types.ListNull(types.StringType) + } else { + tags, diags := types.ListValueFrom(ctx, types.StringType, attributes.Tags) + suppressionModel.Tags = tags + response.Diagnostics.Append(diags...) + } suppressionIds[idx] = suppression.GetId() suppressions[idx] = suppressionModel @@ -136,6 +144,7 @@ func (*securityMonitoringSuppressionDataSource) Schema(_ context.Context, _ data "rule_query": types.StringType, "suppression_query": types.StringType, "data_exclusion_query": types.StringType, + "tags": types.ListType{ElemType: types.StringType}, }, }, }, diff --git a/datadog/fwprovider/resource_datadog_security_monitoring_suppression.go b/datadog/fwprovider/resource_datadog_security_monitoring_suppression.go index 00ba9bd92..29381856c 100644 --- a/datadog/fwprovider/resource_datadog_security_monitoring_suppression.go +++ b/datadog/fwprovider/resource_datadog_security_monitoring_suppression.go @@ -32,6 +32,7 @@ type securityMonitoringSuppressionModel struct { SuppressionQuery types.String `tfsdk:"suppression_query"` DataExclusionQuery types.String `tfsdk:"data_exclusion_query"` Validate types.Bool `tfsdk:"validate"` + Tags types.List `tfsdk:"tags"` } type securityMonitoringSuppressionResource struct { @@ -98,6 +99,11 @@ func (r *securityMonitoringSuppressionResource) Schema(_ context.Context, _ reso Default: booldefault.StaticBool(true), Description: "Whether to validate the suppression rule during `terraform plan`. When set to `true`, the rule is validated against Datadog's suppression validation endpoint.", }, + "tags": schema.ListAttribute{ + Optional: true, + ElementType: types.StringType, + Description: "A list of tags associated with the suppression rule.", + }, }, } } @@ -113,7 +119,7 @@ func (r *securityMonitoringSuppressionResource) Create(ctx context.Context, requ return } - suppressionPayload, err := r.buildCreateSecurityMonitoringSuppressionPayload(&state) + suppressionPayload, err := r.buildCreateSecurityMonitoringSuppressionPayload(&state, ctx) if err != nil { response.Diagnostics.AddError("error while parsing resource", err.Error()) @@ -181,7 +187,7 @@ func (r *securityMonitoringSuppressionResource) Update(ctx context.Context, requ updateStartDate := plan.StartDate != state.StartDate updateExpirationDate := plan.ExpirationDate != state.ExpirationDate - suppressionPayload, err := r.buildUpdateSecurityMonitoringSuppressionPayload(&plan, updateStartDate, updateExpirationDate) + suppressionPayload, err := r.buildUpdateSecurityMonitoringSuppressionPayload(&plan, ctx, updateStartDate, updateExpirationDate) if err != nil { response.Diagnostics.AddError("error while parsing resource", err.Error()) @@ -268,7 +274,7 @@ func (r *securityMonitoringSuppressionResource) ModifyPlan(ctx context.Context, } } - suppressionPayload, err := r.buildCreateSecurityMonitoringSuppressionPayload(&newConfig) + suppressionPayload, err := r.buildCreateSecurityMonitoringSuppressionPayload(&newConfig, ctx) if err != nil { response.Diagnostics.AddError("error while building suppression payload for validation", err.Error()) return @@ -282,8 +288,8 @@ func (r *securityMonitoringSuppressionResource) ModifyPlan(ctx context.Context, } } -func (r *securityMonitoringSuppressionResource) buildCreateSecurityMonitoringSuppressionPayload(state *securityMonitoringSuppressionModel) (*datadogV2.SecurityMonitoringSuppressionCreateRequest, error) { - name, description, enabled, startDate, expirationDate, ruleQuery, suppressionQuery, dataExclusionQuery, err := r.extractSuppressionAttributesFromResource(state) +func (r *securityMonitoringSuppressionResource) buildCreateSecurityMonitoringSuppressionPayload(state *securityMonitoringSuppressionModel, ctx context.Context) (*datadogV2.SecurityMonitoringSuppressionCreateRequest, error) { + name, description, enabled, startDate, expirationDate, ruleQuery, suppressionQuery, dataExclusionQuery, tags, err := r.extractSuppressionAttributesFromResource(state, ctx) if err != nil { return nil, err @@ -295,13 +301,14 @@ func (r *securityMonitoringSuppressionResource) buildCreateSecurityMonitoringSup attributes.Description = description attributes.StartDate = startDate attributes.ExpirationDate = expirationDate + attributes.Tags = tags data := datadogV2.NewSecurityMonitoringSuppressionCreateData(*attributes, datadogV2.SECURITYMONITORINGSUPPRESSIONTYPE_SUPPRESSIONS) return datadogV2.NewSecurityMonitoringSuppressionCreateRequest(*data), nil } -func (r *securityMonitoringSuppressionResource) buildUpdateSecurityMonitoringSuppressionPayload(state *securityMonitoringSuppressionModel, updateStartDate bool, updateExpirationDate bool) (*datadogV2.SecurityMonitoringSuppressionUpdateRequest, error) { - name, description, enabled, startDate, expirationDate, ruleQuery, suppressionQuery, dataExclusionQuery, err := r.extractSuppressionAttributesFromResource(state) +func (r *securityMonitoringSuppressionResource) buildUpdateSecurityMonitoringSuppressionPayload(state *securityMonitoringSuppressionModel, ctx context.Context, updateStartDate bool, updateExpirationDate bool) (*datadogV2.SecurityMonitoringSuppressionUpdateRequest, error) { + name, description, enabled, startDate, expirationDate, ruleQuery, suppressionQuery, dataExclusionQuery, tags, err := r.extractSuppressionAttributesFromResource(state, ctx) if err != nil { return nil, err @@ -339,11 +346,17 @@ func (r *securityMonitoringSuppressionResource) buildUpdateSecurityMonitoringSup attributes.SetDataExclusionQuery("") } + if tags != nil { + attributes.SetTags(tags) + } else { + attributes.SetTags(make([]string, 0)) + } + data := datadogV2.NewSecurityMonitoringSuppressionUpdateData(*attributes, datadogV2.SECURITYMONITORINGSUPPRESSIONTYPE_SUPPRESSIONS) return datadogV2.NewSecurityMonitoringSuppressionUpdateRequest(*data), nil } -func (r *securityMonitoringSuppressionResource) extractSuppressionAttributesFromResource(state *securityMonitoringSuppressionModel) (string, *string, bool, *int64, *int64, string, *string, *string, error) { +func (r *securityMonitoringSuppressionResource) extractSuppressionAttributesFromResource(state *securityMonitoringSuppressionModel, ctx context.Context) (string, *string, bool, *int64, *int64, string, *string, *string, []string, error) { // Mandatory fields name := state.Name.ValueString() @@ -362,7 +375,7 @@ func (r *securityMonitoringSuppressionResource) extractSuppressionAttributesFrom startDateTime, err := time.Parse(time.RFC3339, *tfStartDate) if err != nil { - return "", nil, false, nil, nil, "", nil, nil, err + return "", nil, false, nil, nil, "", nil, nil, nil, err } startDateTimestamp := startDateTime.UnixMilli() @@ -376,7 +389,7 @@ func (r *securityMonitoringSuppressionResource) extractSuppressionAttributesFrom expirationDateTime, err := time.Parse(time.RFC3339, *tfExpirationDate) if err != nil { - return "", nil, false, nil, nil, "", nil, nil, err + return "", nil, false, nil, nil, "", nil, nil, nil, err } expirationDateTimestamp := expirationDateTime.UnixMilli() @@ -384,7 +397,13 @@ func (r *securityMonitoringSuppressionResource) extractSuppressionAttributesFrom } - return name, description, enabled, startDate, expirationDate, ruleQuery, suppressionQuery, dataExclusionQuery, nil + var tags []string + if !state.Tags.IsNull() { + tags = make([]string, 0) + state.Tags.ElementsAs(ctx, &tags, false) + } + + return name, description, enabled, startDate, expirationDate, ruleQuery, suppressionQuery, dataExclusionQuery, tags, nil } func (r *securityMonitoringSuppressionResource) updateStateFromResponse(ctx context.Context, state *securityMonitoringSuppressionModel, res *datadogV2.SecurityMonitoringSuppressionResponse) { @@ -401,6 +420,12 @@ func (r *securityMonitoringSuppressionResource) updateStateFromResponse(ctx cont state.Description = types.StringValue(description) } + if attributes.GetTags() == nil || len(attributes.GetTags()) == 0 { + state.Tags = types.ListNull(types.StringType) + } else { + state.Tags, _ = types.ListValueFrom(ctx, types.StringType, attributes.GetTags()) + } + state.Enabled = types.BoolValue(attributes.GetEnabled()) state.RuleQuery = types.StringValue(attributes.GetRuleQuery()) state.SuppressionQuery = types.StringValue(attributes.GetSuppressionQuery()) diff --git a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery.freeze b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery.freeze index 3eec4a882..3d860e59f 100644 --- a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery.freeze +++ b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery.freeze @@ -1 +1 @@ -2025-09-05T00:34:47.156489+02:00 \ No newline at end of file +2025-11-14T13:30:51.56446+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery.yaml b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery.yaml index 70e07671f..9b4afa72d 100644 --- a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery.yaml +++ b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing"},"type":"suppressions"}} form: {} headers: Accept: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 575 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1757025287746,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1763123452118,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 132.918667ms + duration: 249.0405ms - id: 1 request: proto: HTTP/1.1 @@ -53,7 +53,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: GET response: proto: HTTP/1.1 @@ -63,13 +63,13 @@ interactions: trailer: {} content_length: 575 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1757025287746,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1763123452118,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 117.264709ms + duration: 238.979667ms - id: 2 request: proto: HTTP/1.1 @@ -86,7 +86,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: GET response: proto: HTTP/1.1 @@ -96,13 +96,13 @@ interactions: trailer: {} content_length: 575 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1757025287746,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1763123452118,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 119.397417ms + duration: 238.925125ms - id: 3 request: proto: HTTP/1.1 @@ -119,7 +119,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: GET response: proto: HTTP/1.1 @@ -129,33 +129,33 @@ interactions: trailer: {} content_length: 575 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1757025287746,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1763123452118,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 114.850666ms + duration: 239.002625ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 335 + content_length: 345 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":""},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: PATCH response: proto: HTTP/1.1 @@ -165,13 +165,13 @@ interactions: trailer: {} content_length: 561 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"","tags":[],"update_date":1757025289302,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"","tags":[],"update_date":1763123454054,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 143.837625ms + duration: 267.168125ms - id: 5 request: proto: HTTP/1.1 @@ -188,7 +188,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: GET response: proto: HTTP/1.1 @@ -198,13 +198,13 @@ interactions: trailer: {} content_length: 561 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"","tags":[],"update_date":1757025289302,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"","tags":[],"update_date":1763123454054,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 126.981334ms + duration: 230.74675ms - id: 6 request: proto: HTTP/1.1 @@ -221,7 +221,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: GET response: proto: HTTP/1.1 @@ -231,13 +231,13 @@ interactions: trailer: {} content_length: 561 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"","tags":[],"update_date":1757025289302,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"","tags":[],"update_date":1763123454054,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 115.699667ms + duration: 254.959625ms - id: 7 request: proto: HTTP/1.1 @@ -254,7 +254,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: GET response: proto: HTTP/1.1 @@ -264,33 +264,33 @@ interactions: trailer: {} content_length: 561 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"","tags":[],"update_date":1757025289302,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"","tags":[],"update_date":1763123454054,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 134.661667ms + duration: 234.044291ms - id: 8 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 370 + content_length: 380 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing"},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: PATCH response: proto: HTTP/1.1 @@ -300,13 +300,13 @@ interactions: trailer: {} content_length: 596 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1757025290721,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1763123455950,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 143.757333ms + duration: 258.674583ms - id: 9 request: proto: HTTP/1.1 @@ -323,7 +323,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: GET response: proto: HTTP/1.1 @@ -333,13 +333,13 @@ interactions: trailer: {} content_length: 596 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1757025290721,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1763123455950,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 119.423709ms + duration: 242.808708ms - id: 10 request: proto: HTTP/1.1 @@ -356,7 +356,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: GET response: proto: HTTP/1.1 @@ -366,13 +366,13 @@ interactions: trailer: {} content_length: 596 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1757025290721,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1763123455950,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 112.682042ms + duration: 241.9515ms - id: 11 request: proto: HTTP/1.1 @@ -389,7 +389,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: GET response: proto: HTTP/1.1 @@ -399,33 +399,33 @@ interactions: trailer: {} content_length: 596 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1757025290721,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"@account_name:staging","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1763123455950,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 150.116084ms + duration: 262.049167ms - id: 12 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 349 + content_length: 359 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing"},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: PATCH response: proto: HTTP/1.1 @@ -435,13 +435,13 @@ interactions: trailer: {} content_length: 575 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1757025292204,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1763123457918,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 144.697333ms + duration: 252.658292ms - id: 13 request: proto: HTTP/1.1 @@ -458,7 +458,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: GET response: proto: HTTP/1.1 @@ -468,13 +468,13 @@ interactions: trailer: {} content_length: 575 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1757025292204,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1763123457918,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 117.984833ms + duration: 238.0415ms - id: 14 request: proto: HTTP/1.1 @@ -491,7 +491,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: GET response: proto: HTTP/1.1 @@ -501,13 +501,13 @@ interactions: trailer: {} content_length: 575 uncompressed: false - body: '{"data":{"id":"v79-hv5-jgq","type":"suppressions","attributes":{"creation_date":1757025287746,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1757025287","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1757025292204,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + body: '{"data":{"id":"j5q-ukm-vwt","type":"suppressions","attributes":{"creation_date":1763123452118,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateDataExclusionQuery-local-1763123451","rule_query":"severity:low source:cloudtrail","suppression_query":"@usr.team:internal-security-testing","tags":[],"update_date":1763123457918,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 113.487709ms + duration: 238.727625ms - id: 15 request: proto: HTTP/1.1 @@ -524,7 +524,7 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: DELETE response: proto: HTTP/1.1 @@ -538,7 +538,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 126.03ms + duration: 271.429709ms - id: 16 request: proto: HTTP/1.1 @@ -555,7 +555,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/v79-hv5-jgq + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/j5q-ukm-vwt method: GET response: proto: HTTP/1.1 @@ -565,10 +565,10 @@ interactions: trailer: {} content_length: 67 uncompressed: false - body: '{"errors":["not_found(Suppression with ID v79-hv5-jgq not found)"]}' + body: '{"errors":["not_found(Suppression with ID j5q-ukm-vwt not found)"]}' headers: Content-Type: - application/json status: 404 Not Found code: 404 - duration: 108.945708ms + duration: 230.884667ms diff --git a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateTags.freeze b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateTags.freeze new file mode 100644 index 000000000..3eedb6b43 --- /dev/null +++ b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateTags.freeze @@ -0,0 +1 @@ +2025-11-14T13:31:06.479033+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateTags.yaml b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateTags.yaml new file mode 100644 index 000000000..6c7e11f22 --- /dev/null +++ b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateTags.yaml @@ -0,0 +1,574 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 285 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: | + {"data":{"attributes":{"description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions + method: POST + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 537 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123467051,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 250.308708ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 537 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123467051,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 268.237375ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 537 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123467051,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 233.456916ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 537 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123467051,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 284.484ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 347 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: | + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":["env:test","team:security"]},"type":"suppressions"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: PATCH + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 563 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":["env:test","team:security"],"update_date":1763123469058,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 260.408958ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 563 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":["env:test","team:security"],"update_date":1763123469058,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 260.545917ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 563 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":["env:test","team:security"],"update_date":1763123469058,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 252.479042ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 563 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":["env:test","team:security"],"update_date":1763123469058,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 241.58575ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 365 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: | + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":["env:prod","owner:terraform","team:security"]},"type":"suppressions"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: PATCH + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 581 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":["env:prod","owner:terraform","team:security"],"update_date":1763123470941,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 270.504041ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 581 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":["env:prod","owner:terraform","team:security"],"update_date":1763123470941,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 241.611208ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 581 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":["env:prod","owner:terraform","team:security"],"update_date":1763123470941,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 240.343209ms + - id: 11 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 581 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":["env:prod","owner:terraform","team:security"],"update_date":1763123470941,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 234.4085ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 321 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: | + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[]},"type":"suppressions"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: PATCH + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 537 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123472868,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 262.793708ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 537 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123472868,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 247.612416ms + - id: 14 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 537 + uncompressed: false + body: '{"data":{"id":"7ml-ovd-cb5","type":"suppressions","attributes":{"creation_date":1763123467051,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateTags-local-1763123466","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123472868,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + headers: + Content-Type: + - application/vnd.api+json + status: 200 OK + code: 200 + duration: 244.785042ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: DELETE + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: {} + status: 204 No Content + code: 204 + duration: 242.172292ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.datadoghq.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/7ml-ovd-cb5 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 67 + uncompressed: false + body: '{"errors":["not_found(Suppression with ID 7ml-ovd-cb5 not found)"]}' + headers: + Content-Type: + - application/json + status: 404 Not Found + code: 404 + duration: 226.474417ms diff --git a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates.freeze b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates.freeze index 254e75029..04ec24301 100644 --- a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates.freeze +++ b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates.freeze @@ -1 +1 @@ -2025-09-05T00:34:28.197389+02:00 \ No newline at end of file +2025-11-14T13:30:26.673332+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates.yaml b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates.yaml index dd110fbe9..705009994 100644 --- a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates.yaml +++ b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1757025268","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1763123426","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} form: {} headers: Accept: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 545 uncompressed: false - body: '{"data":{"id":"old-hd0-s8x","type":"suppressions","attributes":{"creation_date":1757025268821,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1757025268","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025268821,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"ij8-mvr-xmd","type":"suppressions","attributes":{"creation_date":1763123427215,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1763123426","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123427215,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 137.346833ms + duration: 259.728375ms - id: 1 request: proto: HTTP/1.1 @@ -53,7 +53,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/old-hd0-s8x + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ij8-mvr-xmd method: GET response: proto: HTTP/1.1 @@ -63,13 +63,13 @@ interactions: trailer: {} content_length: 545 uncompressed: false - body: '{"data":{"id":"old-hd0-s8x","type":"suppressions","attributes":{"creation_date":1757025268821,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1757025268","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025268821,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"ij8-mvr-xmd","type":"suppressions","attributes":{"creation_date":1763123427215,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1763123426","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123427215,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 126.150792ms + duration: 238.98925ms - id: 2 request: proto: HTTP/1.1 @@ -86,7 +86,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/old-hd0-s8x + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ij8-mvr-xmd method: GET response: proto: HTTP/1.1 @@ -96,13 +96,13 @@ interactions: trailer: {} content_length: 545 uncompressed: false - body: '{"data":{"id":"old-hd0-s8x","type":"suppressions","attributes":{"creation_date":1757025268821,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1757025268","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025268821,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"ij8-mvr-xmd","type":"suppressions","attributes":{"creation_date":1763123427215,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1763123426","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123427215,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 133.776583ms + duration: 256.611792ms - id: 3 request: proto: HTTP/1.1 @@ -119,7 +119,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/old-hd0-s8x + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ij8-mvr-xmd method: GET response: proto: HTTP/1.1 @@ -129,33 +129,33 @@ interactions: trailer: {} content_length: 545 uncompressed: false - body: '{"data":{"id":"old-hd0-s8x","type":"suppressions","attributes":{"creation_date":1757025268821,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1757025268","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025268821,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"ij8-mvr-xmd","type":"suppressions","attributes":{"creation_date":1763123427215,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1763123426","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123427215,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 117.409375ms + duration: 240.502292ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 338 + content_length: 348 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"","description":"updated suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1757025268","rule_query":"severity:low source:(cloudtrail OR azure)","suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"","description":"updated suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1763123426","rule_query":"severity:low source:(cloudtrail OR azure)","suppression_query":"env:staging","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/old-hd0-s8x + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ij8-mvr-xmd method: PATCH response: proto: HTTP/1.1 @@ -165,13 +165,13 @@ interactions: trailer: {} content_length: 564 uncompressed: false - body: '{"data":{"id":"old-hd0-s8x","type":"suppressions","attributes":{"creation_date":1757025268821,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"updated suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1757025268","rule_query":"severity:low source:(cloudtrail OR azure)","suppression_query":"env:staging","tags":[],"update_date":1757025270252,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"ij8-mvr-xmd","type":"suppressions","attributes":{"creation_date":1763123427215,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"updated suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1763123426","rule_query":"severity:low source:(cloudtrail OR azure)","suppression_query":"env:staging","tags":[],"update_date":1763123429138,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 138.084125ms + duration: 264.13875ms - id: 5 request: proto: HTTP/1.1 @@ -188,7 +188,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/old-hd0-s8x + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ij8-mvr-xmd method: GET response: proto: HTTP/1.1 @@ -198,13 +198,13 @@ interactions: trailer: {} content_length: 564 uncompressed: false - body: '{"data":{"id":"old-hd0-s8x","type":"suppressions","attributes":{"creation_date":1757025268821,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"updated suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1757025268","rule_query":"severity:low source:(cloudtrail OR azure)","suppression_query":"env:staging","tags":[],"update_date":1757025270252,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"ij8-mvr-xmd","type":"suppressions","attributes":{"creation_date":1763123427215,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"updated suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1763123426","rule_query":"severity:low source:(cloudtrail OR azure)","suppression_query":"env:staging","tags":[],"update_date":1763123429138,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 127.841ms + duration: 239.408625ms - id: 6 request: proto: HTTP/1.1 @@ -221,7 +221,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/old-hd0-s8x + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ij8-mvr-xmd method: GET response: proto: HTTP/1.1 @@ -231,13 +231,13 @@ interactions: trailer: {} content_length: 564 uncompressed: false - body: '{"data":{"id":"old-hd0-s8x","type":"suppressions","attributes":{"creation_date":1757025268821,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"updated suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1757025268","rule_query":"severity:low source:(cloudtrail OR azure)","suppression_query":"env:staging","tags":[],"update_date":1757025270252,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"ij8-mvr-xmd","type":"suppressions","attributes":{"creation_date":1763123427215,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"updated suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateAndUpdateWithoutDates-local-1763123426","rule_query":"severity:low source:(cloudtrail OR azure)","suppression_query":"env:staging","tags":[],"update_date":1763123429138,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 119.920416ms + duration: 243.072ms - id: 7 request: proto: HTTP/1.1 @@ -254,7 +254,7 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/old-hd0-s8x + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ij8-mvr-xmd method: DELETE response: proto: HTTP/1.1 @@ -268,7 +268,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 132.409291ms + duration: 256.004958ms - id: 8 request: proto: HTTP/1.1 @@ -285,7 +285,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/old-hd0-s8x + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ij8-mvr-xmd method: GET response: proto: HTTP/1.1 @@ -295,10 +295,10 @@ interactions: trailer: {} content_length: 67 uncompressed: false - body: '{"errors":["not_found(Suppression with ID old-hd0-s8x not found)"]}' + body: '{"errors":["not_found(Suppression with ID ij8-mvr-xmd not found)"]}' headers: Content-Type: - application/json status: 404 Not Found code: 404 - duration: 108.278375ms + duration: 228.4565ms diff --git a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate.freeze b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate.freeze index cac8d3364..96401e27f 100644 --- a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate.freeze +++ b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate.freeze @@ -1 +1 @@ -2025-09-05T00:34:39.347922+02:00 \ No newline at end of file +2025-11-14T13:30:41.437619+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate.yaml b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate.yaml index 9ac6ddda6..bd3e9d9b0 100644 --- a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate.yaml +++ b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} form: {} headers: Accept: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025279955,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123441970,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 129.671875ms + duration: 248.970709ms - id: 1 request: proto: HTTP/1.1 @@ -53,7 +53,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -63,13 +63,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025279955,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123441970,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 125.878292ms + duration: 239.487625ms - id: 2 request: proto: HTTP/1.1 @@ -86,7 +86,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -96,13 +96,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025279955,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123441970,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 120.071083ms + duration: 242.639208ms - id: 3 request: proto: HTTP/1.1 @@ -119,7 +119,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -129,33 +129,33 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025279955,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123441970,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 122.500791ms + duration: 232.717458ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 360 + content_length: 370 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: PATCH response: proto: HTTP/1.1 @@ -165,13 +165,13 @@ interactions: trailer: {} content_length: 586 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025281442,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123443820,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 154.176417ms + duration: 265.050333ms - id: 5 request: proto: HTTP/1.1 @@ -188,7 +188,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -198,13 +198,13 @@ interactions: trailer: {} content_length: 586 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025281442,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123443820,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 120.390542ms + duration: 239.499792ms - id: 6 request: proto: HTTP/1.1 @@ -221,7 +221,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -231,13 +231,13 @@ interactions: trailer: {} content_length: 586 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025281442,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123443820,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 124.209916ms + duration: 239.424833ms - id: 7 request: proto: HTTP/1.1 @@ -254,7 +254,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -264,33 +264,33 @@ interactions: trailer: {} content_length: 586 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025281442,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123443820,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 121.901167ms + duration: 295.610292ms - id: 8 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 360 + content_length: 370 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: PATCH response: proto: HTTP/1.1 @@ -300,13 +300,13 @@ interactions: trailer: {} content_length: 586 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025282914,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123445791,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 141.293875ms + duration: 260.902417ms - id: 9 request: proto: HTTP/1.1 @@ -323,7 +323,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -333,13 +333,13 @@ interactions: trailer: {} content_length: 586 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025282914,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123445791,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 118.875292ms + duration: 233.277125ms - id: 10 request: proto: HTTP/1.1 @@ -356,7 +356,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -366,13 +366,13 @@ interactions: trailer: {} content_length: 586 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025282914,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123445791,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 120.924542ms + duration: 238.16225ms - id: 11 request: proto: HTTP/1.1 @@ -389,7 +389,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -399,33 +399,33 @@ interactions: trailer: {} content_length: 586 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025282914,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072766400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123445791,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 115.464625ms + duration: 235.462416ms - id: 12 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 360 + content_length: 370 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"expiration_date":4072775400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"expiration_date":4072775400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: PATCH response: proto: HTTP/1.1 @@ -435,13 +435,13 @@ interactions: trailer: {} content_length: 586 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072775400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025284355,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072775400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123447710,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 136.506375ms + duration: 262.785542ms - id: 13 request: proto: HTTP/1.1 @@ -458,7 +458,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -468,13 +468,13 @@ interactions: trailer: {} content_length: 586 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072775400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025284355,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072775400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123447710,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 116.615ms + duration: 236.320708ms - id: 14 request: proto: HTTP/1.1 @@ -491,7 +491,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -501,13 +501,13 @@ interactions: trailer: {} content_length: 586 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072775400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025284355,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072775400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123447710,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 120.499042ms + duration: 237.415667ms - id: 15 request: proto: HTTP/1.1 @@ -524,7 +524,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -534,33 +534,33 @@ interactions: trailer: {} content_length: 586 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072775400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025284355,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"expiration_date":4072775400000,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123447710,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 120.897833ms + duration: 235.194417ms - id: 16 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 351 + content_length: 361 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"expiration_date":null,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"expiration_date":null,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: PATCH response: proto: HTTP/1.1 @@ -570,13 +570,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025285760,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":5}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123449608,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":5}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 143.5745ms + duration: 254.885167ms - id: 17 request: proto: HTTP/1.1 @@ -593,7 +593,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -603,13 +603,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025285760,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":5}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123449608,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":5}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 120.111583ms + duration: 242.494541ms - id: 18 request: proto: HTTP/1.1 @@ -626,7 +626,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -636,13 +636,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"m9y-r7t-lko","type":"suppressions","attributes":{"creation_date":1757025279955,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1757025279","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025285760,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":5}}}' + body: '{"data":{"id":"tph-ixw-huq","type":"suppressions","attributes":{"creation_date":1763123441970,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveExpirationDate-local-1763123441","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123449608,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":5}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 116.019083ms + duration: 233.280875ms - id: 19 request: proto: HTTP/1.1 @@ -659,7 +659,7 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: DELETE response: proto: HTTP/1.1 @@ -673,7 +673,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 134.379541ms + duration: 243.3245ms - id: 20 request: proto: HTTP/1.1 @@ -690,7 +690,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/m9y-r7t-lko + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/tph-ixw-huq method: GET response: proto: HTTP/1.1 @@ -700,10 +700,10 @@ interactions: trailer: {} content_length: 67 uncompressed: false - body: '{"errors":["not_found(Suppression with ID m9y-r7t-lko not found)"]}' + body: '{"errors":["not_found(Suppression with ID tph-ixw-huq not found)"]}' headers: Content-Type: - application/json status: 404 Not Found code: 404 - duration: 114.01275ms + duration: 225.79775ms diff --git a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate.freeze b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate.freeze index acea5026b..8106d566e 100644 --- a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate.freeze +++ b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate.freeze @@ -1 +1 @@ -2025-09-05T00:34:31.590137+02:00 \ No newline at end of file +2025-11-14T13:30:31.082561+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate.yaml b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate.yaml index 504598469..e03ea38db 100644 --- a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate.yaml +++ b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} form: {} headers: Accept: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 549 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025272192,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123431629,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 129.953542ms + duration: 256.049541ms - id: 1 request: proto: HTTP/1.1 @@ -53,7 +53,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -63,13 +63,13 @@ interactions: trailer: {} content_length: 549 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025272192,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123431629,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 117.465125ms + duration: 233.436ms - id: 2 request: proto: HTTP/1.1 @@ -86,7 +86,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -96,13 +96,13 @@ interactions: trailer: {} content_length: 549 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025272192,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123431629,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 116.985916ms + duration: 239.740042ms - id: 3 request: proto: HTTP/1.1 @@ -119,7 +119,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -129,33 +129,33 @@ interactions: trailer: {} content_length: 549 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025272192,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123431629,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 119.699834ms + duration: 241.60975ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 350 + content_length: 360 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: PATCH response: proto: HTTP/1.1 @@ -165,13 +165,13 @@ interactions: trailer: {} content_length: 576 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1757025273697,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1763123433517,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 140.923584ms + duration: 267.633167ms - id: 5 request: proto: HTTP/1.1 @@ -188,7 +188,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -198,13 +198,13 @@ interactions: trailer: {} content_length: 576 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1757025273697,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1763123433517,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 126.127292ms + duration: 240.52725ms - id: 6 request: proto: HTTP/1.1 @@ -221,7 +221,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -231,13 +231,13 @@ interactions: trailer: {} content_length: 576 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1757025273697,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1763123433517,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 125.090792ms + duration: 245.064083ms - id: 7 request: proto: HTTP/1.1 @@ -254,7 +254,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -264,33 +264,33 @@ interactions: trailer: {} content_length: 576 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1757025273697,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1763123433517,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 122.727333ms + duration: 240.330958ms - id: 8 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 350 + content_length: 360 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: PATCH response: proto: HTTP/1.1 @@ -300,13 +300,13 @@ interactions: trailer: {} content_length: 576 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1757025275138,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1763123435470,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 145.27325ms + duration: 319.917875ms - id: 9 request: proto: HTTP/1.1 @@ -323,7 +323,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -333,13 +333,13 @@ interactions: trailer: {} content_length: 576 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1757025275138,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1763123435470,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 117.730625ms + duration: 238.451958ms - id: 10 request: proto: HTTP/1.1 @@ -356,7 +356,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -366,13 +366,13 @@ interactions: trailer: {} content_length: 576 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1757025275138,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1763123435470,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 115.785875ms + duration: 237.517ms - id: 11 request: proto: HTTP/1.1 @@ -389,7 +389,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -399,33 +399,33 @@ interactions: trailer: {} content_length: 576 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1757025275138,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072766400000,"suppression_query":"env:staging","tags":[],"update_date":1763123435470,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":3}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 126.012125ms + duration: 290.719417ms - id: 12 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 350 + content_length: 360 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: PATCH response: proto: HTTP/1.1 @@ -435,13 +435,13 @@ interactions: trailer: {} content_length: 576 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1757025276582,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1763123437480,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 152.053208ms + duration: 268.536625ms - id: 13 request: proto: HTTP/1.1 @@ -458,7 +458,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -468,13 +468,13 @@ interactions: trailer: {} content_length: 576 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1757025276582,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1763123437480,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 119.58475ms + duration: 278.144958ms - id: 14 request: proto: HTTP/1.1 @@ -491,7 +491,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -501,13 +501,13 @@ interactions: trailer: {} content_length: 576 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1757025276582,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1763123437480,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 118.258541ms + duration: 237.949041ms - id: 15 request: proto: HTTP/1.1 @@ -524,7 +524,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -534,33 +534,33 @@ interactions: trailer: {} content_length: 576 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1757025276582,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1763123437480,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":4}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 116.599417ms + duration: 239.397542ms - id: 16 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 341 + content_length: 351 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","start_date":null,"suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for terraform provider test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","start_date":null,"suppression_query":"env:staging","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: PATCH response: proto: HTTP/1.1 @@ -570,13 +570,13 @@ interactions: trailer: {} content_length: 549 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025278004,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":5}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123439425,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":5}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 138.38ms + duration: 266.753709ms - id: 17 request: proto: HTTP/1.1 @@ -593,7 +593,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -603,13 +603,13 @@ interactions: trailer: {} content_length: 549 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025278004,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":5}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123439425,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":5}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 131.661542ms + duration: 242.578084ms - id: 18 request: proto: HTTP/1.1 @@ -626,7 +626,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -636,13 +636,13 @@ interactions: trailer: {} content_length: 549 uncompressed: false - body: '{"data":{"id":"bjs-028-vvk","type":"suppressions","attributes":{"creation_date":1757025272192,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1757025271","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1757025278004,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":5}}}' + body: '{"data":{"id":"kmq-fjd-xkn","type":"suppressions","attributes":{"creation_date":1763123431629,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for terraform provider test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_CreateThenAddAndRemoveStartDate-local-1763123431","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging","tags":[],"update_date":1763123439425,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":5}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 119.15575ms + duration: 236.982541ms - id: 19 request: proto: HTTP/1.1 @@ -659,7 +659,7 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: DELETE response: proto: HTTP/1.1 @@ -673,7 +673,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 128.347417ms + duration: 247.587459ms - id: 20 request: proto: HTTP/1.1 @@ -690,7 +690,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/bjs-028-vvk + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/kmq-fjd-xkn method: GET response: proto: HTTP/1.1 @@ -700,10 +700,10 @@ interactions: trailer: {} content_length: 67 uncompressed: false - body: '{"errors":["not_found(Suppression with ID bjs-028-vvk not found)"]}' + body: '{"errors":["not_found(Suppression with ID kmq-fjd-xkn not found)"]}' headers: Content-Type: - application/json status: 404 Not Found code: 404 - duration: 109.276458ms + duration: 231.90075ms diff --git a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_ValidationEnabled.freeze b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_ValidationEnabled.freeze index 1110b1124..c8d2cc9cf 100644 --- a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_ValidationEnabled.freeze +++ b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_ValidationEnabled.freeze @@ -1 +1 @@ -2025-09-05T00:34:53.564508+02:00 \ No newline at end of file +2025-11-14T13:30:59.917451+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_ValidationEnabled.yaml b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_ValidationEnabled.yaml index 03dbf619b..92282f88d 100644 --- a/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_ValidationEnabled.yaml +++ b/datadog/tests/cassettes/TestAccSecurityMonitoringSuppression_ValidationEnabled.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging"},"type":"suppressions"}} form: {} headers: Accept: @@ -34,7 +34,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 114.728667ms + duration: 241.80775ms - id: 1 request: proto: HTTP/1.1 @@ -47,7 +47,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging"},"type":"suppressions"}} form: {} headers: Accept: @@ -68,7 +68,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 113.056875ms + duration: 229.973ms - id: 2 request: proto: HTTP/1.1 @@ -81,7 +81,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging"},"type":"suppressions"}} form: {} headers: Accept: @@ -98,13 +98,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"jkq-xpc-d7k","type":"suppressions","attributes":{"creation_date":1757025294408,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1757025294408,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"nqb-u0q-jpq","type":"suppressions","attributes":{"creation_date":1763123460928,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1763123460928,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 128.639542ms + duration: 250.070042ms - id: 3 request: proto: HTTP/1.1 @@ -121,7 +121,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/jkq-xpc-d7k + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/nqb-u0q-jpq method: GET response: proto: HTTP/1.1 @@ -131,13 +131,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"jkq-xpc-d7k","type":"suppressions","attributes":{"creation_date":1757025294408,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1757025294408,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"nqb-u0q-jpq","type":"suppressions","attributes":{"creation_date":1763123460928,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1763123460928,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 122.517416ms + duration: 236.965583ms - id: 4 request: proto: HTTP/1.1 @@ -150,7 +150,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} form: {} headers: Accept: @@ -171,7 +171,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 120.476459ms + duration: 266.214542ms - id: 5 request: proto: HTTP/1.1 @@ -188,7 +188,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/jkq-xpc-d7k + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/nqb-u0q-jpq method: GET response: proto: HTTP/1.1 @@ -198,13 +198,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"jkq-xpc-d7k","type":"suppressions","attributes":{"creation_date":1757025294408,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1757025294408,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"nqb-u0q-jpq","type":"suppressions","attributes":{"creation_date":1763123460928,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1763123460928,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 122.216292ms + duration: 239.135625ms - id: 6 request: proto: HTTP/1.1 @@ -217,7 +217,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} form: {} headers: Accept: @@ -238,7 +238,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 112.540625ms + duration: 250.998333ms - id: 7 request: proto: HTTP/1.1 @@ -255,7 +255,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/jkq-xpc-d7k + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/nqb-u0q-jpq method: GET response: proto: HTTP/1.1 @@ -265,13 +265,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"jkq-xpc-d7k","type":"suppressions","attributes":{"creation_date":1757025294408,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1757025294408,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' + body: '{"data":{"id":"nqb-u0q-jpq","type":"suppressions","attributes":{"creation_date":1763123460928,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4072775400000,"suppression_query":"env:staging","tags":[],"update_date":1763123460928,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 125.340042ms + duration: 256.753ms - id: 8 request: proto: HTTP/1.1 @@ -284,7 +284,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4135847400000,"suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4135847400000,"suppression_query":"env:staging"},"type":"suppressions"}} form: {} headers: Accept: @@ -305,7 +305,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 113.141541ms + duration: 226.17275ms - id: 9 request: proto: HTTP/1.1 @@ -318,7 +318,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4135847400000,"suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4135847400000,"suppression_query":"env:staging"},"type":"suppressions"}} form: {} headers: Accept: @@ -339,27 +339,27 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 111.226167ms + duration: 234.265958ms - id: 10 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 328 + content_length: 338 transfer_encoding: [] trailer: {} host: api.datadoghq.com remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4135847400000,"suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"data_exclusion_query":"","description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4135847400000,"suppression_query":"env:staging","tags":[]},"type":"suppressions"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/jkq-xpc-d7k + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/nqb-u0q-jpq method: PATCH response: proto: HTTP/1.1 @@ -369,13 +369,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"jkq-xpc-d7k","type":"suppressions","attributes":{"creation_date":1757025294408,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4135847400000,"suppression_query":"env:staging","tags":[],"update_date":1757025296303,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"nqb-u0q-jpq","type":"suppressions","attributes":{"creation_date":1763123460928,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4135847400000,"suppression_query":"env:staging","tags":[],"update_date":1763123463900,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 136.289208ms + duration: 344.992625ms - id: 11 request: proto: HTTP/1.1 @@ -392,7 +392,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/jkq-xpc-d7k + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/nqb-u0q-jpq method: GET response: proto: HTTP/1.1 @@ -402,13 +402,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"jkq-xpc-d7k","type":"suppressions","attributes":{"creation_date":1757025294408,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4135847400000,"suppression_query":"env:staging","tags":[],"update_date":1757025296303,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"nqb-u0q-jpq","type":"suppressions","attributes":{"creation_date":1763123460928,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4135847400000,"suppression_query":"env:staging","tags":[],"update_date":1763123463900,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 119.833417ms + duration: 285.857833ms - id: 12 request: proto: HTTP/1.1 @@ -421,7 +421,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} form: {} headers: Accept: @@ -442,7 +442,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 112.754333ms + duration: 225.564375ms - id: 13 request: proto: HTTP/1.1 @@ -459,7 +459,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/jkq-xpc-d7k + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/nqb-u0q-jpq method: GET response: proto: HTTP/1.1 @@ -469,13 +469,13 @@ interactions: trailer: {} content_length: 554 uncompressed: false - body: '{"data":{"id":"jkq-xpc-d7k","type":"suppressions","attributes":{"creation_date":1757025294408,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","start_date":4135847400000,"suppression_query":"env:staging","tags":[],"update_date":1757025296303,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' + body: '{"data":{"id":"nqb-u0q-jpq","type":"suppressions","attributes":{"creation_date":1763123460928,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"suppression for validation test","editable":true,"enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","start_date":4135847400000,"suppression_query":"env:staging","tags":[],"update_date":1763123463900,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":2}}}' headers: Content-Type: - application/vnd.api+json status: 200 OK code: 200 - duration: 118.228458ms + duration: 239.454042ms - id: 14 request: proto: HTTP/1.1 @@ -488,7 +488,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1757025293","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} + {"data":{"attributes":{"description":"suppression for validation test","enabled":true,"name":"tf-TestAccSecurityMonitoringSuppression_ValidationEnabled-local-1763123459","rule_query":"severity:low source:cloudtrail","suppression_query":"env:staging"},"type":"suppressions"}} form: {} headers: Accept: @@ -509,7 +509,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 114.665833ms + duration: 228.587083ms - id: 15 request: proto: HTTP/1.1 @@ -526,7 +526,7 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/jkq-xpc-d7k + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/nqb-u0q-jpq method: DELETE response: proto: HTTP/1.1 @@ -540,7 +540,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 134.482959ms + duration: 250.318916ms - id: 16 request: proto: HTTP/1.1 @@ -557,7 +557,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/jkq-xpc-d7k + url: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/nqb-u0q-jpq method: GET response: proto: HTTP/1.1 @@ -567,10 +567,10 @@ interactions: trailer: {} content_length: 67 uncompressed: false - body: '{"errors":["not_found(Suppression with ID jkq-xpc-d7k not found)"]}' + body: '{"errors":["not_found(Suppression with ID nqb-u0q-jpq not found)"]}' headers: Content-Type: - application/json status: 404 Not Found code: 404 - duration: 120.684959ms + duration: 225.834792ms diff --git a/datadog/tests/resource_datadog_security_monitoring_suppression_test.go b/datadog/tests/resource_datadog_security_monitoring_suppression_test.go index e15068973..0fda4a958 100644 --- a/datadog/tests/resource_datadog_security_monitoring_suppression_test.go +++ b/datadog/tests/resource_datadog_security_monitoring_suppression_test.go @@ -568,3 +568,115 @@ func TestAccSecurityMonitoringSuppression_ValidationEnabled(t *testing.T) { }, }) } + +// Create a suppression with tags, update tags, then remove all tags +func TestAccSecurityMonitoringSuppression_CreateAndUpdateTags(t *testing.T) { + ctx, providers, accProviders := testAccFrameworkMuxProviders(context.Background(), t) + suppressionName := uniqueEntityName(ctx, t) + resourceName := "datadog_security_monitoring_suppression.suppression_test_tags" + + configWithoutTags := fmt.Sprintf(` + resource "datadog_security_monitoring_suppression" "suppression_test_tags" { + name = "%s" + description = "suppression for terraform provider test" + enabled = true + rule_query = "severity:low source:cloudtrail" + suppression_query = "env:staging" + validate = false + } + `, suppressionName) + + configWithTags := func(tags []string) string { + tagsStr := "" + for i, tag := range tags { + if i > 0 { + tagsStr += ", " + } + tagsStr += fmt.Sprintf("\"%s\"", tag) + } + return fmt.Sprintf(` + resource "datadog_security_monitoring_suppression" "suppression_test_tags" { + name = "%s" + description = "suppression for terraform provider test" + enabled = true + rule_query = "severity:low source:cloudtrail" + suppression_query = "env:staging" + tags = [%s] + validate = false + } + `, suppressionName, tagsStr) + } + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProtoV5ProviderFactories: accProviders, + CheckDestroy: testAccCheckSecurityMonitoringSuppressionDestroy(providers.frameworkProvider), + Steps: []resource.TestStep{ + // Create without tags + { + Config: configWithoutTags, + Check: resource.ComposeTestCheckFunc( + testAccCheckSecurityMonitoringSuppressionExists(providers.frameworkProvider, resourceName), + checkSecurityMonitoringSuppressionContent( + resourceName, + suppressionName, + "suppression for terraform provider test", + "severity:low source:cloudtrail", + "env:staging", + ), + resource.TestCheckResourceAttr(resourceName, "tags.#", "0"), + ), + }, + // Add tags + { + Config: configWithTags([]string{"env:test", "team:security"}), + Check: resource.ComposeTestCheckFunc( + testAccCheckSecurityMonitoringSuppressionExists(providers.frameworkProvider, resourceName), + checkSecurityMonitoringSuppressionContent( + resourceName, + suppressionName, + "suppression for terraform provider test", + "severity:low source:cloudtrail", + "env:staging", + ), + resource.TestCheckResourceAttr(resourceName, "tags.#", "2"), + resource.TestCheckResourceAttr(resourceName, "tags.0", "env:test"), + resource.TestCheckResourceAttr(resourceName, "tags.1", "team:security"), + ), + }, + // Update tags + { + Config: configWithTags([]string{"env:prod", "owner:terraform", "team:security"}), + Check: resource.ComposeTestCheckFunc( + testAccCheckSecurityMonitoringSuppressionExists(providers.frameworkProvider, resourceName), + checkSecurityMonitoringSuppressionContent( + resourceName, + suppressionName, + "suppression for terraform provider test", + "severity:low source:cloudtrail", + "env:staging", + ), + resource.TestCheckResourceAttr(resourceName, "tags.#", "3"), + resource.TestCheckResourceAttr(resourceName, "tags.0", "env:prod"), + resource.TestCheckResourceAttr(resourceName, "tags.1", "owner:terraform"), + resource.TestCheckResourceAttr(resourceName, "tags.2", "team:security"), + ), + }, + // Remove all tags + { + Config: configWithoutTags, + Check: resource.ComposeTestCheckFunc( + testAccCheckSecurityMonitoringSuppressionExists(providers.frameworkProvider, resourceName), + checkSecurityMonitoringSuppressionContent( + resourceName, + suppressionName, + "suppression for terraform provider test", + "severity:low source:cloudtrail", + "env:staging", + ), + resource.TestCheckResourceAttr(resourceName, "tags.#", "0"), + ), + }, + }, + }) +} diff --git a/docs/data-sources/security_monitoring_suppressions.md b/docs/data-sources/security_monitoring_suppressions.md index ef57f50fa..9e87c3a66 100644 --- a/docs/data-sources/security_monitoring_suppressions.md +++ b/docs/data-sources/security_monitoring_suppressions.md @@ -35,3 +35,4 @@ Read-Only: - `rule_query` (String) - `start_date` (String) - `suppression_query` (String) +- `tags` (List of String) diff --git a/docs/resources/security_monitoring_suppression.md b/docs/resources/security_monitoring_suppression.md index bc3491140..98e871d8e 100644 --- a/docs/resources/security_monitoring_suppression.md +++ b/docs/resources/security_monitoring_suppression.md @@ -41,6 +41,7 @@ resource "datadog_security_monitoring_suppression" "my_suppression" { - `expiration_date` (String) A RFC3339 timestamp giving an expiration date for the suppression rule. After this date, it won't suppress signals anymore. - `start_date` (String) A RFC3339 timestamp giving a start date for the suppression rule. Before this date, it doesn't suppress signals. - `suppression_query` (String) The suppression query of the suppression rule. If a signal matches this query, it is suppressed and is not triggered. It uses the same syntax as the queries to search signals in the Signals Explorer. +- `tags` (List of String) A list of tags associated with the suppression rule. - `validate` (Boolean) Whether to validate the suppression rule during `terraform plan`. When set to `true`, the rule is validated against Datadog's suppression validation endpoint. Defaults to `true`. ### Read-Only diff --git a/go.mod b/go.mod index 4114e35e5..133407c75 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/terraform-providers/terraform-provider-datadog require ( - github.com/DataDog/datadog-api-client-go/v2 v2.49.1-0.20251030203800-552aa5c847ff + github.com/DataDog/datadog-api-client-go/v2 v2.49.1-0.20251112214348-3952811fda63 github.com/DataDog/dd-sdk-go-testing v0.0.0-20211116174033-1cd082e322ad github.com/Masterminds/semver/v3 v3.3.1 github.com/google/go-cmp v0.7.0 diff --git a/go.sum b/go.sum index 33543cf90..3a71d623f 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/DataDog/datadog-api-client-go/v2 v2.49.1-0.20251030203800-552aa5c847ff h1:3PolxkmEEehtl4C71m8UjX+BKJfqi+zlXVTsH0FgEGE= -github.com/DataDog/datadog-api-client-go/v2 v2.49.1-0.20251030203800-552aa5c847ff/go.mod h1:d3tOEgUd2kfsr9uuHQdY+nXrWp4uikgTgVCPdKNK30U= +github.com/DataDog/datadog-api-client-go/v2 v2.49.1-0.20251112214348-3952811fda63 h1:l2HqP2F8tO32sIWDwHzJ1fCW4JHoaPcopsXv0v9t3Nc= +github.com/DataDog/datadog-api-client-go/v2 v2.49.1-0.20251112214348-3952811fda63/go.mod h1:d3tOEgUd2kfsr9uuHQdY+nXrWp4uikgTgVCPdKNK30U= github.com/DataDog/datadog-go v4.4.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/datadog-go v4.8.3+incompatible h1:fNGaYSuObuQb5nzeTQqowRAd9bpDIRRV4/gUtIBjh8Q= github.com/DataDog/datadog-go v4.8.3+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=