Repository: DataDog/terraform-provider-datadog

Issue:
Data source for datadog_metrics
### What resources or data sources are affected?

* `datadog_metrics`

### Feature Request

A `datadog_metrics` data source for [fetching all metrics associated with a search query](https://docs.datadoghq.com/api/latest/metrics/#search-metrics) would be useful for dynamically driving conditional logic that keys off existing metrics. 

### References

The use case would be similar to that outlined in issue #2965 surrounding the now-supported `datadog_metric_tags` data source.

Hints from issue comments:
@mdb: This is addressed via PR [#3214](https://github.com/DataDog/terraform-provider-datadog/pull/3214)!

Solution patch:
diff --git a/datadog/data_source_datadog_user.go b/datadog/data_source_datadog_user.go
index 48791dfb..7298714d 100644
--- a/datadog/data_source_datadog_user.go
+++ b/datadog/data_source_datadog_user.go
@@ -29,6 +29,12 @@ func dataSourceDatadogUser() *schema.Resource {
 					Default:     false,
 					Optional:    true,
 				},
+				"exclude_service_accounts": {
+					Description: "When true, service accounts are excluded from the result.",
+					Type:        schema.TypeBool,
+					Default:     false,
+					Optional:    true,
+				},
 				// Computed values
 				"created_at": {
 					Description: "The time when the user was created (RFC3339 format).",
@@ -101,6 +107,7 @@ func dataSourceDatadogUserRead(ctx context.Context, d *schema.ResourceData, meta
 	auth := providerConf.Auth
 	filter := d.Get("filter").(string) // string | Filter all users by the given string. Defaults to no filtering. (optional) // string | Filter on status attribute. Comma separated list, with possible values `Active`, `Pending`, and `Disabled`. Defaults to no filtering. (optional)
 	exactMatch := d.Get("exact_match").(bool)
+	excludeServiceAccounts := d.Get("exclude_service_accounts").(bool)
 	optionalParams := datadogV2.ListUsersOptionalParameters{
 		Filter: &filter,
 	}
@@ -111,12 +118,25 @@ func dataSourceDatadogUserRead(ctx context.Context, d *schema.ResourceData, meta
 	}
 
 	users := res.GetData()
+	errorPrefix := ""
+	if excludeServiceAccounts {
+		errorPrefix = "after excluding service accounts, "
+		filteredUsers := make([]datadogV2.User, 0)
+		for _, user := range users {
+			if !user.Attributes.GetServiceAccount() {
+				filteredUsers = append(filteredUsers, user)
+			}
+		}
+		users = filteredUsers
+	}
+
 	if len(users) > 1 && !exactMatch {
-		return diag.Errorf("your query returned more than one result for filter \"%s\", please try a more specific search criteria",
+		return diag.Errorf("%syour query returned more than one result for filter \"%s\", please try a more specific search criteria",
+			errorPrefix,
 			filter,
 		)
 	} else if len(users) == 0 {
-		return diag.Errorf("didn't find any user matching filter string  \"%s\"", filter)
+		return diag.Errorf("%sdidn't find any user matching filter string \"%s\"", errorPrefix, filter)
 	}
 
 	matchedUser := users[0]
@@ -135,12 +155,13 @@ func dataSourceDatadogUserRead(ctx context.Context, d *schema.ResourceData, meta
 			}
 		}
 		if matchCount > 1 {
-			return diag.Errorf("your query returned more than one result for filter with exact match \"%s\", please try a more specific search criteria",
+			return diag.Errorf("%syour query returned more than one result for filter with exact match \"%s\", please try a more specific search criteria",
+				errorPrefix,
 				filter,
 			)
 		}
 		if matchCount == 0 {
-			return diag.Errorf("didn't find any user matching filter string with exact match \"%s\"", filter)
+			return diag.Errorf("%sdidn't find any user matching filter string with exact match \"%s\"", errorPrefix, filter)
 		}
 	}
 
diff --git a/datadog/fwprovider/data_source_datadog_metrics.go b/datadog/fwprovider/data_source_datadog_metrics.go
new file mode 100644
index 00000000..f3b5187e
--- /dev/null
+++ b/datadog/fwprovider/data_source_datadog_metrics.go
@@ -0,0 +1,89 @@
+package fwprovider
+
+import (
+	"context"
+	"fmt"
+	"strings"
+
+	"github.com/DataDog/datadog-api-client-go/v2/api/datadogV1"
+	"github.com/hashicorp/terraform-plugin-framework/datasource"
+	"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
+	"github.com/hashicorp/terraform-plugin-framework/types"
+
+	"github.com/terraform-providers/terraform-provider-datadog/datadog/internal/utils"
+)
+
+var (
+	_ datasource.DataSource = &datadogMetricsDataSource{}
+)
+
+type datadogMetricsModel struct {
+	ID      types.String `tfsdk:"id"`
+	Query   types.String `tfsdk:"query"`
+	Metrics types.List   `tfsdk:"metrics"`
+}
+
+type datadogMetricsDataSource struct {
+	Api  *datadogV1.MetricsApi
+	Auth context.Context
+}
+
+func NewDatadogMetricsDataSource() datasource.DataSource {
+	return &datadogMetricsDataSource{}
+}
+
+func (d *datadogMetricsDataSource) Configure(_ context.Context, request datasource.ConfigureRequest, response *datasource.ConfigureResponse) {
+	providerData, _ := request.ProviderData.(*FrameworkProvider)
+	d.Api = providerData.DatadogApiInstances.GetMetricsApiV1()
+	d.Auth = providerData.Auth
+}
+
+func (d *datadogMetricsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
+	resp.TypeName = "metrics"
+}
+
+func (d *datadogMetricsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
+	resp.Schema = schema.Schema{
+		Description: "Use this data source to list metrics for use in other resources.",
+		Attributes: map[string]schema.Attribute{
+			"id": utils.ResourceIDAttribute(),
+			"query": schema.StringAttribute{
+				Description: "The search query to use when listing metrics.",
+				Required:    true,
+			},
+			// Computed values
+			"metrics": schema.ListAttribute{
+				Description: "The metrics returned by the search query.",
+				Computed:    true,
+				ElementType: types.StringType,
+			},
+		},
+	}
+}
+
+func (d *datadogMetricsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
+	var state datadogMetricsModel
+
+	resp.Diagnostics.Append(req.Config.Get(ctx, &state)...)
+	if resp.Diagnostics.HasError() {
+		return
+	}
+	ddResp, _, err := d.Api.ListMetrics(d.Auth, state.Query.ValueString())
+	if err != nil {
+		resp.Diagnostics.Append(utils.FrameworkErrorDiag(err, "error listing metrics"))
+		return
+	}
+
+	results := ddResp.GetResults()
+	metrics := results.GetMetrics()
+
+	d.updateState(ctx, &state, metrics)
+	resp.Diagnostics.Append(resp.State.Set(ctx, &state)...)
+}
+
+func (d *datadogMetricsDataSource) updateState(ctx context.Context, state *datadogMetricsModel, metrics []string) {
+	hashingData := fmt.Sprintf("%s:%s", state.Query.ValueString(), strings.Join(metrics, ":"))
+
+	state.ID = types.StringValue(utils.ConvertToSha256(hashingData))
+	state.Metrics, _ = types.ListValueFrom(ctx, types.StringType, metrics)
+}
diff --git a/datadog/fwprovider/framework_provider.go b/datadog/fwprovider/framework_provider.go
index aaace9e3..285a8671 100644
--- a/datadog/fwprovider/framework_provider.go
+++ b/datadog/fwprovider/framework_provider.go
@@ -123,6 +123,7 @@ var Datasources = []func() datasource.DataSource{
 	NewDatadogMetricActiveTagsAndAggregationsDataSource,
 	NewDatadogMetricMetadataDataSource,
 	NewDatadogMetricTagsDataSource,
+	NewDatadogMetricsDataSource,
 	NewDatadogPowerpackDataSource,
 	NewDatadogServiceAccountDatasource,
 	NewDatadogSoftwareCatalogDataSource,
diff --git a/datadog/fwprovider/resource_datadog_agentless_scanning_gcp_scan_options.go b/datadog/fwprovider/resource_datadog_agentless_scanning_gcp_scan_options.go
index 792e5901..0706785b 100644
--- a/datadog/fwprovider/resource_datadog_agentless_scanning_gcp_scan_options.go
+++ b/datadog/fwprovider/resource_datadog_agentless_scanning_gcp_scan_options.go
@@ -82,27 +82,11 @@ func (r *agentlessScanningGcpScanOptionsResource) Create(ctx context.Context, re
 		return
 	}
 
-	body := datadogV2.GcpScanOptions{
-		Data: &datadogV2.GcpScanOptionsData{
-			Id:   state.GcpProjectId.ValueString(),
-			Type: datadogV2.GCPSCANOPTIONSDATATYPE_GCP_SCAN_OPTIONS,
-			Attributes: &datadogV2.GcpScanOptionsDataAttributes{
-				VulnContainersOs: boolPtr(state.VulnContainersOs.ValueBool()),
-				VulnHostOs:       boolPtr(state.VulnHostOs.ValueBool()),
-			},
-		},
-	}
-
-	gcpScanOptionsResponse, _, err := r.Api.CreateGcpScanOptions(r.Auth, body)
-	if err != nil {
-		response.Diagnostics.AddError("Error creating GCP scan options", err.Error())
+	r.createOrUpdate(&state, &response.Diagnostics)
+	if response.Diagnostics.HasError() {
 		return
 	}
 
-	r.updateStateFromResponse(&state, gcpScanOptionsResponse)
-	// Set the Terraform resource ID to the GCP project ID
-	state.ID = types.StringValue(state.GcpProjectId.ValueString())
-
 	response.Diagnostics.Append(response.State.Set(ctx, &state)...)
 }
 
@@ -135,42 +119,12 @@ func (r *agentlessScanningGcpScanOptionsResource) Update(ctx context.Context, re
 		return
 	}
 
-	projectID := state.GcpProjectId.ValueString()
-
-	body := datadogV2.GcpScanOptionsInputUpdate{
-		Data: &datadogV2.GcpScanOptionsInputUpdateData{
-			Id:   state.GcpProjectId.ValueString(),
-			Type: datadogV2.GCPSCANOPTIONSINPUTUPDATEDATATYPE_GCP_SCAN_OPTIONS,
-			Attributes: &datadogV2.GcpScanOptionsInputUpdateDataAttributes{
-				VulnContainersOs: boolPtr(state.VulnContainersOs.ValueBool()),
-				VulnHostOs:       boolPtr(state.VulnHostOs.ValueBool()),
-			},
-		},
-	}
-
-	_, res, err := r.Api.UpdateGcpScanOptions(r.Auth, projectID, body)
-	if err != nil {
-		errorMsg := "Error updating GCP scan options"
-		if res != nil {
-			errorMsg += fmt.Sprintf(". API response: %s", res.Body)
-		}
-		response.Diagnostics.AddError(errorMsg, err.Error())
-		return
-	}
-
-	// After update, we need to read the current state since the API doesn't return the updated object
-	readReq := resource.ReadRequest{State: response.State}
-	readResp := resource.ReadResponse{State: response.State, Diagnostics: diag.Diagnostics{}}
-
-	// Set the state with current values before reading
-	response.Diagnostics.Append(response.State.Set(ctx, &state)...)
+	r.createOrUpdate(&state, &response.Diagnostics)
 	if response.Diagnostics.HasError() {
 		return
 	}
 
-	r.Read(ctx, readReq, &readResp)
-	response.Diagnostics.Append(readResp.Diagnostics...)
-	response.State = readResp.State
+	response.Diagnostics.Append(response.State.Set(ctx, &state)...)
 }
 
 func (r *agentlessScanningGcpScanOptionsResource) Delete(ctx context.Context, request resource.DeleteRequest, response *resource.DeleteResponse) {
@@ -208,3 +162,68 @@ func (r *agentlessScanningGcpScanOptionsResource) updateStateFromScanOptionsData
 	state.VulnContainersOs = types.BoolValue(attributes.GetVulnContainersOs())
 	state.VulnHostOs = types.BoolValue(attributes.GetVulnHostOs())
 }
+
+// createOrUpdate attempts to read existing scan options and either creates or updates them accordingly
+func (r *agentlessScanningGcpScanOptionsResource) createOrUpdate(state *agentlessScanningGcpScanOptionsResourceModel, diagnostics *diag.Diagnostics) {
+	projectID := state.GcpProjectId.ValueString()
+
+	// Try to read existing scan options
+	_, httpResp, err := r.Api.GetGcpScanOptions(r.Auth, projectID)
+
+	// Check if scan options already exist
+	scanOptionsExist := err == nil
+	if err != nil && httpResp != nil && httpResp.StatusCode != 404 {
+		// If error is not a 404, it's an unexpected error
+		diagnostics.AddError("Error checking existing GCP scan options", err.Error())
+		return
+	}
+
+	if scanOptionsExist {
+		// Scan options exist, perform update
+		updateBody := datadogV2.GcpScanOptionsInputUpdate{
+			Data: &datadogV2.GcpScanOptionsInputUpdateData{
+				Id:   projectID,
+				Type: datadogV2.GCPSCANOPTIONSINPUTUPDATEDATATYPE_GCP_SCAN_OPTIONS,
+				Attributes: &datadogV2.GcpScanOptionsInputUpdateDataAttributes{
+					VulnContainersOs: boolPtr(state.VulnContainersOs.ValueBool()),
+					VulnHostOs:       boolPtr(state.VulnHostOs.ValueBool()),
+				},
+			},
+		}
+
+		gcpScanOptionsResponse, res, err := r.Api.UpdateGcpScanOptions(r.Auth, projectID, updateBody)
+		if err != nil {
+			errorMsg := "Error updating GCP scan options"
+			if res != nil {
+				errorMsg += fmt.Sprintf(". API response: %s", res.Body)
+			}
+			diagnostics.AddError(errorMsg, err.Error())
+			return
+		}
+
+		r.updateStateFromResponse(state, gcpScanOptionsResponse)
+	} else {
+		// Scan options don't exist (404), perform create
+		createBody := datadogV2.GcpScanOptions{
+			Data: &datadogV2.GcpScanOptionsData{
+				Id:   projectID,
+				Type: datadogV2.GCPSCANOPTIONSDATATYPE_GCP_SCAN_OPTIONS,
+				Attributes: &datadogV2.GcpScanOptionsDataAttributes{
+					VulnContainersOs: boolPtr(state.VulnContainersOs.ValueBool()),
+					VulnHostOs:       boolPtr(state.VulnHostOs.ValueBool()),
+				},
+			},
+		}
+
+		gcpScanOptionsResponse, _, err := r.Api.CreateGcpScanOptions(r.Auth, createBody)
+		if err != nil {
+			diagnostics.AddError("Error creating GCP scan options", err.Error())
+			return
+		}
+
+		r.updateStateFromResponse(state, gcpScanOptionsResponse)
+	}
+
+	// Set the Terraform resource ID to the GCP project ID
+	state.ID = types.StringValue(projectID)
+}
diff --git a/datadog/fwprovider/resource_datadog_tag_pipeline_rulesets.go b/datadog/fwprovider/resource_datadog_tag_pipeline_rulesets.go
index 9737faa3..1c0d0539 100644
--- a/datadog/fwprovider/resource_datadog_tag_pipeline_rulesets.go
+++ b/datadog/fwprovider/resource_datadog_tag_pipeline_rulesets.go
@@ -3,6 +3,8 @@ package fwprovider
 import (
 	"context"
 	"fmt"
+	"sort"
+	"strings"
 
 	"github.com/DataDog/datadog-api-client-go/v2/api/datadogV2"
 	"github.com/hashicorp/terraform-plugin-framework/diag"
@@ -17,6 +19,7 @@ import (
 var (
 	_ resource.ResourceWithConfigure   = &tagPipelineRulesetsResource{}
 	_ resource.ResourceWithImportState = &tagPipelineRulesetsResource{}
+	_ resource.ResourceWithModifyPlan  = &tagPipelineRulesetsResource{}
 )
 
 func NewTagPipelineRulesetsResource() resource.Resource {
@@ -24,8 +27,9 @@ func NewTagPipelineRulesetsResource() resource.Resource {
 }
 
 type tagPipelineRulesetsModel struct {
-	ID         types.String `tfsdk:"id"`
-	RulesetIDs types.List   `tfsdk:"ruleset_ids"`
+	ID                         types.String `tfsdk:"id"`
+	RulesetIDs                 types.List   `tfsdk:"ruleset_ids"`
+	OverrideUIDefinedResources types.Bool   `tfsdk:"override_ui_defined_resources"`
 }
 
 type tagPipelineRulesetsResource struct {
@@ -52,6 +56,10 @@ func (r *tagPipelineRulesetsResource) Schema(_ context.Context, _ resource.Schem
 				ElementType: types.StringType,
 				Required:    true,
 			},
+			"override_ui_defined_resources": schema.BoolAttribute{
+				Description: "Whether to override UI-defined rulesets. When set to true, any rulesets created via the UI that are not defined in Terraform will be deleted and Terraform will be used as the source of truth for rules and their ordering. When set to false, any rulesets created via the UI that are at the end of order will be kept but will be warned, otherwise an error will be thrown in terraform plan phase. Default is false",
+				Optional:    true,
+			},
 			// Resource ID
 			"id": utils.ResourceIDAttribute(),
 		},
@@ -78,6 +86,19 @@ func (r *tagPipelineRulesetsResource) Read(ctx context.Context, request resource
 		return
 	}
 
+	// Create a map for quick lookup of managed IDs
+	managedIDsSet := make(map[string]bool)
+	for _, tfID := range state.RulesetIDs.Elements() {
+		rulesetID := tfID.(types.String).ValueString()
+		managedIDsSet[rulesetID] = true
+	}
+
+	// Check override setting to determine how to build state
+	override := false
+	if !state.OverrideUIDefinedResources.IsNull() {
+		override = state.OverrideUIDefinedResources.ValueBool()
+	}
+
 	// Get the current list of rulesets to read their order
 	resp, httpResponse, err := r.Api.ListTagPipelinesRulesets(r.Auth)
 	if err != nil {
@@ -90,39 +111,52 @@ func (r *tagPipelineRulesetsResource) Read(ctx context.Context, request resource
 		rulesets = *respData
 	}
 
-	// Create a slice of structs to sort by position
-	type rulesetWithPosition struct {
-		id       string
-		position int32
-	}
+	// Get rulesets with positions
+	// During import (managedIDsSet is empty): get ALL rulesets
+	// When override=false: only managed rulesets
+	// When override=true: ALL rulesets (so Terraform can detect difference and trigger Update to delete unmanaged)
+	isImport := len(managedIDsSet) == 0
+	rulesetPositions := getRulesetsWithPositions(rulesets, managedIDsSet, !override && !isImport)
 
-	rulesetPositions := make([]rulesetWithPosition, 0, len(rulesets))
-	for _, ruleset := range rulesets {
-		if rulesetID, ok := ruleset.GetIdOk(); ok {
-			position := int32(0)
-			if rulesetAttrs, ok := ruleset.GetAttributesOk(); ok {
-				position = rulesetAttrs.GetPosition()
-			}
-			rulesetPositions = append(rulesetPositions, rulesetWithPosition{
-				id:       *rulesetID,
-				position: position,
-			})
+	// Verify all managed rulesets still exist
+	managedCount := 0
+	for _, rp := range rulesetPositions {
+		if managedIDsSet[rp.ID] {
+			managedCount++
 		}
 	}
 
-	// Sort by position
-	for i := 0; i < len(rulesetPositions); i++ {
-		for j := i + 1; j < len(rulesetPositions); j++ {
-			if rulesetPositions[i].position > rulesetPositions[j].position {
-				rulesetPositions[i], rulesetPositions[j] = rulesetPositions[j], rulesetPositions[i]
+	if managedCount != len(managedIDsSet) {
+		// Some managed rulesets were deleted
+		missingIDs := []string{}
+		foundIDs := make(map[string]bool)
+		for _, rp := range rulesetPositions {
+			foundIDs[rp.ID] = true
+		}
+		for id := range managedIDsSet {
+			if !foundIDs[id] {
+				missingIDs = append(missingIDs, id)
 			}
 		}
+		// Format missing IDs with more helpful context
+		var missingDetails []string
+		for _, id := range missingIDs {
+			missingDetails = append(missingDetails, fmt.Sprintf("• Ruleset ID: %s", id))
+		}
+
+		response.Diagnostics.AddWarning(
+			"Managed rulesets deleted outside Terraform",
+			fmt.Sprintf("The following %d managed ruleset(s) no longer exist in Datadog and were likely deleted outside of Terraform:\n\n%s\n\n"+
+				"These rulesets were managed by this Terraform configuration but are now missing from Datadog. "+
+				"Run 'terraform apply' to recreate them, or remove them from your configuration if they're no longer needed.",
+				len(missingIDs), strings.Join(missingDetails, "\n")),
+		)
 	}
 
 	// Extract ordered IDs
 	orderedList := make([]string, 0, len(rulesetPositions))
 	for _, rp := range rulesetPositions {
-		orderedList = append(orderedList, rp.id)
+		orderedList = append(orderedList, rp.ID)
 	}
 
 	state.RulesetIDs, _ = types.ListValueFrom(ctx, types.StringType, orderedList)
@@ -150,10 +184,246 @@ func (r *tagPipelineRulesetsResource) Delete(ctx context.Context, request resour
 	// This follows the same pattern as other order resources in the provider
 }
 
+func (r *tagPipelineRulesetsResource) ModifyPlan(ctx context.Context, request resource.ModifyPlanRequest, response *resource.ModifyPlanResponse) {
+	// Show plan warnings during create/update operations
+	if request.State.Raw.IsNull() || request.Plan.Raw.IsNull() {
+		return
+	}
+
+	var plan tagPipelineRulesetsModel
+	response.Diagnostics.Append(request.Plan.Get(ctx, &plan)...)
+	if response.Diagnostics.HasError() {
+		return
+	}
+
+	// Check if override is enabled
+	override := false
+	if !plan.OverrideUIDefinedResources.IsNull() {
+		override = plan.OverrideUIDefinedResources.ValueBool()
+	}
+
+	// Get all existing rulesets to check for unmanaged ones
+	resp, httpResponse, err := r.Api.ListTagPipelinesRulesets(r.Auth)
+	if err != nil {
+		response.Diagnostics.Append(utils.FrameworkErrorDiag(err, fmt.Sprintf("error listing tag pipeline rulesets during plan: %v", httpResponse)))
+		return
+	}
+
+	var existingRulesets []datadogV2.RulesetRespData
+	if respData, ok := resp.GetDataOk(); ok {
+		existingRulesets = *respData
+	}
+
+	// Create a map of desired IDs for checking unmanaged rulesets
+	desiredIDsSet := make(map[string]bool)
+	for _, tfID := range plan.RulesetIDs.Elements() {
+		rulesetID := tfID.(types.String).ValueString()
+		desiredIDsSet[rulesetID] = true
+	}
+
+	// Get all rulesets with positions sorted
+	allRulesetPositions := getRulesetsWithPositions(existingRulesets, desiredIDsSet, false)
+
+	// Find unmanaged rulesets
+	unmanagedInfo := findUnmanagedRulesets(allRulesetPositions, desiredIDsSet)
+
+	if len(unmanagedInfo.Rulesets) > 0 {
+		// Format the list nicely
+		unmanagedDetails := formatUnmanagedDetails(unmanagedInfo.Rulesets, false)
+		detailsList := "  • " + strings.Join(unmanagedDetails, "\n  • ") + "\n"
+
+		if override {
+			// With override=true, warn about deletion (unmanaged can be anywhere)
+			response.Diagnostics.AddWarning(
+				"UI-defined rulesets will be deleted",
+				fmt.Sprintf("The following %d ruleset(s) will be deleted because override_ui_defined_resources is set to true:\n\n%s\n"+
+					"These rulesets exist in Datadog but are not defined in your Terraform configuration. "+
+					"When you run 'terraform apply', they will be permanently deleted.",
+					len(unmanagedInfo.Rulesets),
+					detailsList),
+			)
+		} else {
+			// With override=false, need to check position constraints
+			if !unmanagedInfo.AllAtEnd {
+				// Unmanaged in middle - ERROR
+				response.Diagnostics.AddError(
+					"Unmanaged rulesets detected in the middle of order",
+					fmt.Sprintf("Found %d rulesets in Datadog that are not managed by this Terraform configuration and are not at the end of the order.\n\n"+
+						"Current order: %v\n"+
+						"Unmanaged rulesets: %v at positions: %v\n\n"+
+						"To fix this, either:\n"+
+						"1. Set override_ui_defined_resources=true to automatically delete unmanaged rulesets\n"+
+						"2. Import the unmanaged rulesets into Terraform\n"+
+						"3. Manually reorder or delete the unmanaged rulesets in Datadog UI",
+						len(unmanagedInfo.Rulesets),
+						allRulesetPositions, unmanagedInfo.Rulesets, unmanagedInfo.Positions),
+				)
+			} else {
+				// Unmanaged at end - WARNING
+				response.Diagnostics.AddWarning(
+					"Unmanaged rulesets detected at the end of order",
+					fmt.Sprintf("Found %d unmanaged ruleset(s) at the end of the order:\n\n%s\n"+
+						"These rulesets are not managed by Terraform. Consider:\n"+
+						"1. Importing them: terraform import datadog_tag_pipeline_ruleset.<name> <ruleset_id>\n"+
+						"2. Deleting them from Datadog if not needed\n"+
+						"3. Setting override_ui_defined_resources=true to automatically delete them",
+						len(unmanagedInfo.Rulesets),
+						detailsList),
+				)
+			}
+		}
+	}
+}
+
 func (r *tagPipelineRulesetsResource) ImportState(ctx context.Context, request resource.ImportStateRequest, response *resource.ImportStateResponse) {
 	resource.ImportStatePassthroughID(ctx, frameworkPath.Root("id"), request, response)
 }
 
+// rulesetWithPosition is a helper struct to track ruleset ID, position, and name
+type rulesetWithPosition struct {
+	ID       string `json:"id"`
+	Position int32  `json:"position"`
+	Name     string `json:"name"`
+}
+
+// unmanagedRulesetInfo contains information about unmanaged rulesets and their positions
+type unmanagedRulesetInfo struct {
+	Rulesets  []rulesetWithPosition
+	Positions []int
+	AllAtEnd  bool
+}
+
+// extractRulesetFields extracts ID, name, and position from a ruleset
+func extractRulesetFields(ruleset datadogV2.RulesetRespData) (id string, name string, position int32, ok bool) {
+	// Try normal fields first
+	if rulesetID, idOk := ruleset.GetIdOk(); idOk && rulesetID != nil && *rulesetID != "" {
+		id = *rulesetID
+		ok = true
+		if attrs, attrsOk := ruleset.GetAttributesOk(); attrsOk {
+			name = attrs.GetName()
+			position = attrs.GetPosition()
+		}
+		return
+	}
+
+	// Fallback to UnparsedObject
+	if ruleset.UnparsedObject == nil {
+		return
+	}
+
+	if idVal, idOk := ruleset.UnparsedObject["id"].(string); idOk && idVal != "" {
+		id = idVal
+		ok = true
+	}
+
+	if attributesRaw, attrsOk := ruleset.UnparsedObject["attributes"].(map[string]interface{}); attrsOk {
+		if nameVal, nameOk := attributesRaw["name"].(string); nameOk {
+			name = nameVal
+		}
+
+		// Handle various numeric types for position
+		switch v := attributesRaw["position"].(type) {
+		case float64:
+			position = int32(v)
+		case int:
+			position = int32(v)
+		case int32:
+			position = v
+		case int64:
+			position = int32(v)
+		}
+	}
+
+	return
+}
+
+// getRulesetsWithPositions extracts all rulesets with their positions and sorts them by position
+// If managedOnly is true, only include rulesets in the managedIDsSet
+func getRulesetsWithPositions(rulesets []datadogV2.RulesetRespData, managedIDsSet map[string]bool, managedOnly bool) []rulesetWithPosition {
+	result := make([]rulesetWithPosition, 0, len(rulesets))
+
+	for _, ruleset := range rulesets {
+		rulesetID, name, position, ok := extractRulesetFields(ruleset)
+		if !ok {
+			continue
+		}
+
+		// Skip unmanaged if managedOnly is true
+		if managedOnly && !managedIDsSet[rulesetID] {
+			continue
+		}
+
+		result = append(result, rulesetWithPosition{
+			ID:       rulesetID,
+			Position: position,
+			Name:     name,
+		})
+	}
+
+	// Sort by position
+	sortRulesetsByPosition(result)
+
+	return result
+}
+
+// sortRulesetsByPosition sorts rulesets by their position field (in-place)
+func sortRulesetsByPosition(rulesets []rulesetWithPosition) {
+	sort.SliceStable(rulesets, func(i, j int) bool {
+		return rulesets[i].Position < rulesets[j].Position
+	})
+}
+
+// findUnmanagedRulesets identifies unmanaged rulesets and checks if they are all at the end
+func findUnmanagedRulesets(allRulesets []rulesetWithPosition, managedIDsSet map[string]bool) unmanagedRulesetInfo {
+	var unmanagedRulesets []rulesetWithPosition
+	unmanagedPositions := make([]int, 0)
+
+	for i, rp := range allRulesets {
+		if !managedIDsSet[rp.ID] {
+			unmanagedRulesets = append(unmanagedRulesets, rp)
+			unmanagedPositions = append(unmanagedPositions, i)
+		}
+	}
+
+	// Check if all unmanaged are at the end
+	// Since allRulesets is sorted by position, if unmanaged rulesets are all at the end,
+	// they should form a contiguous block. We only need to check if the first unmanaged
+	// ruleset starts at the expected position.
+	allAtEnd := false
+	if len(unmanagedRulesets) > 0 {
+		firstUnmanagedPos := unmanagedPositions[0]
+		expectedStartPos := len(allRulesets) - len(unmanagedRulesets)
+		allAtEnd = firstUnmanagedPos == expectedStartPos
+	}
+
+	return unmanagedRulesetInfo{
+		Rulesets:  unmanagedRulesets,
+		Positions: unmanagedPositions,
+		AllAtEnd:  allAtEnd,
+	}
+}
+
+// formatUnmanagedDetails creates a formatted list of unmanaged rulesets for display
+func formatUnmanagedDetails(unmanagedRulesets []rulesetWithPosition, includePosition bool) []string {
+	details := make([]string, 0, len(unmanagedRulesets))
+	for _, urs := range unmanagedRulesets {
+		if urs.Name != "" {
+			if includePosition {
+				details = append(details, fmt.Sprintf("'%s' (ID: %s, Position: %d)", urs.Name, urs.ID, urs.Position))
+			} else {
+				details = append(details, fmt.Sprintf("'%s' (%s)", urs.Name, urs.ID))
+			}
+		} else {
+			if includePosition {
+				details = append(details, fmt.Sprintf("ID: %s (Position: %d)", urs.ID, urs.Position))
+			} else {
+				details = append(details, urs.ID)
+			}
+		}
+	}
+	return details
+}
+
 func (r *tagPipelineRulesetsResource) updateOrder(state *tagPipelineRulesetsModel, diag *diag.Diagnostics) {
 	// Set the ID immediately to prevent "unknown value" errors
 	state.ID = types.StringValue("order")
@@ -165,13 +435,21 @@ func (r *tagPipelineRulesetsResource) updateOrder(state *tagPipelineRulesetsMode
 		desiredRulesetIDs = append(desiredRulesetIDs, rulesetID)
 	}
 
-	// Strict validation: only allow reordering if ALL existing rulesets are managed by Terraform
-	// This ensures complete infrastructure control and prevents configuration drift
-	r.updateOrderWithAllRulesets(state, diag, desiredRulesetIDs)
+	// Check override parameter - default to false for current behavior
+	override := false
+	if !state.OverrideUIDefinedResources.IsNull() {
+		override = state.OverrideUIDefinedResources.ValueBool()
+	}
+
+	if override {
+		r.updateOrderWithDeletion(state, diag, desiredRulesetIDs)
+	} else {
+		r.updateOrderWithAllRulesets(state, diag, desiredRulesetIDs)
+	}
 }
 
-// Validates that all existing rulesets are managed by Terraform before reordering
-func (r *tagPipelineRulesetsResource) updateOrderWithAllRulesets(state *tagPipelineRulesetsModel, diag *diag.Diagnostics, desiredOrder []string) {
+// Deletes unmanaged rulesets and reorders remaining ones when override is enabled
+func (r *tagPipelineRulesetsResource) updateOrderWithDeletion(state *tagPipelineRulesetsModel, diag *diag.Diagnostics, desiredOrder []string) {
 	// Get all existing rulesets
 	resp, httpResponse, err := r.Api.ListTagPipelinesRulesets(r.Auth)
 	if err != nil {
@@ -186,9 +464,14 @@ func (r *tagPipelineRulesetsResource) updateOrderWithAllRulesets(state *tagPipel
 
 	// Create a map of existing ruleset IDs for validation
 	existingIDs := make(map[string]bool)
+	var existingIDList []string
+
+	// Extract IDs from all rulesets, handling UnparsedObject for problematic rulesets
 	for _, ruleset := range existingRulesets {
-		if rulesetID, ok := ruleset.GetIdOk(); ok {
-			existingIDs[*rulesetID] = true
+		rulesetID, _, _, ok := extractRulesetFields(ruleset)
+		if ok {
+			existingIDs[rulesetID] = true
+			existingIDList = append(existingIDList, rulesetID)
 		}
 	}
 
@@ -206,74 +489,144 @@ func (r *tagPipelineRulesetsResource) updateOrderWithAllRulesets(state *tagPipel
 		desiredIDsSet[id] = true
 	}
 
-	// Strict validation: Check if there are unmanaged rulesets
-	if len(existingRulesets) != len(desiredOrder) {
-		// Find unmanaged rulesets
-		unmanagedRulesets := make([]string, 0)
+	// Find and delete unmanaged rulesets
+	var unmanagedRulesets []string
+	for _, ruleset := range existingRulesets {
+		rulesetID, _, _, ok := extractRulesetFields(ruleset)
+		if !ok {
+			continue
+		}
+
+		if !desiredIDsSet[rulesetID] {
+			unmanagedRulesets = append(unmanagedRulesets, rulesetID)
+		}
+	}
 
-		for _, ruleset := range existingRulesets {
-			if rulesetID, ok := ruleset.GetIdOk(); ok {
-				if !desiredIDsSet[*rulesetID] {
-					unmanagedRulesets = append(unmanagedRulesets, *rulesetID)
-				}
+	// Delete unmanaged rulesets
+	for _, rulesetID := range unmanagedRulesets {
+		httpResp, err := r.Api.DeleteTagPipelinesRuleset(r.Auth, rulesetID)
+		if err != nil {
+			if httpResp != nil && httpResp.StatusCode == 404 {
+				// Resource already deleted - continue
+				continue
 			}
+			diag.Append(utils.FrameworkErrorDiag(err, fmt.Sprintf("error deleting unmanaged ruleset %s: %v", rulesetID, httpResp)))
+			return
 		}
+	}
 
-		diag.AddError(
-			"Unmanaged rulesets detected",
-			fmt.Sprintf("Found %d rulesets in Datadog that are not managed by this Terraform configuration: %v. "+
-				"All rulesets must be managed by Terraform. Please either:\n"+
-				"1. Import existing rulesets using 'terraform import datadog_tag_pipeline_ruleset.<name> <ruleset_id>'\n"+
-				"2. Add the missing rulesets to your Terraform configuration\n"+
-				"3. Delete unmanaged rulesets from Datadog if they're no longer needed\n\n"+
-				"This ensures complete infrastructure control and prevents configuration drift.",
-				len(unmanagedRulesets), unmanagedRulesets),
-		)
+	// Now reorder the remaining rulesets
+	rulesetData := make([]datadogV2.ReorderRulesetResourceData, len(desiredOrder))
+	for i, rulesetID := range desiredOrder {
+		rulesetData[i] = datadogV2.ReorderRulesetResourceData{
+			Id:   &rulesetID,
+			Type: datadogV2.REORDERRULESETRESOURCEDATATYPE_RULESET,
+		}
+	}
+
+	reorderRequest := datadogV2.ReorderRulesetResourceArray{
+		Data: rulesetData,
+	}
+
+	httpResponse, err = r.Api.ReorderTagPipelinesRulesets(r.Auth, reorderRequest)
+	if err != nil {
+		diag.Append(utils.FrameworkErrorDiag(err, fmt.Sprintf("error reordering tag pipeline rulesets: %v", httpResponse)))
 		return
 	}
+}
 
-	// Create a slice of structs to sort by current position
-	type rulesetWithPosition struct {
-		id       string
-		position int32
+func (r *tagPipelineRulesetsResource) updateOrderWithAllRulesets(state *tagPipelineRulesetsModel, diag *diag.Diagnostics, desiredOrder []string) {
+	// Get all existing rulesets
+	resp, httpResponse, err := r.Api.ListTagPipelinesRulesets(r.Auth)
+	if err != nil {
+		diag.Append(utils.FrameworkErrorDiag(err, fmt.Sprintf("error listing tag pipeline rulesets: %v", httpResponse)))
+		return
 	}
 
-	rulesetPositions := make([]rulesetWithPosition, 0, len(existingRulesets))
-	for _, ruleset := range existingRulesets {
-		if rulesetID, ok := ruleset.GetIdOk(); ok {
-			position := int32(0)
-			if rulesetAttrs, ok := ruleset.GetAttributesOk(); ok {
-				position = rulesetAttrs.GetPosition()
-			}
-			rulesetPositions = append(rulesetPositions, rulesetWithPosition{
-				id:       *rulesetID,
-				position: position,
-			})
+	var existingRulesets []datadogV2.RulesetRespData
+	if respData, ok := resp.GetDataOk(); ok {
+		existingRulesets = *respData
+	}
+
+	// Create a map of desired IDs for quick lookup
+	desiredIDsSet := make(map[string]bool)
+	for _, id := range desiredOrder {
+		desiredIDsSet[id] = true
+	}
+
+	// Get all rulesets with positions (sorted)
+	rulesetPositions := getRulesetsWithPositions(existingRulesets, desiredIDsSet, false)
+
+	// Validate desired rulesets exist
+	existingIDs := make(map[string]bool)
+	for _, rp := range rulesetPositions {
+		existingIDs[rp.ID] = true
+	}
+
+	for _, rulesetID := range desiredOrder {
+		if !existingIDs[rulesetID] {
+			diag.AddError("Invalid ruleset ID", fmt.Sprintf("ruleset ID %s does not exist", rulesetID))
+			return
 		}
 	}
 
-	// Sort by position to get current order
-	for i := 0; i < len(rulesetPositions); i++ {
-		for j := i + 1; j < len(rulesetPositions); j++ {
-			if rulesetPositions[i].position > rulesetPositions[j].position {
-				rulesetPositions[i], rulesetPositions[j] = rulesetPositions[j], rulesetPositions[i]
+	// Check if there are unmanaged rulesets in the middle of the order
+	if len(existingRulesets) > len(desiredOrder) {
+		// Find unmanaged rulesets and check positions
+		unmanagedInfo := findUnmanagedRulesets(rulesetPositions, desiredIDsSet)
+
+		if len(unmanagedInfo.Rulesets) > 0 {
+			if !unmanagedInfo.AllAtEnd {
+				diag.AddError(
+					"Unmanaged rulesets detected in the middle of order",
+					fmt.Sprintf("Found %d rulesets in Datadog that are not managed by this Terraform configuration and are not all at the end of the order: %v. "+
+						"Unmanaged rulesets must be at the end of the order to allow reordering. Please either:\n"+
+						"1. Add the unmanaged rulesets to your Terraform configuration and import them using 'terraform import datadog_tag_pipeline_ruleset.<name> <ruleset_id>'\n"+
+						"2. Delete unmanaged rulesets from Datadog if they're no longer needed\n"+
+						"3. Set override_ui_defined_resources=true to automatically delete unmanaged rulesets\n"+
+						"4. Manually reorder the rulesets in Datadog UI so all unmanaged rulesets are at the end\n\n"+
+						"Current order positions: %v\n"+
+						"Unmanaged rulesets: %v at positions: %v\n"+
+						"Expected position for unmanaged rulesets to start: %d",
+						len(unmanagedInfo.Rulesets), unmanagedInfo.Rulesets,
+						rulesetPositions, unmanagedInfo.Rulesets, unmanagedInfo.Positions, len(rulesetPositions)-len(unmanagedInfo.Rulesets)),
+				)
+				return
 			}
+
+			// Warning: Notify user about unmanaged rulesets even though they're at the end
+			unmanagedDetails := formatUnmanagedDetails(unmanagedInfo.Rulesets, true)
+
+			diag.AddWarning(
+				"Unmanaged rulesets detected",
+				fmt.Sprintf("Found %d ruleset(s) in Datadog that are not managed by this Terraform configuration:\n\n"+
+					"%s\n\n"+
+					"These rulesets are currently at the end of the order, so they won't block this operation. However, "+
+					"to ensure complete infrastructure management and prevent configuration drift, consider:\n"+
+					"1. Importing them into Terraform: 'terraform import datadog_tag_pipeline_ruleset.<name> <ruleset_id>'\n"+
+					"2. Deleting them from Datadog if they're no longer needed\n"+
+					"3. Setting override_ui_defined_resources=true to automatically delete unmanaged rulesets\n\n"+
+					"Your managed rulesets will be placed first, followed by these unmanaged rulesets.",
+					len(unmanagedInfo.Rulesets),
+					"  • "+strings.Join(unmanagedDetails, "\n  • ")),
+			)
 		}
 	}
 
-	// Create final order: desired order first, then remaining rulesets in their current order
+	// Create final order: desired rulesets first, then remaining rulesets in their current order
 	finalOrder := make([]string, 0, len(rulesetPositions))
 
-	// Add desired rulesets in specified order
+	// Add desired rulesets in the specified order
 	finalOrder = append(finalOrder, desiredOrder...)
 
-	// Add remaining rulesets in their current order
+	// Add remaining unmanaged rulesets in their current order
 	for _, rp := range rulesetPositions {
-		if !desiredIDsSet[rp.id] {
-			finalOrder = append(finalOrder, rp.id)
+		if !desiredIDsSet[rp.ID] {
+			finalOrder = append(finalOrder, rp.ID)
 		}
 	}
 
+	// Build reorder request with ALL rulesets
 	rulesetData := make([]datadogV2.ReorderRulesetResourceData, len(finalOrder))
 	for i, rulesetID := range finalOrder {
 		rulesetData[i] = datadogV2.ReorderRulesetResourceData{
diff --git a/datadog/resource_datadog_slo_correction.go b/datadog/resource_datadog_slo_correction.go
index 69d947e2..e4cf4ead 100644
--- a/datadog/resource_datadog_slo_correction.go
+++ b/datadog/resource_datadog_slo_correction.go
@@ -53,7 +53,7 @@ func resourceDatadogSloCorrection() *schema.Resource {
 				"timezone": {
 					Type:        schema.TypeString,
 					Optional:    true,
-					Description: "The timezone to display in the UI for the correction times (defaults to \"UTC\")",
+					Description: "The timezone to display in the UI for the correction times. Prefers IANA timezone name format (for example, 'America/Los_Angeles', 'Europe/Paris'), but some common standard abbreviations are supported. Defaults to 'UTC'.",
 				},
 				"duration": {
 					Type:        schema.TypeInt,
diff --git a/docs/data-sources/metrics.md b/docs/data-sources/metrics.md
new file mode 100644
index 00000000..a22d5ec0
--- /dev/null
+++ b/docs/data-sources/metrics.md
@@ -0,0 +1,25 @@
+---
+# generated by https://github.com/hashicorp/terraform-plugin-docs
+page_title: "datadog_metrics Data Source - terraform-provider-datadog"
+subcategory: ""
+description: |-
+  Use this data source to list metrics for use in other resources.
+---
+
+# datadog_metrics (Data Source)
+
+Use this data source to list metrics for use in other resources.
+
+
+
+<!-- schema generated by tfplugindocs -->
+## Schema
+
+### Required
+
+- `query` (String) The search query to use when listing metrics.
+
+### Read-Only
+
+- `id` (String) The ID of this resource.
+- `metrics` (List of String) The metrics returned by the search query.
diff --git a/docs/data-sources/user.md b/docs/data-sources/user.md
index 1d8c02f2..01cf4503 100644
--- a/docs/data-sources/user.md
+++ b/docs/data-sources/user.md
@@ -28,6 +28,7 @@ data "datadog_user" "test" {
 ### Optional
 
 - `exact_match` (Boolean) When true, `filter` string is exact matched against the user's `email`, followed by `name` attribute. Defaults to `false`.
+- `exclude_service_accounts` (Boolean) When true, service accounts are excluded from the result. Defaults to `false`.
 
 ### Read-Only
 
diff --git a/docs/resources/slo_correction.md b/docs/resources/slo_correction.md
index a6f53d61..a666f36b 100644
--- a/docs/resources/slo_correction.md
+++ b/docs/resources/slo_correction.md
@@ -65,7 +65,7 @@ resource "datadog_slo_correction" "example_slo_correction_with_recurrence" {
 - `duration` (Number) Length of time in seconds for a specified `rrule` recurring SLO correction (required if specifying `rrule`)
 - `end` (Number) Ending time of the correction in epoch seconds. Required for one time corrections, but optional if `rrule` is specified
 - `rrule` (String) Recurrence rules as defined in the iCalendar RFC 5545. Supported rules for SLO corrections are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`.
-- `timezone` (String) The timezone to display in the UI for the correction times (defaults to "UTC")
+- `timezone` (String) The timezone to display in the UI for the correction times. Prefers IANA timezone name format (for example, 'America/Los_Angeles', 'Europe/Paris'), but some common standard abbreviations are supported. Defaults to 'UTC'.
 
 ### Read-Only
 
diff --git a/docs/resources/tag_pipeline_rulesets.md b/docs/resources/tag_pipeline_rulesets.md
index 780f97e9..b3d6f425 100644
--- a/docs/resources/tag_pipeline_rulesets.md
+++ b/docs/resources/tag_pipeline_rulesets.md
@@ -13,13 +13,190 @@ Provides a Datadog Tag Pipeline Ruleset Order resource that can be used to manag
 ## Example Usage
 
 ```terraform
-# Create new tag_pipeline_ruleset_order resource
+# ============================================================================
+# Example 1: Basic Usage - Manage the order of tag pipeline rulesets
+# ============================================================================
+# This example shows the default behavior where UI-defined rulesets that are
+# not in Terraform will be preserved at the end of the order.
+
+resource "datadog_tag_pipeline_ruleset" "first" {
+  name    = "Standardize Environment Tags"
+  enabled = true
+
+  rules {
+    name    = "map-env"
+    enabled = true
+
+    mapping {
+      destination_key = "env"
+      if_not_exists   = true
+      source_keys     = ["environment", "stage"]
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "second" {
+  name    = "Assign Team Tags"
+  enabled = true
+
+  rules {
+    name    = "assign-team"
+    enabled = true
+
+    query {
+      query         = "service:web* OR service:api*"
+      if_not_exists = false
+
+      addition {
+        key   = "team"
+        value = "backend"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "third" {
+  name    = "Enrich Service Metadata"
+  enabled = true
+
+  rules {
+    name    = "lookup-service"
+    enabled = true
+
+    reference_table {
+      table_name         = "service_catalog"
+      case_insensitivity = true
+      if_not_exists      = true
+      source_keys        = ["service"]
+
+      field_pairs {
+        input_column = "owner_team"
+        output_key   = "owner"
+      }
+    }
+  }
+}
+
+# Manage the order of tag pipeline rulesets
+# Rulesets are executed in the order specified in ruleset_ids
+# UI-defined rulesets not in this list will be preserved at the end
+resource "datadog_tag_pipeline_rulesets" "order" {
+  ruleset_ids = [
+    datadog_tag_pipeline_ruleset.first.id,
+    datadog_tag_pipeline_ruleset.second.id,
+    datadog_tag_pipeline_ruleset.third.id
+  ]
+}
+
+# ============================================================================
+# Example 2: Override UI-defined rulesets (override_ui_defined_resources = true)
+# ============================================================================
+# When set to true, any rulesets created via the UI that are not defined in Terraform
+# will be automatically deleted during terraform apply.
+
+resource "datadog_tag_pipeline_ruleset" "managed_first" {
+  name    = "Standardize Environment Tags"
+  enabled = true
+
+  rules {
+    name    = "map-env"
+    enabled = true
+
+    mapping {
+      destination_key = "env"
+      if_not_exists   = true
+      source_keys     = ["environment", "stage"]
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "managed_second" {
+  name    = "Assign Team Tags"
+  enabled = true
+
+  rules {
+    name    = "assign-team"
+    enabled = true
+
+    query {
+      query         = "service:web*"
+      if_not_exists = false
+
+      addition {
+        key   = "team"
+        value = "frontend"
+      }
+    }
+  }
+}
+
+# Manage order with override_ui_defined_resources = true
+# This will delete any rulesets created via the UI that are not in this list
+resource "datadog_tag_pipeline_rulesets" "order_override" {
+  override_ui_defined_resources = true
 
-resource "datadog_tag_pipeline_rulesets" "my_rulesets" {
   ruleset_ids = [
-    "ruleset-id-1",
-    "ruleset-id-2",
-    "ruleset-id-3"
+    datadog_tag_pipeline_ruleset.managed_first.id,
+    datadog_tag_pipeline_ruleset.managed_second.id
+  ]
+}
+
+# ============================================================================
+# Example 3: Preserve UI-defined rulesets (override_ui_defined_resources = false)
+# ============================================================================
+# When set to false (default), UI-defined rulesets that are not in Terraform
+# will be preserved at the end of the order. However, if unmanaged rulesets
+# are in the middle of the order, Terraform will error and require you to either:
+# 1. Import the unmanaged rulesets
+# 2. Set override_ui_defined_resources = true
+# 3. Manually reorder or delete them in the Datadog UI
+
+resource "datadog_tag_pipeline_ruleset" "preserve_first" {
+  name    = "Standardize Environment Tags"
+  enabled = true
+
+  rules {
+    name    = "map-env"
+    enabled = true
+
+    mapping {
+      destination_key = "env"
+      if_not_exists   = true
+      source_keys     = ["environment", "stage"]
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "preserve_second" {
+  name    = "Assign Team Tags"
+  enabled = true
+
+  rules {
+    name    = "assign-team"
+    enabled = true
+
+    query {
+      query         = "service:web*"
+      if_not_exists = false
+
+      addition {
+        key   = "team"
+        value = "frontend"
+      }
+    }
+  }
+}
+
+# Manage order with override_ui_defined_resources = false (default)
+# UI-defined rulesets will be preserved at the end of the order
+# Terraform will warn if unmanaged rulesets exist at the end
+# Terraform will error if unmanaged rulesets are in the middle
+resource "datadog_tag_pipeline_rulesets" "order_preserve" {
+  override_ui_defined_resources = false
+
+  ruleset_ids = [
+    datadog_tag_pipeline_ruleset.preserve_first.id,
+    datadog_tag_pipeline_ruleset.preserve_second.id
   ]
 }
 ```
@@ -31,6 +208,10 @@ resource "datadog_tag_pipeline_rulesets" "my_rulesets" {
 
 - `ruleset_ids` (List of String) The list of Tag Pipeline Ruleset IDs, in order. Rulesets are executed in the order specified in this list.
 
+### Optional
+
+- `override_ui_defined_resources` (Boolean) Whether to override UI-defined rulesets. When set to true, any rulesets created via the UI that are not defined in Terraform will be deleted and Terraform will be used as the source of truth for rules and their ordering. When set to false, any rulesets created via the UI that are at the end of order will be kept but will be warned, otherwise an error will be thrown in terraform plan phase. Default is false
+
 ### Read-Only
 
 - `id` (String) The ID of this resource.
diff --git a/examples/resources/datadog_tag_pipeline_rulesets/resource.tf b/examples/resources/datadog_tag_pipeline_rulesets/resource.tf
index 518e2938..3a52eb99 100644
--- a/examples/resources/datadog_tag_pipeline_rulesets/resource.tf
+++ b/examples/resources/datadog_tag_pipeline_rulesets/resource.tf
@@ -1,9 +1,186 @@
-# Create new tag_pipeline_ruleset_order resource
+# ============================================================================
+# Example 1: Basic Usage - Manage the order of tag pipeline rulesets
+# ============================================================================
+# This example shows the default behavior where UI-defined rulesets that are
+# not in Terraform will be preserved at the end of the order.
 
-resource "datadog_tag_pipeline_rulesets" "my_rulesets" {
+resource "datadog_tag_pipeline_ruleset" "first" {
+  name    = "Standardize Environment Tags"
+  enabled = true
+
+  rules {
+    name    = "map-env"
+    enabled = true
+
+    mapping {
+      destination_key = "env"
+      if_not_exists   = true
+      source_keys     = ["environment", "stage"]
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "second" {
+  name    = "Assign Team Tags"
+  enabled = true
+
+  rules {
+    name    = "assign-team"
+    enabled = true
+
+    query {
+      query         = "service:web* OR service:api*"
+      if_not_exists = false
+
+      addition {
+        key   = "team"
+        value = "backend"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "third" {
+  name    = "Enrich Service Metadata"
+  enabled = true
+
+  rules {
+    name    = "lookup-service"
+    enabled = true
+
+    reference_table {
+      table_name         = "service_catalog"
+      case_insensitivity = true
+      if_not_exists      = true
+      source_keys        = ["service"]
+
+      field_pairs {
+        input_column = "owner_team"
+        output_key   = "owner"
+      }
+    }
+  }
+}
+
+# Manage the order of tag pipeline rulesets
+# Rulesets are executed in the order specified in ruleset_ids
+# UI-defined rulesets not in this list will be preserved at the end
+resource "datadog_tag_pipeline_rulesets" "order" {
   ruleset_ids = [
-    "ruleset-id-1",
-    "ruleset-id-2",
-    "ruleset-id-3"
+    datadog_tag_pipeline_ruleset.first.id,
+    datadog_tag_pipeline_ruleset.second.id,
+    datadog_tag_pipeline_ruleset.third.id
   ]
 }
+
+# ============================================================================
+# Example 2: Override UI-defined rulesets (override_ui_defined_resources = true)
+# ============================================================================
+# When set to true, any rulesets created via the UI that are not defined in Terraform
+# will be automatically deleted during terraform apply.
+
+resource "datadog_tag_pipeline_ruleset" "managed_first" {
+  name    = "Standardize Environment Tags"
+  enabled = true
+
+  rules {
+    name    = "map-env"
+    enabled = true
+
+    mapping {
+      destination_key = "env"
+      if_not_exists   = true
+      source_keys     = ["environment", "stage"]
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "managed_second" {
+  name    = "Assign Team Tags"
+  enabled = true
+
+  rules {
+    name    = "assign-team"
+    enabled = true
+
+    query {
+      query         = "service:web*"
+      if_not_exists = false
+
+      addition {
+        key   = "team"
+        value = "frontend"
+      }
+    }
+  }
+}
+
+# Manage order with override_ui_defined_resources = true
+# This will delete any rulesets created via the UI that are not in this list
+resource "datadog_tag_pipeline_rulesets" "order_override" {
+  override_ui_defined_resources = true
+
+  ruleset_ids = [
+    datadog_tag_pipeline_ruleset.managed_first.id,
+    datadog_tag_pipeline_ruleset.managed_second.id
+  ]
+}
+
+# ============================================================================
+# Example 3: Preserve UI-defined rulesets (override_ui_defined_resources = false)
+# ============================================================================
+# When set to false (default), UI-defined rulesets that are not in Terraform
+# will be preserved at the end of the order. However, if unmanaged rulesets
+# are in the middle of the order, Terraform will error and require you to either:
+# 1. Import the unmanaged rulesets
+# 2. Set override_ui_defined_resources = true
+# 3. Manually reorder or delete them in the Datadog UI
+
+resource "datadog_tag_pipeline_ruleset" "preserve_first" {
+  name    = "Standardize Environment Tags"
+  enabled = true
+
+  rules {
+    name    = "map-env"
+    enabled = true
+
+    mapping {
+      destination_key = "env"
+      if_not_exists   = true
+      source_keys     = ["environment", "stage"]
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "preserve_second" {
+  name    = "Assign Team Tags"
+  enabled = true
+
+  rules {
+    name    = "assign-team"
+    enabled = true
+
+    query {
+      query         = "service:web*"
+      if_not_exists = false
+
+      addition {
+        key   = "team"
+        value = "frontend"
+      }
+    }
+  }
+}
+
+# Manage order with override_ui_defined_resources = false (default)
+# UI-defined rulesets will be preserved at the end of the order
+# Terraform will warn if unmanaged rulesets exist at the end
+# Terraform will error if unmanaged rulesets are in the middle
+resource "datadog_tag_pipeline_rulesets" "order_preserve" {
+  override_ui_defined_resources = false
+
+  ruleset_ids = [
+    datadog_tag_pipeline_ruleset.preserve_first.id,
+    datadog_tag_pipeline_ruleset.preserve_second.id
+  ]
+}
\ No newline at end of file


Test patch:
diff --git a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Basic.freeze
index 19626d1c..c75d5a7d 100644
--- a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Basic.freeze
+++ b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Basic.freeze
@@ -1 +1 @@
-2025-11-07T00:42:26.032946+01:00
\ No newline at end of file
+2025-11-13T19:18:47.819509+01:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Basic.yaml
index 2959404f..9d608921 100644
--- a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Basic.yaml
+++ b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Basic.yaml
@@ -2,6 +2,39 @@
 version: 2
 interactions:
     - id: 0
+      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/agentless_scanning/accounts/gcp/test-project
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 117
+        uncompressed: false
+        body: '{"data":{"id":"test-project","type":"gcp_scan_options","attributes":{"vuln_containers_os":true,"vuln_host_os":true}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 849.756833ms
+    - id: 1
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -20,8 +53,8 @@ interactions:
                 - application/json
             Content-Type:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp
-        method: POST
+        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp/test-project
+        method: PATCH
       response:
         proto: HTTP/1.1
         proto_major: 1
@@ -34,10 +67,10 @@ interactions:
         headers:
             Content-Type:
                 - application/vnd.api+json
-        status: 201 Created
-        code: 201
-        duration: 839.950875ms
-    - id: 1
+        status: 200 OK
+        code: 200
+        duration: 236.684791ms
+    - id: 2
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -53,7 +86,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp
+        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp/test-project
         method: GET
       response:
         proto: HTTP/1.1
@@ -61,16 +94,16 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 119
+        content_length: 117
         uncompressed: false
-        body: '{"data":[{"id":"test-project","type":"gcp_scan_options","attributes":{"vuln_containers_os":true,"vuln_host_os":true}}]}'
+        body: '{"data":{"id":"test-project","type":"gcp_scan_options","attributes":{"vuln_containers_os":true,"vuln_host_os":true}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 259.589417ms
-    - id: 2
+        duration: 234.115666ms
+    - id: 3
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -102,8 +135,8 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 180.8215ms
-    - id: 3
+        duration: 233.34675ms
+    - id: 4
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -133,8 +166,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 233.299417ms
-    - id: 4
+        duration: 226.154ms
+    - id: 5
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -150,7 +183,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp
+        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp/test-project
         method: GET
       response:
         proto: HTTP/1.1
@@ -158,12 +191,12 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 11
+        content_length: 91
         uncompressed: false
-        body: '{"data":[]}'
+        body: '{"errors":[{"status":"404","detail":"no gcp scan options found for project test-project"}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
-        status: 200 OK
-        code: 200
-        duration: 223.779208ms
+        status: 404 Not Found
+        code: 404
+        duration: 236.0365ms
diff --git a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Import.freeze b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Import.freeze
index fc676c52..8dd3fbc7 100644
--- a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Import.freeze
+++ b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Import.freeze
@@ -1 +1 @@
-2025-11-06T16:33:46.401715+01:00
\ No newline at end of file
+2025-11-13T19:19:50.023221+01:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Import.yaml b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Import.yaml
index 229c5255..1136f05a 100644
--- a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Import.yaml
+++ b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Import.yaml
@@ -2,6 +2,39 @@
 version: 2
 interactions:
     - id: 0
+      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/agentless_scanning/accounts/gcp/test-project
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 91
+        uncompressed: false
+        body: '{"errors":[{"status":"404","detail":"no gcp scan options found for project test-project"}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 404 Not Found
+        code: 404
+        duration: 796.633291ms
+    - id: 1
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -36,8 +69,8 @@ interactions:
                 - application/vnd.api+json
         status: 201 Created
         code: 201
-        duration: 873.742375ms
-    - id: 1
+        duration: 225.806666ms
+    - id: 2
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -69,8 +102,8 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 233.504709ms
-    - id: 2
+        duration: 282.883ms
+    - id: 3
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -102,8 +135,8 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 229.477ms
-    - id: 3
+        duration: 228.751083ms
+    - id: 4
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -133,8 +166,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 222.933334ms
-    - id: 4
+        duration: 214.716208ms
+    - id: 5
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -150,7 +183,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp
+        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp/test-project
         method: GET
       response:
         proto: HTTP/1.1
@@ -158,12 +191,12 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 11
+        content_length: 91
         uncompressed: false
-        body: '{"data":[]}'
+        body: '{"errors":[{"status":"404","detail":"no gcp scan options found for project test-project"}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
-        status: 200 OK
-        code: 200
-        duration: 230.295667ms
+        status: 404 Not Found
+        code: 404
+        duration: 220.570667ms
diff --git a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_InvalidProjectID.freeze b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_InvalidProjectID.freeze
index 2daa19e4..2d21da7a 100644
--- a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_InvalidProjectID.freeze
+++ b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_InvalidProjectID.freeze
@@ -1 +1 @@
-2025-11-07T11:31:59.863312+01:00
\ No newline at end of file
+2025-11-13T18:58:56.66468+01:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Update.freeze b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Update.freeze
index 7001ec02..c800b34e 100644
--- a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Update.freeze
+++ b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Update.freeze
@@ -1 +1 @@
-2025-11-07T00:43:11.470888+01:00
\ No newline at end of file
+2025-11-13T19:20:11.853168+01:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Update.yaml b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Update.yaml
index 69c99440..e2434a0c 100644
--- a/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Update.yaml
+++ b/datadog/tests/cassettes/TestAccDatadogAgentlessScanningGcpScanOptions_Update.yaml
@@ -2,6 +2,39 @@
 version: 2
 interactions:
     - id: 0
+      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/agentless_scanning/accounts/gcp/test-project
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 91
+        uncompressed: false
+        body: '{"errors":[{"status":"404","detail":"no gcp scan options found for project test-project"}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 404 Not Found
+        code: 404
+        duration: 808.039917ms
+    - id: 1
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -36,8 +69,8 @@ interactions:
                 - application/vnd.api+json
         status: 201 Created
         code: 201
-        duration: 833.059125ms
-    - id: 1
+        duration: 223.590416ms
+    - id: 2
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -53,7 +86,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp
+        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp/test-project
         method: GET
       response:
         proto: HTTP/1.1
@@ -61,16 +94,16 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 119
+        content_length: 117
         uncompressed: false
-        body: '{"data":[{"id":"test-project","type":"gcp_scan_options","attributes":{"vuln_containers_os":true,"vuln_host_os":true}}]}'
+        body: '{"data":{"id":"test-project","type":"gcp_scan_options","attributes":{"vuln_containers_os":true,"vuln_host_os":true}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 214.725833ms
-    - id: 2
+        duration: 224.594916ms
+    - id: 3
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -102,8 +135,8 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 148.883208ms
-    - id: 3
+        duration: 210.090959ms
+    - id: 4
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -135,61 +168,61 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 154.224208ms
-    - id: 4
+        duration: 214.220083ms
+    - id: 5
       request:
         proto: HTTP/1.1
         proto_major: 1
         proto_minor: 1
-        content_length: 120
+        content_length: 0
         transfer_encoding: []
         trailer: {}
         host: api.datadoghq.com
         remote_addr: ""
         request_uri: ""
-        body: |
-            {"data":{"attributes":{"vuln_containers_os":false,"vuln_host_os":false},"id":"test-project","type":"gcp_scan_options"}}
+        body: ""
         form: {}
         headers:
             Accept:
                 - application/json
-            Content-Type:
-                - application/json
         url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp/test-project
-        method: PATCH
+        method: GET
       response:
         proto: HTTP/1.1
         proto_major: 1
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 119
+        content_length: 117
         uncompressed: false
-        body: '{"data":{"id":"test-project","type":"gcp_scan_options","attributes":{"vuln_containers_os":false,"vuln_host_os":false}}}'
+        body: '{"data":{"id":"test-project","type":"gcp_scan_options","attributes":{"vuln_containers_os":true,"vuln_host_os":true}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 235.610875ms
-    - id: 5
+        duration: 248.711875ms
+    - id: 6
       request:
         proto: HTTP/1.1
         proto_major: 1
         proto_minor: 1
-        content_length: 0
+        content_length: 120
         transfer_encoding: []
         trailer: {}
         host: api.datadoghq.com
         remote_addr: ""
         request_uri: ""
-        body: ""
+        body: |
+            {"data":{"attributes":{"vuln_containers_os":false,"vuln_host_os":false},"id":"test-project","type":"gcp_scan_options"}}
         form: {}
         headers:
             Accept:
                 - application/json
+            Content-Type:
+                - application/json
         url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp/test-project
-        method: GET
+        method: PATCH
       response:
         proto: HTTP/1.1
         proto_major: 1
@@ -204,8 +237,8 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 149.568041ms
-    - id: 6
+        duration: 212.128666ms
+    - id: 7
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -221,7 +254,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp
+        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp/test-project
         method: GET
       response:
         proto: HTTP/1.1
@@ -229,16 +262,16 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 121
+        content_length: 119
         uncompressed: false
-        body: '{"data":[{"id":"test-project","type":"gcp_scan_options","attributes":{"vuln_containers_os":false,"vuln_host_os":false}}]}'
+        body: '{"data":{"id":"test-project","type":"gcp_scan_options","attributes":{"vuln_containers_os":false,"vuln_host_os":false}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 226.034917ms
-    - id: 7
+        duration: 208.906417ms
+    - id: 8
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -270,8 +303,8 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 156.282625ms
-    - id: 8
+        duration: 210.932167ms
+    - id: 9
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -301,8 +334,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 274.474709ms
-    - id: 9
+        duration: 216.565625ms
+    - id: 10
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -318,7 +351,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp
+        url: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp/test-project
         method: GET
       response:
         proto: HTTP/1.1
@@ -326,12 +359,12 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 11
+        content_length: 91
         uncompressed: false
-        body: '{"data":[]}'
+        body: '{"errors":[{"status":"404","detail":"no gcp scan options found for project test-project"}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
-        status: 200 OK
-        code: 200
-        duration: 219.371167ms
+        status: 404 Not Found
+        code: 404
+        duration: 213.94025ms
diff --git a/datadog/tests/cassettes/TestAccDatadogMetricsDatasource.freeze b/datadog/tests/cassettes/TestAccDatadogMetricsDatasource.freeze
new file mode 100644
index 00000000..cec0a520
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogMetricsDatasource.freeze
@@ -0,0 +1 @@
+2025-09-06T06:43:56.810887-04:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogMetricsDatasource.yaml b/datadog/tests/cassettes/TestAccDatadogMetricsDatasource.yaml
new file mode 100644
index 00000000..57075f2e
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogMetricsDatasource.yaml
@@ -0,0 +1,108 @@
+---
+version: 2
+interactions:
+    - id: 0
+      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/v1/search?q=foo.
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding:
+            - chunked
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: |
+            {"results":{"metrics":["foo.bar","foo.baz"],"hosts":[]}}
+        headers:
+            Content-Type:
+                - application/json
+        status: 200 OK
+        code: 200
+        duration: 237.101791ms
+    - 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/v1/search?q=foo.
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding:
+            - chunked
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: |
+            {"results":{"metrics":["foo.bar","foo.baz"],"hosts":[]}}
+        headers:
+            Content-Type:
+                - application/json
+        status: 200 OK
+        code: 200
+        duration: 237.101791ms
+    - 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/v1/search?q=foo.
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding:
+            - chunked
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: |
+            {"results":{"metrics":["foo.bar","foo.baz"],"hosts":[]}}
+        headers:
+            Content-Type:
+                - application/json
+        status: 200 OK
+        code: 200
+        duration: 237.101791ms
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Basic.freeze
index 9e427356..d4b79631 100644
--- a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Basic.freeze
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Basic.freeze
@@ -1 +1 @@
-2025-10-06T10:08:34.018701-04:00
\ No newline at end of file
+2025-11-10T12:37:24.161327-05:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Basic.yaml
index b5b20cde..09d91796 100644
--- a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Basic.yaml
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Basic.yaml
@@ -33,20 +33,20 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 154.8655ms
+        duration: 138.32175ms
     - id: 1
       request:
         proto: HTTP/1.1
         proto_major: 1
         proto_minor: 1
-        content_length: 363
+        content_length: 360
         transfer_encoding: []
         trailer: {}
         host: api.datadoghq.com
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"second-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:second"},"reference_table":null}]},"id":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","type":"create_ruleset"}}
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"first-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:first"},"reference_table":null}]},"id":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","type":"create_ruleset"}}
         form: {}
         headers:
             Accept:
@@ -61,28 +61,28 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 616
+        content_length: 613
         uncompressed: false
-        body: '{"data":{"id":"bb452cbe-07f8-4ed3-91e7-ddede2f18595","type":"ruleset","attributes":{"created":{"seconds":1759759715,"nanos":318680000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759715,"nanos":318680000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","position":1,"rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610336}}}'
+        body: '{"data":{"id":"8b7c4a98-42ab-4256-a113-70ce272f7245","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":342039000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":342039000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":1,"rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623119}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 107.573459ms
+        duration: 66.987458ms
     - id: 2
       request:
         proto: HTTP/1.1
         proto_major: 1
         proto_minor: 1
-        content_length: 360
+        content_length: 363
         transfer_encoding: []
         trailer: {}
         host: api.datadoghq.com
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"first-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:first"},"reference_table":null}]},"id":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","type":"create_ruleset"}}
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"second-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:second"},"reference_table":null}]},"id":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","type":"create_ruleset"}}
         form: {}
         headers:
             Accept:
@@ -97,15 +97,15 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 613
+        content_length: 616
         uncompressed: false
-        body: '{"data":{"id":"8ea0c17e-5bde-4880-bfda-e2e1c72046da","type":"ruleset","attributes":{"created":{"seconds":1759759715,"nanos":362186000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759715,"nanos":362186000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","position":2,"rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610337}}}'
+        body: '{"data":{"id":"f7271c52-9d5a-48b7-a01a-f22886b62c9e","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":391540000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":391540000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":2,"rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623120}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 133.665167ms
+        duration: 115.764833ms
     - id: 3
       request:
         proto: HTTP/1.1
@@ -118,7 +118,7 @@ interactions:
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"third-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:third"},"reference_table":null}]},"id":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","type":"create_ruleset"}}
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"third-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:third"},"reference_table":null}]},"id":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","type":"create_ruleset"}}
         form: {}
         headers:
             Accept:
@@ -135,13 +135,13 @@ interactions:
         trailer: {}
         content_length: 613
         uncompressed: false
-        body: '{"data":{"id":"de59c0d9-895d-4d3f-9714-54c9fd6060d1","type":"ruleset","attributes":{"created":{"seconds":1759759715,"nanos":368315000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759715,"nanos":368315000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","position":3,"rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610338}}}'
+        body: '{"data":{"id":"ebce009f-31a0-4db4-8642-4f32db184a5e","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":403667000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":403667000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":3,"rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623121}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 166.96025ms
+        duration: 137.249833ms
     - id: 4
       request:
         proto: HTTP/1.1
@@ -168,13 +168,13 @@ interactions:
         trailer: {}
         content_length: -1
         uncompressed: true
-        body: '{"data":[{"id":"bb452cbe-07f8-4ed3-91e7-ddede2f18595","type":"ruleset","attributes":{"created":{"seconds":1759759715,"nanos":318680000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759715,"nanos":318680000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","position":1,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610336}},{"id":"8ea0c17e-5bde-4880-bfda-e2e1c72046da","type":"ruleset","attributes":{"created":{"seconds":1759759715,"nanos":362186000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759715,"nanos":362186000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","position":2,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610337}},{"id":"de59c0d9-895d-4d3f-9714-54c9fd6060d1","type":"ruleset","attributes":{"created":{"seconds":1759759715,"nanos":368315000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759715,"nanos":368315000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610338}}]}'
+        body: '{"data":[{"id":"8b7c4a98-42ab-4256-a113-70ce272f7245","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":342039000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":342039000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623119}},{"id":"f7271c52-9d5a-48b7-a01a-f22886b62c9e","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":391540000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":391540000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623120}},{"id":"ebce009f-31a0-4db4-8642-4f32db184a5e","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":403667000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":403667000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623121}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 134.563916ms
+        duration: 89.017625ms
     - id: 5
       request:
         proto: HTTP/1.1
@@ -187,7 +187,7 @@ interactions:
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":[{"id":"8ea0c17e-5bde-4880-bfda-e2e1c72046da","type":"ruleset"},{"id":"bb452cbe-07f8-4ed3-91e7-ddede2f18595","type":"ruleset"},{"id":"de59c0d9-895d-4d3f-9714-54c9fd6060d1","type":"ruleset"}]}
+            {"data":[{"id":"8b7c4a98-42ab-4256-a113-70ce272f7245","type":"ruleset"},{"id":"f7271c52-9d5a-48b7-a01a-f22886b62c9e","type":"ruleset"},{"id":"ebce009f-31a0-4db4-8642-4f32db184a5e","type":"ruleset"}]}
         form: {}
         headers:
             Accept:
@@ -208,7 +208,7 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 59.347583ms
+        duration: 55.702291ms
     - id: 6
       request:
         proto: HTTP/1.1
@@ -225,7 +225,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/bb452cbe-07f8-4ed3-91e7-ddede2f18595
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
         method: GET
       response:
         proto: HTTP/1.1
@@ -233,15 +233,15 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 644
-        uncompressed: false
-        body: '{"data":{"id":"bb452cbe-07f8-4ed3-91e7-ddede2f18595","type":"ruleset","attributes":{"created":{"seconds":1759759715,"nanos":318680000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759715,"nanos":318680000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610336}}}'
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"8b7c4a98-42ab-4256-a113-70ce272f7245","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":342039000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":342039000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623119}},{"id":"f7271c52-9d5a-48b7-a01a-f22886b62c9e","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":391540000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":391540000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623120}},{"id":"ebce009f-31a0-4db4-8642-4f32db184a5e","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":403667000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":403667000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623121}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 128.570625ms
+        duration: 107.770875ms
     - id: 7
       request:
         proto: HTTP/1.1
@@ -258,7 +258,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/de59c0d9-895d-4d3f-9714-54c9fd6060d1
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/8b7c4a98-42ab-4256-a113-70ce272f7245
         method: GET
       response:
         proto: HTTP/1.1
@@ -268,13 +268,13 @@ interactions:
         trailer: {}
         content_length: 641
         uncompressed: false
-        body: '{"data":{"id":"de59c0d9-895d-4d3f-9714-54c9fd6060d1","type":"ruleset","attributes":{"created":{"seconds":1759759715,"nanos":368315000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759715,"nanos":368315000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610338}}}'
+        body: '{"data":{"id":"8b7c4a98-42ab-4256-a113-70ce272f7245","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":342039000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":342039000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623119}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 135.041292ms
+        duration: 145.985625ms
     - id: 8
       request:
         proto: HTTP/1.1
@@ -291,7 +291,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/8ea0c17e-5bde-4880-bfda-e2e1c72046da
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/ebce009f-31a0-4db4-8642-4f32db184a5e
         method: GET
       response:
         proto: HTTP/1.1
@@ -301,14 +301,47 @@ interactions:
         trailer: {}
         content_length: 641
         uncompressed: false
-        body: '{"data":{"id":"8ea0c17e-5bde-4880-bfda-e2e1c72046da","type":"ruleset","attributes":{"created":{"seconds":1759759715,"nanos":362186000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759715,"nanos":362186000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610337}}}'
+        body: '{"data":{"id":"ebce009f-31a0-4db4-8642-4f32db184a5e","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":403667000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":403667000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623121}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 159.882833ms
+        duration: 169.228583ms
     - 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/tags/enrichment/f7271c52-9d5a-48b7-a01a-f22886b62c9e
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 644
+        uncompressed: false
+        body: '{"data":{"id":"f7271c52-9d5a-48b7-a01a-f22886b62c9e","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":391540000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":391540000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623120}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 185.634833ms
+    - id: 10
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -334,14 +367,47 @@ interactions:
         trailer: {}
         content_length: -1
         uncompressed: true
-        body: '{"data":[{"id":"8ea0c17e-5bde-4880-bfda-e2e1c72046da","type":"ruleset","attributes":{"created":{"seconds":1759759715,"nanos":362186000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759715,"nanos":362186000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610337}},{"id":"bb452cbe-07f8-4ed3-91e7-ddede2f18595","type":"ruleset","attributes":{"created":{"seconds":1759759715,"nanos":318680000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759715,"nanos":318680000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610336}},{"id":"de59c0d9-895d-4d3f-9714-54c9fd6060d1","type":"ruleset","attributes":{"created":{"seconds":1759759715,"nanos":368315000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759715,"nanos":368315000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1759759714","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610338}}]}'
+        body: '{"data":[{"id":"8b7c4a98-42ab-4256-a113-70ce272f7245","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":342039000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":342039000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623119}},{"id":"f7271c52-9d5a-48b7-a01a-f22886b62c9e","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":391540000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":391540000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623120}},{"id":"ebce009f-31a0-4db4-8642-4f32db184a5e","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":403667000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":403667000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623121}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 157.178417ms
-    - id: 10
+        duration: 95.721ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"8b7c4a98-42ab-4256-a113-70ce272f7245","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":342039000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":342039000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623119}},{"id":"f7271c52-9d5a-48b7-a01a-f22886b62c9e","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":391540000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":391540000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623120}},{"id":"ebce009f-31a0-4db4-8642-4f32db184a5e","type":"ruleset","attributes":{"created":{"seconds":1762796245,"nanos":403667000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796245,"nanos":403667000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Basic-local-1762796244","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623121}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 87.619ms
+    - id: 12
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -357,7 +423,7 @@ interactions:
         headers:
             Accept:
                 - '*/*'
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/8ea0c17e-5bde-4880-bfda-e2e1c72046da
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/f7271c52-9d5a-48b7-a01a-f22886b62c9e
         method: DELETE
       response:
         proto: HTTP/1.1
@@ -371,8 +437,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 72.187958ms
-    - id: 11
+        duration: 59.206666ms
+    - id: 13
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -388,7 +454,7 @@ interactions:
         headers:
             Accept:
                 - '*/*'
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/bb452cbe-07f8-4ed3-91e7-ddede2f18595
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/8b7c4a98-42ab-4256-a113-70ce272f7245
         method: DELETE
       response:
         proto: HTTP/1.1
@@ -402,8 +468,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 88.703ms
-    - id: 12
+        duration: 72.237583ms
+    - id: 14
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -419,7 +485,7 @@ interactions:
         headers:
             Accept:
                 - '*/*'
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/de59c0d9-895d-4d3f-9714-54c9fd6060d1
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/ebce009f-31a0-4db4-8642-4f32db184a5e
         method: DELETE
       response:
         proto: HTTP/1.1
@@ -433,8 +499,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 107.958ms
-    - id: 13
+        duration: 103.247625ms
+    - id: 15
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -466,4 +532,4 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 116.376541ms
+        duration: 86.688791ms
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Import.freeze b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Import.freeze
index 9bcee169..4f96254c 100644
--- a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Import.freeze
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Import.freeze
@@ -1 +1 @@
-2025-10-06T10:08:40.706447-04:00
\ No newline at end of file
+2025-11-10T12:36:53.86004-05:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Import.yaml b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Import.yaml
index 3263944d..928a590a 100644
--- a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Import.yaml
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Import.yaml
@@ -33,20 +33,20 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 109.174209ms
+        duration: 128.130417ms
     - id: 1
       request:
         proto: HTTP/1.1
         proto_major: 1
         proto_minor: 1
-        content_length: 361
+        content_length: 364
         transfer_encoding: []
         trailer: {}
         host: api.datadoghq.com
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"first-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:first"},"reference_table":null}]},"id":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","type":"create_ruleset"}}
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"second-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:second"},"reference_table":null}]},"id":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","type":"create_ruleset"}}
         form: {}
         headers:
             Accept:
@@ -61,15 +61,15 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 614
+        content_length: 617
         uncompressed: false
-        body: '{"data":{"id":"a49b8547-5b2d-477f-8478-7ed6978c1287","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":356479000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":356479000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":1,"rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610342}}}'
+        body: '{"data":{"id":"ed11da58-c480-4a09-9f09-eb32c24cf214","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":803066000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":803066000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":1,"rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623113}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 108.673042ms
+        duration: 88.340208ms
     - id: 2
       request:
         proto: HTTP/1.1
@@ -82,7 +82,7 @@ interactions:
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"third-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:third"},"reference_table":null}]},"id":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","type":"create_ruleset"}}
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"third-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:third"},"reference_table":null}]},"id":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","type":"create_ruleset"}}
         form: {}
         headers:
             Accept:
@@ -99,26 +99,26 @@ interactions:
         trailer: {}
         content_length: 614
         uncompressed: false
-        body: '{"data":{"id":"6939d41e-6697-457b-91b3-d4ba997d8aa5","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":356188000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":356188000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":2,"rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610343}}}'
+        body: '{"data":{"id":"e941d516-ffb7-4bfd-aa7c-96f433885e65","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":841432000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":841432000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":2,"rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623114}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 136.86025ms
+        duration: 116.24225ms
     - id: 3
       request:
         proto: HTTP/1.1
         proto_major: 1
         proto_minor: 1
-        content_length: 364
+        content_length: 361
         transfer_encoding: []
         trailer: {}
         host: api.datadoghq.com
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"second-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:second"},"reference_table":null}]},"id":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","type":"create_ruleset"}}
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"first-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:first"},"reference_table":null}]},"id":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","type":"create_ruleset"}}
         form: {}
         headers:
             Accept:
@@ -133,15 +133,15 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 617
+        content_length: 614
         uncompressed: false
-        body: '{"data":{"id":"d199fd82-0a43-4b50-b2cc-b33fcfd43fc3","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":369800000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":369800000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":3,"rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610344}}}'
+        body: '{"data":{"id":"a0169120-30d5-4edb-adc7-d2461bae74aa","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":848242000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":848242000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":3,"rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623115}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 162.496208ms
+        duration: 143.357291ms
     - id: 4
       request:
         proto: HTTP/1.1
@@ -168,13 +168,13 @@ interactions:
         trailer: {}
         content_length: -1
         uncompressed: true
-        body: '{"data":[{"id":"a49b8547-5b2d-477f-8478-7ed6978c1287","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":356479000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":356479000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610342}},{"id":"6939d41e-6697-457b-91b3-d4ba997d8aa5","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":356188000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":356188000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":2,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610343}},{"id":"d199fd82-0a43-4b50-b2cc-b33fcfd43fc3","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":369800000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":369800000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":3,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610344}}]}'
+        body: '{"data":[{"id":"ed11da58-c480-4a09-9f09-eb32c24cf214","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":803066000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":803066000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":1,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623113}},{"id":"e941d516-ffb7-4bfd-aa7c-96f433885e65","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":841432000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":841432000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":2,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623114}},{"id":"a0169120-30d5-4edb-adc7-d2461bae74aa","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":848242000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":848242000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":3,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623115}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 118.889458ms
+        duration: 91.245708ms
     - id: 5
       request:
         proto: HTTP/1.1
@@ -187,7 +187,7 @@ interactions:
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":[{"id":"a49b8547-5b2d-477f-8478-7ed6978c1287","type":"ruleset"},{"id":"d199fd82-0a43-4b50-b2cc-b33fcfd43fc3","type":"ruleset"},{"id":"6939d41e-6697-457b-91b3-d4ba997d8aa5","type":"ruleset"}]}
+            {"data":[{"id":"a0169120-30d5-4edb-adc7-d2461bae74aa","type":"ruleset"},{"id":"ed11da58-c480-4a09-9f09-eb32c24cf214","type":"ruleset"},{"id":"e941d516-ffb7-4bfd-aa7c-96f433885e65","type":"ruleset"}]}
         form: {}
         headers:
             Accept:
@@ -208,7 +208,7 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 52.627459ms
+        duration: 53.86325ms
     - id: 6
       request:
         proto: HTTP/1.1
@@ -225,7 +225,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/d199fd82-0a43-4b50-b2cc-b33fcfd43fc3
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
         method: GET
       response:
         proto: HTTP/1.1
@@ -233,15 +233,15 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 645
-        uncompressed: false
-        body: '{"data":{"id":"d199fd82-0a43-4b50-b2cc-b33fcfd43fc3","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":369800000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":369800000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610344}}}'
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"a0169120-30d5-4edb-adc7-d2461bae74aa","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":848242000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":848242000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623115}},{"id":"ed11da58-c480-4a09-9f09-eb32c24cf214","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":803066000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":803066000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623113}},{"id":"e941d516-ffb7-4bfd-aa7c-96f433885e65","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":841432000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":841432000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623114}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 116.701709ms
+        duration: 127.059333ms
     - id: 7
       request:
         proto: HTTP/1.1
@@ -258,7 +258,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/6939d41e-6697-457b-91b3-d4ba997d8aa5
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/ed11da58-c480-4a09-9f09-eb32c24cf214
         method: GET
       response:
         proto: HTTP/1.1
@@ -266,15 +266,15 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 642
+        content_length: 645
         uncompressed: false
-        body: '{"data":{"id":"6939d41e-6697-457b-91b3-d4ba997d8aa5","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":356188000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":356188000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610343}}}'
+        body: '{"data":{"id":"ed11da58-c480-4a09-9f09-eb32c24cf214","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":803066000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":803066000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623113}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 137.912792ms
+        duration: 94.587833ms
     - id: 8
       request:
         proto: HTTP/1.1
@@ -291,7 +291,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/a49b8547-5b2d-477f-8478-7ed6978c1287
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/a0169120-30d5-4edb-adc7-d2461bae74aa
         method: GET
       response:
         proto: HTTP/1.1
@@ -301,14 +301,47 @@ interactions:
         trailer: {}
         content_length: 642
         uncompressed: false
-        body: '{"data":{"id":"a49b8547-5b2d-477f-8478-7ed6978c1287","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":356479000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":356479000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610342}}}'
+        body: '{"data":{"id":"a0169120-30d5-4edb-adc7-d2461bae74aa","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":848242000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":848242000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623115}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 199.240875ms
+        duration: 116.514125ms
     - 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/tags/enrichment/e941d516-ffb7-4bfd-aa7c-96f433885e65
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 642
+        uncompressed: false
+        body: '{"data":{"id":"e941d516-ffb7-4bfd-aa7c-96f433885e65","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":841432000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":841432000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623114}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 157.537917ms
+    - id: 10
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -334,14 +367,14 @@ interactions:
         trailer: {}
         content_length: -1
         uncompressed: true
-        body: '{"data":[{"id":"a49b8547-5b2d-477f-8478-7ed6978c1287","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":356479000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":356479000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610342}},{"id":"d199fd82-0a43-4b50-b2cc-b33fcfd43fc3","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":369800000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":369800000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610344}},{"id":"6939d41e-6697-457b-91b3-d4ba997d8aa5","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":356188000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":356188000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610343}}]}'
+        body: '{"data":[{"id":"a0169120-30d5-4edb-adc7-d2461bae74aa","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":848242000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":848242000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623115}},{"id":"ed11da58-c480-4a09-9f09-eb32c24cf214","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":803066000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":803066000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623113}},{"id":"e941d516-ffb7-4bfd-aa7c-96f433885e65","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":841432000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":841432000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623114}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 230.0215ms
-    - id: 10
+        duration: 110.750667ms
+    - id: 11
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -367,14 +400,47 @@ interactions:
         trailer: {}
         content_length: -1
         uncompressed: true
-        body: '{"data":[{"id":"a49b8547-5b2d-477f-8478-7ed6978c1287","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":356479000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":356479000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610342}},{"id":"d199fd82-0a43-4b50-b2cc-b33fcfd43fc3","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":369800000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":369800000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610344}},{"id":"6939d41e-6697-457b-91b3-d4ba997d8aa5","type":"ruleset","attributes":{"created":{"seconds":1759759721,"nanos":356188000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759721,"nanos":356188000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1759759720","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610343}}]}'
+        body: '{"data":[{"id":"a0169120-30d5-4edb-adc7-d2461bae74aa","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":848242000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":848242000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623115}},{"id":"ed11da58-c480-4a09-9f09-eb32c24cf214","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":803066000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":803066000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623113}},{"id":"e941d516-ffb7-4bfd-aa7c-96f433885e65","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":841432000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":841432000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623114}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 115.48175ms
-    - id: 11
+        duration: 90.502542ms
+    - id: 12
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"a0169120-30d5-4edb-adc7-d2461bae74aa","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":848242000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":848242000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623115}},{"id":"ed11da58-c480-4a09-9f09-eb32c24cf214","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":803066000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":803066000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623113}},{"id":"e941d516-ffb7-4bfd-aa7c-96f433885e65","type":"ruleset","attributes":{"created":{"seconds":1762796214,"nanos":841432000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796214,"nanos":841432000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Import-local-1762796213","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623114}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 106.832416ms
+    - id: 13
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -390,7 +456,7 @@ interactions:
         headers:
             Accept:
                 - '*/*'
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/a49b8547-5b2d-477f-8478-7ed6978c1287
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/a0169120-30d5-4edb-adc7-d2461bae74aa
         method: DELETE
       response:
         proto: HTTP/1.1
@@ -404,8 +470,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 86.397541ms
-    - id: 12
+        duration: 43.7635ms
+    - id: 14
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -421,7 +487,7 @@ interactions:
         headers:
             Accept:
                 - '*/*'
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/6939d41e-6697-457b-91b3-d4ba997d8aa5
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/e941d516-ffb7-4bfd-aa7c-96f433885e65
         method: DELETE
       response:
         proto: HTTP/1.1
@@ -435,8 +501,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 94.785958ms
-    - id: 13
+        duration: 69.968709ms
+    - id: 15
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -452,7 +518,7 @@ interactions:
         headers:
             Accept:
                 - '*/*'
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/d199fd82-0a43-4b50-b2cc-b33fcfd43fc3
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/ed11da58-c480-4a09-9f09-eb32c24cf214
         method: DELETE
       response:
         proto: HTTP/1.1
@@ -466,8 +532,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 155.718125ms
-    - id: 14
+        duration: 109.409208ms
+    - id: 16
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -499,4 +565,4 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 129.447916ms
+        duration: 82.517542ms
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged.freeze b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged.freeze
new file mode 100644
index 00000000..f8e56a73
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged.freeze
@@ -0,0 +1 @@
+2025-11-10T12:36:15.936394-05:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged.yaml b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged.yaml
new file mode 100644
index 00000000..af6fe89f
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged.yaml
@@ -0,0 +1,535 @@
+---
+version: 2
+interactions:
+    - id: 0
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 11
+        uncompressed: false
+        body: '{"data":[]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 144.750708ms
+    - id: 1
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 379
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"third-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:third"},"reference_table":null}]},"id":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 632
+        uncompressed: false
+        body: '{"data":{"id":"dd786797-ddd7-4015-9d86-1f29c7edf607","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":110888000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":110888000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":1,"rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623096}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 63.688375ms
+    - id: 2
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 382
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"second-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:second"},"reference_table":null}]},"id":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 635
+        uncompressed: false
+        body: '{"data":{"id":"9b119d76-d6e4-4c25-9a32-898638531e42","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":151091000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":151091000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":2,"rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623097}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 110.128291ms
+    - id: 3
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 379
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"first-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:first"},"reference_table":null}]},"id":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 632
+        uncompressed: false
+        body: '{"data":{"id":"a0a6f3a3-eb30-4f85-9fd8-ee8847bc392d","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":153404000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":153404000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":3,"rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623098}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 153.564333ms
+    - id: 4
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"dd786797-ddd7-4015-9d86-1f29c7edf607","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":110888000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":110888000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":1,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623096}},{"id":"9b119d76-d6e4-4c25-9a32-898638531e42","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":151091000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":151091000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623097}},{"id":"a0a6f3a3-eb30-4f85-9fd8-ee8847bc392d","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":153404000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":153404000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":3,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623098}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 95.863ms
+    - id: 5
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 200
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":[{"id":"a0a6f3a3-eb30-4f85-9fd8-ee8847bc392d","type":"ruleset"},{"id":"9b119d76-d6e4-4c25-9a32-898638531e42","type":"ruleset"},{"id":"dd786797-ddd7-4015-9d86-1f29c7edf607","type":"ruleset"}]}
+        form: {}
+        headers:
+            Accept:
+                - '*/*'
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/reorder
+        method: POST
+      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: 44.311875ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"a0a6f3a3-eb30-4f85-9fd8-ee8847bc392d","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":153404000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":153404000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623098}},{"id":"9b119d76-d6e4-4c25-9a32-898638531e42","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":151091000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":151091000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623097}},{"id":"dd786797-ddd7-4015-9d86-1f29c7edf607","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":110888000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":110888000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623096}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 89.567208ms
+    - 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/tags/enrichment/9b119d76-d6e4-4c25-9a32-898638531e42
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 663
+        uncompressed: false
+        body: '{"data":{"id":"9b119d76-d6e4-4c25-9a32-898638531e42","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":151091000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":151091000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623097}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 92.263667ms
+    - id: 8
+      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/tags/enrichment/dd786797-ddd7-4015-9d86-1f29c7edf607
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 660
+        uncompressed: false
+        body: '{"data":{"id":"dd786797-ddd7-4015-9d86-1f29c7edf607","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":110888000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":110888000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623096}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 186.549334ms
+    - 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/tags/enrichment/a0a6f3a3-eb30-4f85-9fd8-ee8847bc392d
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 660
+        uncompressed: false
+        body: '{"data":{"id":"a0a6f3a3-eb30-4f85-9fd8-ee8847bc392d","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":153404000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":153404000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623098}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 199.902916ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"a0a6f3a3-eb30-4f85-9fd8-ee8847bc392d","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":153404000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":153404000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623098}},{"id":"9b119d76-d6e4-4c25-9a32-898638531e42","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":151091000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":151091000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623097}},{"id":"dd786797-ddd7-4015-9d86-1f29c7edf607","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":110888000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":110888000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623096}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 103.513959ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"a0a6f3a3-eb30-4f85-9fd8-ee8847bc392d","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":153404000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":153404000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623098}},{"id":"9b119d76-d6e4-4c25-9a32-898638531e42","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":151091000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":151091000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623097}},{"id":"dd786797-ddd7-4015-9d86-1f29c7edf607","type":"ruleset","attributes":{"created":{"seconds":1762796177,"nanos":110888000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796177,"nanos":110888000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged-local-1762796175","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623096}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 122.09125ms
+    - id: 12
+      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/tags/enrichment/9b119d76-d6e4-4c25-9a32-898638531e42
+        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: 62.296292ms
+    - 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:
+                - '*/*'
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/dd786797-ddd7-4015-9d86-1f29c7edf607
+        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: 82.852083ms
+    - 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:
+                - '*/*'
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/a0a6f3a3-eb30-4f85-9fd8-ee8847bc392d
+        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: 105.435833ms
+    - 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:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 11
+        uncompressed: false
+        body: '{"data":[]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 89.279833ms
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd.freeze b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd.freeze
new file mode 100644
index 00000000..9a9ae0fa
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd.freeze
@@ -0,0 +1 @@
+2025-11-10T12:35:48.916501-05:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd.yaml b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd.yaml
new file mode 100644
index 00000000..f4d0ff1f
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd.yaml
@@ -0,0 +1,1098 @@
+---
+version: 2
+interactions:
+    - id: 0
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 385
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"second-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:second"},"reference_table":null}]},"id":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 638
+        uncompressed: false
+        body: '{"data":{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 170.586042ms
+    - id: 1
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 382
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"third-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:third"},"reference_table":null}]},"id":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 635
+        uncompressed: false
+        body: '{"data":{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 212.21825ms
+    - id: 2
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 382
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"first-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:first"},"reference_table":null}]},"id":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 635
+        uncompressed: false
+        body: '{"data":{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 244.898ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}},{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}},{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 136.927041ms
+    - id: 4
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 200
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":[{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset"},{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset"},{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset"}]}
+        form: {}
+        headers:
+            Accept:
+                - '*/*'
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/reorder
+        method: POST
+      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: 77.933917ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}},{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}},{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 188.070917ms
+    - 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/tags/enrichment/8dc20b86-2ba3-4d9d-838a-324615af7c5e
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 666
+        uncompressed: false
+        body: '{"data":{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 116.549084ms
+    - 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/tags/enrichment/adc1dcbd-3c41-4fd1-8cc4-9788283c294e
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 663
+        uncompressed: false
+        body: '{"data":{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 118.986083ms
+    - id: 8
+      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/tags/enrichment/43590f9f-15fa-42e2-ac1f-3c8e58cd3245
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 663
+        uncompressed: false
+        body: '{"data":{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 206.046459ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}},{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}},{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 144.858167ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}},{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}},{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 103.106083ms
+    - 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/tags/enrichment/adc1dcbd-3c41-4fd1-8cc4-9788283c294e
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 663
+        uncompressed: false
+        body: '{"data":{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 120.972917ms
+    - id: 12
+      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/tags/enrichment/8dc20b86-2ba3-4d9d-838a-324615af7c5e
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 666
+        uncompressed: false
+        body: '{"data":{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 122.953167ms
+    - 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/tags/enrichment/43590f9f-15fa-42e2-ac1f-3c8e58cd3245
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 663
+        uncompressed: false
+        body: '{"data":{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 147.738333ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}},{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}},{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 149.6495ms
+    - 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:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}},{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}},{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 119.063584ms
+    - id: 16
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 419
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"unmanaged-second-rule","query":{"addition":{"key":"env","value":"unmanaged-test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:unmanaged-second"},"reference_table":null}]},"id":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 670
+        uncompressed: false
+        body: '{"data":{"id":"52fea27c-c135-4b68-9d51-a8284b8e2f36","type":"ruleset","attributes":{"created":{"seconds":1762796154,"nanos":27256000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796154,"nanos":27256000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":4,"rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623089}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 96.965042ms
+    - id: 17
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 416
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"unmanaged-first-rule","query":{"addition":{"key":"env","value":"unmanaged-test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:unmanaged-first"},"reference_table":null}]},"id":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 667
+        uncompressed: false
+        body: '{"data":{"id":"222f5f96-d7f2-4a84-8d32-8bcb2606f40f","type":"ruleset","attributes":{"created":{"seconds":1762796154,"nanos":39782000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796154,"nanos":39782000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":5,"rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623090}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 123.595334ms
+    - id: 18
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}},{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}},{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}},{"id":"52fea27c-c135-4b68-9d51-a8284b8e2f36","type":"ruleset","attributes":{"created":{"seconds":1762796154,"nanos":27256000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796154,"nanos":27256000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":4,"processing_status":"error","rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623089}},{"id":"222f5f96-d7f2-4a84-8d32-8bcb2606f40f","type":"ruleset","attributes":{"created":{"seconds":1762796154,"nanos":39782000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796154,"nanos":39782000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":5,"processing_status":"error","rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623090}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 139.967541ms
+    - id: 19
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}},{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}},{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}},{"id":"52fea27c-c135-4b68-9d51-a8284b8e2f36","type":"ruleset","attributes":{"created":{"seconds":1762796154,"nanos":27256000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796154,"nanos":27256000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":4,"processing_status":"error","rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623089}},{"id":"222f5f96-d7f2-4a84-8d32-8bcb2606f40f","type":"ruleset","attributes":{"created":{"seconds":1762796154,"nanos":39782000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796154,"nanos":39782000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":5,"processing_status":"error","rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623090}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 145.807375ms
+    - id: 20
+      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/tags/enrichment/adc1dcbd-3c41-4fd1-8cc4-9788283c294e
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 663
+        uncompressed: false
+        body: '{"data":{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 111.253333ms
+    - id: 21
+      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/tags/enrichment/52fea27c-c135-4b68-9d51-a8284b8e2f36
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 698
+        uncompressed: false
+        body: '{"data":{"id":"52fea27c-c135-4b68-9d51-a8284b8e2f36","type":"ruleset","attributes":{"created":{"seconds":1762796154,"nanos":27256000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796154,"nanos":27256000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":4,"processing_status":"error","rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623089}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 154.197125ms
+    - id: 22
+      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/tags/enrichment/222f5f96-d7f2-4a84-8d32-8bcb2606f40f
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 695
+        uncompressed: false
+        body: '{"data":{"id":"222f5f96-d7f2-4a84-8d32-8bcb2606f40f","type":"ruleset","attributes":{"created":{"seconds":1762796154,"nanos":39782000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796154,"nanos":39782000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":5,"processing_status":"error","rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623090}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 174.308084ms
+    - id: 23
+      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/tags/enrichment/8dc20b86-2ba3-4d9d-838a-324615af7c5e
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 666
+        uncompressed: false
+        body: '{"data":{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 191.555042ms
+    - id: 24
+      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/tags/enrichment/43590f9f-15fa-42e2-ac1f-3c8e58cd3245
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 663
+        uncompressed: false
+        body: '{"data":{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 279.80925ms
+    - id: 25
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}},{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}},{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}},{"id":"52fea27c-c135-4b68-9d51-a8284b8e2f36","type":"ruleset","attributes":{"created":{"seconds":1762796154,"nanos":27256000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796154,"nanos":27256000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":4,"processing_status":"error","rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623089}},{"id":"222f5f96-d7f2-4a84-8d32-8bcb2606f40f","type":"ruleset","attributes":{"created":{"seconds":1762796154,"nanos":39782000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796154,"nanos":39782000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":5,"processing_status":"error","rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623090}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 98.175458ms
+    - id: 26
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"43590f9f-15fa-42e2-ac1f-3c8e58cd3245","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":758151000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":758151000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623088}},{"id":"8dc20b86-2ba3-4d9d-838a-324615af7c5e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":739461000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":739461000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623086}},{"id":"adc1dcbd-3c41-4fd1-8cc4-9788283c294e","type":"ruleset","attributes":{"created":{"seconds":1762796151,"nanos":748059000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796151,"nanos":748059000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623087}},{"id":"52fea27c-c135-4b68-9d51-a8284b8e2f36","type":"ruleset","attributes":{"created":{"seconds":1762796154,"nanos":27256000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796154,"nanos":27256000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":4,"processing_status":"error","rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623089}},{"id":"222f5f96-d7f2-4a84-8d32-8bcb2606f40f","type":"ruleset","attributes":{"created":{"seconds":1762796154,"nanos":39782000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796154,"nanos":39782000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd-local-1762796148","position":5,"processing_status":"error","rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623090}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 134.438166ms
+    - id: 27
+      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/tags/enrichment/222f5f96-d7f2-4a84-8d32-8bcb2606f40f
+        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: 59.274875ms
+    - id: 28
+      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/tags/enrichment/52fea27c-c135-4b68-9d51-a8284b8e2f36
+        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: 77.194041ms
+    - id: 29
+      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/tags/enrichment/8dc20b86-2ba3-4d9d-838a-324615af7c5e
+        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: 107.809166ms
+    - id: 30
+      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/tags/enrichment/adc1dcbd-3c41-4fd1-8cc4-9788283c294e
+        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: 140.695416ms
+    - id: 31
+      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/tags/enrichment/43590f9f-15fa-42e2-ac1f-3c8e58cd3245
+        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: 153.751042ms
+    - id: 32
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 11
+        uncompressed: false
+        body: '{"data":[]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 435.213833ms
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle.freeze b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle.freeze
new file mode 100644
index 00000000..a3f9e01b
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle.freeze
@@ -0,0 +1 @@
+2025-11-10T12:36:02.037897-05:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle.yaml b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle.yaml
new file mode 100644
index 00000000..3d5e24ac
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle.yaml
@@ -0,0 +1,536 @@
+---
+version: 2
+interactions:
+    - id: 0
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 422
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"unmanaged-second-rule","query":{"addition":{"key":"env","value":"unmanaged-test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:unmanaged-second"},"reference_table":null}]},"id":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 675
+        uncompressed: false
+        body: '{"data":{"id":"257a118f-a93f-477f-82d4-ef4e2c1c60b7","type":"ruleset","attributes":{"created":{"seconds":1762796162,"nanos":944889000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796162,"nanos":944889000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":1,"rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623091}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 131.598792ms
+    - id: 1
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 419
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"unmanaged-first-rule","query":{"addition":{"key":"env","value":"unmanaged-test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:unmanaged-first"},"reference_table":null}]},"id":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 672
+        uncompressed: false
+        body: '{"data":{"id":"d90e68d6-1302-45f9-a5f4-5c7a89032062","type":"ruleset","attributes":{"created":{"seconds":1762796162,"nanos":952690000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796162,"nanos":952690000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":2,"rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623092}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 156.863042ms
+    - 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/tags/enrichment/d90e68d6-1302-45f9-a5f4-5c7a89032062
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 700
+        uncompressed: false
+        body: '{"data":{"id":"d90e68d6-1302-45f9-a5f4-5c7a89032062","type":"ruleset","attributes":{"created":{"seconds":1762796162,"nanos":952690000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796162,"nanos":952690000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":2,"processing_status":"error","rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623092}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 116.77025ms
+    - 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/tags/enrichment/257a118f-a93f-477f-82d4-ef4e2c1c60b7
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 703
+        uncompressed: false
+        body: '{"data":{"id":"257a118f-a93f-477f-82d4-ef4e2c1c60b7","type":"ruleset","attributes":{"created":{"seconds":1762796162,"nanos":944889000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796162,"nanos":944889000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":1,"processing_status":"error","rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623091}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 140.536666ms
+    - id: 4
+      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/tags/enrichment/d90e68d6-1302-45f9-a5f4-5c7a89032062
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 700
+        uncompressed: false
+        body: '{"data":{"id":"d90e68d6-1302-45f9-a5f4-5c7a89032062","type":"ruleset","attributes":{"created":{"seconds":1762796162,"nanos":952690000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796162,"nanos":952690000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":2,"processing_status":"error","rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623092}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 136.095083ms
+    - 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/tags/enrichment/257a118f-a93f-477f-82d4-ef4e2c1c60b7
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 703
+        uncompressed: false
+        body: '{"data":{"id":"257a118f-a93f-477f-82d4-ef4e2c1c60b7","type":"ruleset","attributes":{"created":{"seconds":1762796162,"nanos":944889000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796162,"nanos":944889000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":1,"processing_status":"error","rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623091}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 253.333917ms
+    - id: 6
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 385
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"first-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:first"},"reference_table":null}]},"id":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 638
+        uncompressed: false
+        body: '{"data":{"id":"1b055b34-3ce7-4322-bb9a-09045f5d1797","type":"ruleset","attributes":{"created":{"seconds":1762796164,"nanos":285547000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796164,"nanos":285547000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":3,"rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623093}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 83.208542ms
+    - id: 7
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 388
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"second-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:second"},"reference_table":null}]},"id":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 641
+        uncompressed: false
+        body: '{"data":{"id":"15f08017-906a-4993-a364-aae91ec1b6f5","type":"ruleset","attributes":{"created":{"seconds":1762796164,"nanos":290104000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796164,"nanos":290104000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":4,"rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623094}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 114.062667ms
+    - id: 8
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 385
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"third-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:third"},"reference_table":null}]},"id":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 638
+        uncompressed: false
+        body: '{"data":{"id":"6bc521f6-3a35-4f03-9e5a-eec9ad4c450a","type":"ruleset","attributes":{"created":{"seconds":1762796164,"nanos":321905000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796164,"nanos":321905000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":5,"rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623095}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 145.604916ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"257a118f-a93f-477f-82d4-ef4e2c1c60b7","type":"ruleset","attributes":{"created":{"seconds":1762796162,"nanos":944889000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796162,"nanos":944889000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":1,"processing_status":"error","rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623091}},{"id":"d90e68d6-1302-45f9-a5f4-5c7a89032062","type":"ruleset","attributes":{"created":{"seconds":1762796162,"nanos":952690000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796162,"nanos":952690000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":2,"processing_status":"error","rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623092}},{"id":"1b055b34-3ce7-4322-bb9a-09045f5d1797","type":"ruleset","attributes":{"created":{"seconds":1762796164,"nanos":285547000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796164,"nanos":285547000},"name":"tf-test-false-first-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":3,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623093}},{"id":"15f08017-906a-4993-a364-aae91ec1b6f5","type":"ruleset","attributes":{"created":{"seconds":1762796164,"nanos":290104000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796164,"nanos":290104000},"name":"tf-test-false-second-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":4,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623094}},{"id":"6bc521f6-3a35-4f03-9e5a-eec9ad4c450a","type":"ruleset","attributes":{"created":{"seconds":1762796164,"nanos":321905000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796164,"nanos":321905000},"name":"tf-test-false-third-tf-TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle-local-1762796162","position":5,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623095}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 169.38025ms
+    - 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:
+                - '*/*'
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/257a118f-a93f-477f-82d4-ef4e2c1c60b7
+        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: 75.095167ms
+    - 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:
+                - '*/*'
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/d90e68d6-1302-45f9-a5f4-5c7a89032062
+        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: 90.817209ms
+    - id: 12
+      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/tags/enrichment/15f08017-906a-4993-a364-aae91ec1b6f5
+        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: 99.279333ms
+    - 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:
+                - '*/*'
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/6bc521f6-3a35-4f03-9e5a-eec9ad4c450a
+        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: 116.901125ms
+    - 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:
+                - '*/*'
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/1b055b34-3ce7-4322-bb9a-09045f5d1797
+        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: 133.307458ms
+    - 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:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 11
+        uncompressed: false
+        body: '{"data":[]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 85.838833ms
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrue.freeze b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrue.freeze
new file mode 100644
index 00000000..de473324
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrue.freeze
@@ -0,0 +1 @@
+2025-11-10T12:36:33.755716-05:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrue.yaml b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrue.yaml
new file mode 100644
index 00000000..b5eb21ad
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrue.yaml
@@ -0,0 +1,535 @@
+---
+version: 2
+interactions:
+    - id: 0
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 11
+        uncompressed: false
+        body: '{"data":[]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 135.495166ms
+    - id: 1
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 370
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"third-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:third"},"reference_table":null}]},"id":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 623
+        uncompressed: false
+        body: '{"data":{"id":"4ce4fa6c-6fc0-4e0e-8a74-1a413713f1e1","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":107407000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":107407000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":1,"rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623104}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 94.429208ms
+    - id: 2
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 373
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"second-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:second"},"reference_table":null}]},"id":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 626
+        uncompressed: false
+        body: '{"data":{"id":"0e44d691-49c9-48e5-b87d-def279afae9c","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":150071000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":150071000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":2,"rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623105}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 133.130833ms
+    - id: 3
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 370
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"first-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:first"},"reference_table":null}]},"id":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 623
+        uncompressed: false
+        body: '{"data":{"id":"44e7e56b-37b4-4646-8660-17eec92a2565","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":157231000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":157231000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":3,"rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623106}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 156.23975ms
+    - id: 4
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"4ce4fa6c-6fc0-4e0e-8a74-1a413713f1e1","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":107407000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":107407000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":1,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623104}},{"id":"0e44d691-49c9-48e5-b87d-def279afae9c","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":150071000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":150071000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623105}},{"id":"44e7e56b-37b4-4646-8660-17eec92a2565","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":157231000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":157231000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":3,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623106}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 291.379083ms
+    - id: 5
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 200
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":[{"id":"44e7e56b-37b4-4646-8660-17eec92a2565","type":"ruleset"},{"id":"0e44d691-49c9-48e5-b87d-def279afae9c","type":"ruleset"},{"id":"4ce4fa6c-6fc0-4e0e-8a74-1a413713f1e1","type":"ruleset"}]}
+        form: {}
+        headers:
+            Accept:
+                - '*/*'
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/reorder
+        method: POST
+      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: 44.442125ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"44e7e56b-37b4-4646-8660-17eec92a2565","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":157231000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":157231000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623106}},{"id":"0e44d691-49c9-48e5-b87d-def279afae9c","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":150071000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":150071000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623105}},{"id":"4ce4fa6c-6fc0-4e0e-8a74-1a413713f1e1","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":107407000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":107407000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623104}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 89.532875ms
+    - 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/tags/enrichment/0e44d691-49c9-48e5-b87d-def279afae9c
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 654
+        uncompressed: false
+        body: '{"data":{"id":"0e44d691-49c9-48e5-b87d-def279afae9c","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":150071000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":150071000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623105}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 106.814708ms
+    - id: 8
+      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/tags/enrichment/44e7e56b-37b4-4646-8660-17eec92a2565
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 651
+        uncompressed: false
+        body: '{"data":{"id":"44e7e56b-37b4-4646-8660-17eec92a2565","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":157231000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":157231000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623106}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 120.096459ms
+    - 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/tags/enrichment/4ce4fa6c-6fc0-4e0e-8a74-1a413713f1e1
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 651
+        uncompressed: false
+        body: '{"data":{"id":"4ce4fa6c-6fc0-4e0e-8a74-1a413713f1e1","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":107407000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":107407000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623104}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 137.594708ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"44e7e56b-37b4-4646-8660-17eec92a2565","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":157231000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":157231000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623106}},{"id":"0e44d691-49c9-48e5-b87d-def279afae9c","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":150071000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":150071000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623105}},{"id":"4ce4fa6c-6fc0-4e0e-8a74-1a413713f1e1","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":107407000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":107407000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623104}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 83.912958ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"44e7e56b-37b4-4646-8660-17eec92a2565","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":157231000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":157231000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623106}},{"id":"0e44d691-49c9-48e5-b87d-def279afae9c","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":150071000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":150071000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623105}},{"id":"4ce4fa6c-6fc0-4e0e-8a74-1a413713f1e1","type":"ruleset","attributes":{"created":{"seconds":1762796196,"nanos":107407000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796196,"nanos":107407000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrue-local-1762796193","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623104}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 88.73625ms
+    - id: 12
+      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/tags/enrichment/0e44d691-49c9-48e5-b87d-def279afae9c
+        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: 47.16575ms
+    - 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:
+                - '*/*'
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/44e7e56b-37b4-4646-8660-17eec92a2565
+        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: 87.182541ms
+    - 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:
+                - '*/*'
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/4ce4fa6c-6fc0-4e0e-8a74-1a413713f1e1
+        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: 100.141958ms
+    - 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:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 11
+        uncompressed: false
+        body: '{"data":[]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 103.375833ms
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged.freeze b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged.freeze
new file mode 100644
index 00000000..291ec319
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged.freeze
@@ -0,0 +1 @@
+2025-11-10T12:36:37.916156-05:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged.yaml b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged.yaml
new file mode 100644
index 00000000..a8fa0d63
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged.yaml
@@ -0,0 +1,801 @@
+---
+version: 2
+interactions:
+    - id: 0
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 417
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"unmanaged-first-rule","query":{"addition":{"key":"env","value":"unmanaged-test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:unmanaged-first"},"reference_table":null}]},"id":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 670
+        uncompressed: false
+        body: '{"data":{"id":"ef74c407-fa9d-484a-a9a4-934e4f25dea5","type":"ruleset","attributes":{"created":{"seconds":1762796198,"nanos":379838000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796198,"nanos":379838000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":1,"rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623107}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 64.116875ms
+    - id: 1
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 420
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"unmanaged-second-rule","query":{"addition":{"key":"env","value":"unmanaged-test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:unmanaged-second"},"reference_table":null}]},"id":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 673
+        uncompressed: false
+        body: '{"data":{"id":"3ce91948-f463-47fb-bc28-6b5ba85fcefb","type":"ruleset","attributes":{"created":{"seconds":1762796198,"nanos":393780000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796198,"nanos":393780000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":2,"rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623108}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 89.459833ms
+    - 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/tags/enrichment/ef74c407-fa9d-484a-a9a4-934e4f25dea5
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 698
+        uncompressed: false
+        body: '{"data":{"id":"ef74c407-fa9d-484a-a9a4-934e4f25dea5","type":"ruleset","attributes":{"created":{"seconds":1762796198,"nanos":379838000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796198,"nanos":379838000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":1,"processing_status":"error","rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623107}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 84.892458ms
+    - 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/tags/enrichment/3ce91948-f463-47fb-bc28-6b5ba85fcefb
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 701
+        uncompressed: false
+        body: '{"data":{"id":"3ce91948-f463-47fb-bc28-6b5ba85fcefb","type":"ruleset","attributes":{"created":{"seconds":1762796198,"nanos":393780000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796198,"nanos":393780000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":2,"processing_status":"error","rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623108}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 107.54525ms
+    - id: 4
+      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/tags/enrichment/ef74c407-fa9d-484a-a9a4-934e4f25dea5
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 698
+        uncompressed: false
+        body: '{"data":{"id":"ef74c407-fa9d-484a-a9a4-934e4f25dea5","type":"ruleset","attributes":{"created":{"seconds":1762796198,"nanos":379838000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796198,"nanos":379838000},"name":"tf-test-unmanaged-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":1,"processing_status":"error","rules":[{"name":"unmanaged-first-rule","enabled":true,"query":{"query":"service:unmanaged-first","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623107}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 88.401917ms
+    - 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/tags/enrichment/3ce91948-f463-47fb-bc28-6b5ba85fcefb
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 701
+        uncompressed: false
+        body: '{"data":{"id":"3ce91948-f463-47fb-bc28-6b5ba85fcefb","type":"ruleset","attributes":{"created":{"seconds":1762796198,"nanos":393780000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796198,"nanos":393780000},"name":"tf-test-unmanaged-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":2,"processing_status":"error","rules":[{"name":"unmanaged-second-rule","enabled":true,"query":{"query":"service:unmanaged-second","addition":{"key":"env","value":"unmanaged-test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623108}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 121.744459ms
+    - 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:
+                - '*/*'
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/ef74c407-fa9d-484a-a9a4-934e4f25dea5
+        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: 53.113916ms
+    - 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:
+                - '*/*'
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/3ce91948-f463-47fb-bc28-6b5ba85fcefb
+        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: 66.155791ms
+    - id: 8
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 386
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"first-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:first"},"reference_table":null}]},"id":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 639
+        uncompressed: false
+        body: '{"data":{"id":"b0345c58-6815-4167-8309-4a113061848f","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":599926000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":599926000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":1,"rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623109}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 117.568625ms
+    - id: 9
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 386
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"third-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:third"},"reference_table":null}]},"id":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 639
+        uncompressed: false
+        body: '{"data":{"id":"a91bce46-ddce-4c36-8914-35c8fcfdfadc","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":602436000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":602436000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":2,"rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623110}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 155.408417ms
+    - id: 10
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 389
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"second-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:second"},"reference_table":null}]},"id":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","type":"create_ruleset"}}
+        form: {}
+        headers:
+            Accept:
+                - application/json
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        method: POST
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 642
+        uncompressed: false
+        body: '{"data":{"id":"9c3e905c-6f4f-4b6d-af14-2bbdb6c4ab3d","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":634662000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":634662000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":3,"rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623111}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 183.421541ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"b0345c58-6815-4167-8309-4a113061848f","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":599926000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":599926000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623109}},{"id":"a91bce46-ddce-4c36-8914-35c8fcfdfadc","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":602436000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":602436000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":2,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623110}},{"id":"9c3e905c-6f4f-4b6d-af14-2bbdb6c4ab3d","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":634662000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":634662000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":3,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623111}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 103.722708ms
+    - id: 12
+      request:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        content_length: 200
+        transfer_encoding: []
+        trailer: {}
+        host: api.datadoghq.com
+        remote_addr: ""
+        request_uri: ""
+        body: |
+            {"data":[{"id":"b0345c58-6815-4167-8309-4a113061848f","type":"ruleset"},{"id":"9c3e905c-6f4f-4b6d-af14-2bbdb6c4ab3d","type":"ruleset"},{"id":"a91bce46-ddce-4c36-8914-35c8fcfdfadc","type":"ruleset"}]}
+        form: {}
+        headers:
+            Accept:
+                - '*/*'
+            Content-Type:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/reorder
+        method: POST
+      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: 48.154167ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"b0345c58-6815-4167-8309-4a113061848f","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":599926000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":599926000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623109}},{"id":"9c3e905c-6f4f-4b6d-af14-2bbdb6c4ab3d","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":634662000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":634662000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623111}},{"id":"a91bce46-ddce-4c36-8914-35c8fcfdfadc","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":602436000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":602436000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623110}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 94.522458ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"b0345c58-6815-4167-8309-4a113061848f","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":599926000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":599926000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623109}},{"id":"9c3e905c-6f4f-4b6d-af14-2bbdb6c4ab3d","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":634662000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":634662000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623111}},{"id":"a91bce46-ddce-4c36-8914-35c8fcfdfadc","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":602436000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":602436000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623110}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 129.288417ms
+    - 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:
+                - application/json
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/9c3e905c-6f4f-4b6d-af14-2bbdb6c4ab3d
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 670
+        uncompressed: false
+        body: '{"data":{"id":"9c3e905c-6f4f-4b6d-af14-2bbdb6c4ab3d","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":634662000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":634662000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623111}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 101.546458ms
+    - 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/tags/enrichment/a91bce46-ddce-4c36-8914-35c8fcfdfadc
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 667
+        uncompressed: false
+        body: '{"data":{"id":"a91bce46-ddce-4c36-8914-35c8fcfdfadc","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":602436000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":602436000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623110}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 108.805584ms
+    - id: 17
+      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/tags/enrichment/b0345c58-6815-4167-8309-4a113061848f
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 667
+        uncompressed: false
+        body: '{"data":{"id":"b0345c58-6815-4167-8309-4a113061848f","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":599926000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":599926000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623109}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 174.781709ms
+    - id: 18
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"b0345c58-6815-4167-8309-4a113061848f","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":599926000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":599926000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623109}},{"id":"9c3e905c-6f4f-4b6d-af14-2bbdb6c4ab3d","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":634662000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":634662000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623111}},{"id":"a91bce46-ddce-4c36-8914-35c8fcfdfadc","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":602436000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":602436000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623110}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 90.35975ms
+    - id: 19
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"b0345c58-6815-4167-8309-4a113061848f","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":599926000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":599926000},"name":"tf-test-override-first-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623109}},{"id":"9c3e905c-6f4f-4b6d-af14-2bbdb6c4ab3d","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":634662000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":634662000},"name":"tf-test-override-second-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623111}},{"id":"a91bce46-ddce-4c36-8914-35c8fcfdfadc","type":"ruleset","attributes":{"created":{"seconds":1762796199,"nanos":602436000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796199,"nanos":602436000},"name":"tf-test-override-third-tf-TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged-local-1762796197","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623110}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 89.830042ms
+    - id: 20
+      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/tags/enrichment/a91bce46-ddce-4c36-8914-35c8fcfdfadc
+        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: 61.53875ms
+    - id: 21
+      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/tags/enrichment/9c3e905c-6f4f-4b6d-af14-2bbdb6c4ab3d
+        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: 101.126792ms
+    - id: 22
+      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/tags/enrichment/b0345c58-6815-4167-8309-4a113061848f
+        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: 127.735333ms
+    - id: 23
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 11
+        uncompressed: false
+        body: '{"data":[]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 93.362541ms
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrue_DeletesUnmanaged.freeze b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrue_DeletesUnmanaged.freeze
new file mode 100644
index 00000000..482345d3
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_OverrideTrue_DeletesUnmanaged.freeze
@@ -0,0 +1 @@
+2025-11-05T14:29:27.471701-05:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_SingleRuleset.freeze b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_SingleRuleset.freeze
index ef71c11f..196526f2 100644
--- a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_SingleRuleset.freeze
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_SingleRuleset.freeze
@@ -1 +1 @@
-2025-10-06T10:08:43.575458-04:00
\ No newline at end of file
+2025-11-10T12:36:45.946254-05:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_SingleRuleset.yaml b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_SingleRuleset.yaml
index d7970788..1e2a6ecc 100644
--- a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_SingleRuleset.yaml
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_SingleRuleset.yaml
@@ -33,7 +33,7 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 126.878959ms
+        duration: 168.665791ms
     - id: 1
       request:
         proto: HTTP/1.1
@@ -46,7 +46,7 @@ interactions:
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"single-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:single"},"reference_table":null}]},"id":"tf-test-order-single-tf-TestAccDatadogTagPipelineRulesets_SingleRuleset-local-1759759723","type":"create_ruleset"}}
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"single-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:single"},"reference_table":null}]},"id":"tf-test-order-single-tf-TestAccDatadogTagPipelineRulesets_SingleRuleset-local-1762796205","type":"create_ruleset"}}
         form: {}
         headers:
             Accept:
@@ -61,15 +61,15 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 624
+        content_length: 622
         uncompressed: false
-        body: '{"data":{"id":"f1e3b7b6-e9b6-4512-be2e-b5c5636fb669","type":"ruleset","attributes":{"created":{"seconds":1759759724,"nanos":215431000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759724,"nanos":215431000},"name":"tf-test-order-single-tf-TestAccDatadogTagPipelineRulesets_SingleRuleset-local-1759759723","position":1,"rules":[{"name":"single-rule","enabled":true,"query":{"query":"service:single","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610345}}}'
+        body: '{"data":{"id":"c964a5a8-0335-4bcb-810b-f7b92934097c","type":"ruleset","attributes":{"created":{"seconds":1762796207,"nanos":28260000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796207,"nanos":28260000},"name":"tf-test-order-single-tf-TestAccDatadogTagPipelineRulesets_SingleRuleset-local-1762796205","position":1,"rules":[{"name":"single-rule","enabled":true,"query":{"query":"service:single","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623112}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 67.090042ms
+        duration: 103.938ms
     - id: 2
       request:
         proto: HTTP/1.1
@@ -94,15 +94,15 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 654
+        content_length: 652
         uncompressed: false
-        body: '{"data":[{"id":"f1e3b7b6-e9b6-4512-be2e-b5c5636fb669","type":"ruleset","attributes":{"created":{"seconds":1759759724,"nanos":215431000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759724,"nanos":215431000},"name":"tf-test-order-single-tf-TestAccDatadogTagPipelineRulesets_SingleRuleset-local-1759759723","position":1,"processing_status":"error","rules":[{"name":"single-rule","enabled":true,"query":{"query":"service:single","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610345}}]}'
+        body: '{"data":[{"id":"c964a5a8-0335-4bcb-810b-f7b92934097c","type":"ruleset","attributes":{"created":{"seconds":1762796207,"nanos":28260000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796207,"nanos":28260000},"name":"tf-test-order-single-tf-TestAccDatadogTagPipelineRulesets_SingleRuleset-local-1762796205","position":1,"processing_status":"error","rules":[{"name":"single-rule","enabled":true,"query":{"query":"service:single","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623112}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 111.920542ms
+        duration: 92.810084ms
     - id: 3
       request:
         proto: HTTP/1.1
@@ -115,7 +115,7 @@ interactions:
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":[{"id":"f1e3b7b6-e9b6-4512-be2e-b5c5636fb669","type":"ruleset"}]}
+            {"data":[{"id":"c964a5a8-0335-4bcb-810b-f7b92934097c","type":"ruleset"}]}
         form: {}
         headers:
             Accept:
@@ -136,7 +136,7 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 54.112416ms
+        duration: 40.709042ms
     - id: 4
       request:
         proto: HTTP/1.1
@@ -153,7 +153,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/f1e3b7b6-e9b6-4512-be2e-b5c5636fb669
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
         method: GET
       response:
         proto: HTTP/1.1
@@ -163,13 +163,13 @@ interactions:
         trailer: {}
         content_length: 652
         uncompressed: false
-        body: '{"data":{"id":"f1e3b7b6-e9b6-4512-be2e-b5c5636fb669","type":"ruleset","attributes":{"created":{"seconds":1759759724,"nanos":215431000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759724,"nanos":215431000},"name":"tf-test-order-single-tf-TestAccDatadogTagPipelineRulesets_SingleRuleset-local-1759759723","position":1,"processing_status":"error","rules":[{"name":"single-rule","enabled":true,"query":{"query":"service:single","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610345}}}'
+        body: '{"data":[{"id":"c964a5a8-0335-4bcb-810b-f7b92934097c","type":"ruleset","attributes":{"created":{"seconds":1762796207,"nanos":28260000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796207,"nanos":28260000},"name":"tf-test-order-single-tf-TestAccDatadogTagPipelineRulesets_SingleRuleset-local-1762796205","position":1,"processing_status":"error","rules":[{"name":"single-rule","enabled":true,"query":{"query":"service:single","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623112}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 122.63675ms
+        duration: 105.80875ms
     - id: 5
       request:
         proto: HTTP/1.1
@@ -186,7 +186,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/c964a5a8-0335-4bcb-810b-f7b92934097c
         method: GET
       response:
         proto: HTTP/1.1
@@ -194,16 +194,82 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 654
+        content_length: 650
         uncompressed: false
-        body: '{"data":[{"id":"f1e3b7b6-e9b6-4512-be2e-b5c5636fb669","type":"ruleset","attributes":{"created":{"seconds":1759759724,"nanos":215431000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759724,"nanos":215431000},"name":"tf-test-order-single-tf-TestAccDatadogTagPipelineRulesets_SingleRuleset-local-1759759723","position":1,"processing_status":"error","rules":[{"name":"single-rule","enabled":true,"query":{"query":"service:single","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610345}}]}'
+        body: '{"data":{"id":"c964a5a8-0335-4bcb-810b-f7b92934097c","type":"ruleset","attributes":{"created":{"seconds":1762796207,"nanos":28260000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796207,"nanos":28260000},"name":"tf-test-order-single-tf-TestAccDatadogTagPipelineRulesets_SingleRuleset-local-1762796205","position":1,"processing_status":"error","rules":[{"name":"single-rule","enabled":true,"query":{"query":"service:single","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623112}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 107.233416ms
+        duration: 110.295333ms
     - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 652
+        uncompressed: false
+        body: '{"data":[{"id":"c964a5a8-0335-4bcb-810b-f7b92934097c","type":"ruleset","attributes":{"created":{"seconds":1762796207,"nanos":28260000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796207,"nanos":28260000},"name":"tf-test-order-single-tf-TestAccDatadogTagPipelineRulesets_SingleRuleset-local-1762796205","position":1,"processing_status":"error","rules":[{"name":"single-rule","enabled":true,"query":{"query":"service:single","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623112}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 102.250375ms
+    - 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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 652
+        uncompressed: false
+        body: '{"data":[{"id":"c964a5a8-0335-4bcb-810b-f7b92934097c","type":"ruleset","attributes":{"created":{"seconds":1762796207,"nanos":28260000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796207,"nanos":28260000},"name":"tf-test-order-single-tf-TestAccDatadogTagPipelineRulesets_SingleRuleset-local-1762796205","position":1,"processing_status":"error","rules":[{"name":"single-rule","enabled":true,"query":{"query":"service:single","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623112}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 95.224459ms
+    - id: 8
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -219,7 +285,7 @@ interactions:
         headers:
             Accept:
                 - '*/*'
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/f1e3b7b6-e9b6-4512-be2e-b5c5636fb669
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/c964a5a8-0335-4bcb-810b-f7b92934097c
         method: DELETE
       response:
         proto: HTTP/1.1
@@ -233,8 +299,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 96.345917ms
-    - id: 7
+        duration: 48.522708ms
+    - id: 9
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -266,4 +332,4 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 99.876041ms
+        duration: 117.976125ms
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Update.freeze b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Update.freeze
index d44a6f2f..fd17561c 100644
--- a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Update.freeze
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Update.freeze
@@ -1 +1 @@
-2025-10-06T10:08:36.940534-04:00
\ No newline at end of file
+2025-11-10T12:37:07.640931-05:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Update.yaml b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Update.yaml
index d676405b..3aeb9eda 100644
--- a/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Update.yaml
+++ b/datadog/tests/cassettes/TestAccDatadogTagPipelineRulesets_Update.yaml
@@ -33,7 +33,7 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 116.035292ms
+        duration: 143.333333ms
     - id: 1
       request:
         proto: HTTP/1.1
@@ -46,7 +46,7 @@ interactions:
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"third-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:third"},"reference_table":null}]},"id":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","type":"create_ruleset"}}
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"first-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:first"},"reference_table":null}]},"id":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","type":"create_ruleset"}}
         form: {}
         headers:
             Accept:
@@ -63,13 +63,13 @@ interactions:
         trailer: {}
         content_length: 614
         uncompressed: false
-        body: '{"data":{"id":"8c815bfd-5c06-4e46-b403-8324860c8044","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":571750000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":571750000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":1,"rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610339}}}'
+        body: '{"data":{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 84.21475ms
+        duration: 78.932542ms
     - id: 2
       request:
         proto: HTTP/1.1
@@ -82,7 +82,7 @@ interactions:
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"first-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:first"},"reference_table":null}]},"id":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","type":"create_ruleset"}}
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"third-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:third"},"reference_table":null}]},"id":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","type":"create_ruleset"}}
         form: {}
         headers:
             Accept:
@@ -99,13 +99,13 @@ interactions:
         trailer: {}
         content_length: 614
         uncompressed: false
-        body: '{"data":{"id":"095471dd-f7d2-4da6-9484-850263fe1697","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":577974000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":577974000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":2,"rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610340}}}'
+        body: '{"data":{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 113.897792ms
+        duration: 112.753625ms
     - id: 3
       request:
         proto: HTTP/1.1
@@ -118,7 +118,7 @@ interactions:
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"second-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:second"},"reference_table":null}]},"id":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","type":"create_ruleset"}}
+            {"data":{"attributes":{"enabled":true,"rules":[{"enabled":true,"mapping":null,"name":"second-rule","query":{"addition":{"key":"env","value":"test"},"case_insensitivity":false,"if_not_exists":false,"query":"service:second"},"reference_table":null}]},"id":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","type":"create_ruleset"}}
         form: {}
         headers:
             Accept:
@@ -135,13 +135,13 @@ interactions:
         trailer: {}
         content_length: 617
         uncompressed: false
-        body: '{"data":{"id":"f7da2eca-019e-45ec-93b3-d3614f12f86b","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":618497000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":618497000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":3,"rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610341}}}'
+        body: '{"data":{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 138.68325ms
+        duration: 153.967709ms
     - id: 4
       request:
         proto: HTTP/1.1
@@ -168,13 +168,13 @@ interactions:
         trailer: {}
         content_length: -1
         uncompressed: true
-        body: '{"data":[{"id":"8c815bfd-5c06-4e46-b403-8324860c8044","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":571750000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":571750000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":1,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610339}},{"id":"095471dd-f7d2-4da6-9484-850263fe1697","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":577974000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":577974000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":2,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610340}},{"id":"f7da2eca-019e-45ec-93b3-d3614f12f86b","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":618497000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":618497000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":3,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610341}}]}'
+        body: '{"data":[{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}},{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 117.626292ms
+        duration: 100.439459ms
     - id: 5
       request:
         proto: HTTP/1.1
@@ -187,7 +187,7 @@ interactions:
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":[{"id":"095471dd-f7d2-4da6-9484-850263fe1697","type":"ruleset"},{"id":"f7da2eca-019e-45ec-93b3-d3614f12f86b","type":"ruleset"},{"id":"8c815bfd-5c06-4e46-b403-8324860c8044","type":"ruleset"}]}
+            {"data":[{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset"},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset"},{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset"}]}
         form: {}
         headers:
             Accept:
@@ -208,7 +208,7 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 54.290458ms
+        duration: 69.14025ms
     - id: 6
       request:
         proto: HTTP/1.1
@@ -225,7 +225,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/8c815bfd-5c06-4e46-b403-8324860c8044
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
         method: GET
       response:
         proto: HTTP/1.1
@@ -233,15 +233,15 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 642
-        uncompressed: false
-        body: '{"data":{"id":"8c815bfd-5c06-4e46-b403-8324860c8044","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":571750000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":571750000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610339}}}'
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}},{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 133.598042ms
+        duration: 319.042875ms
     - id: 7
       request:
         proto: HTTP/1.1
@@ -258,7 +258,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/095471dd-f7d2-4da6-9484-850263fe1697
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/d6dd208d-2a47-4175-9ac0-85372ece61d9
         method: GET
       response:
         proto: HTTP/1.1
@@ -266,15 +266,15 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 642
+        content_length: 645
         uncompressed: false
-        body: '{"data":{"id":"095471dd-f7d2-4da6-9484-850263fe1697","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":577974000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":577974000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610340}}}'
+        body: '{"data":{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 133.595ms
+        duration: 94.9755ms
     - id: 8
       request:
         proto: HTTP/1.1
@@ -291,7 +291,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/f7da2eca-019e-45ec-93b3-d3614f12f86b
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/6109c19d-4f5d-42f9-8e6a-059c5ed9c885
         method: GET
       response:
         proto: HTTP/1.1
@@ -299,16 +299,49 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 645
+        content_length: 642
         uncompressed: false
-        body: '{"data":{"id":"f7da2eca-019e-45ec-93b3-d3614f12f86b","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":618497000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":618497000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610341}}}'
+        body: '{"data":{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 198.304208ms
+        duration: 122.589333ms
     - 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/tags/enrichment/bd07c89e-97cb-46a8-97b7-78834f28a9f6
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 642
+        uncompressed: false
+        body: '{"data":{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 207.689583ms
+    - id: 10
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -334,14 +367,14 @@ interactions:
         trailer: {}
         content_length: -1
         uncompressed: true
-        body: '{"data":[{"id":"095471dd-f7d2-4da6-9484-850263fe1697","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":577974000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":577974000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610340}},{"id":"f7da2eca-019e-45ec-93b3-d3614f12f86b","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":618497000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":618497000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610341}},{"id":"8c815bfd-5c06-4e46-b403-8324860c8044","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":571750000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":571750000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610339}}]}'
+        body: '{"data":[{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}},{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 112.040667ms
-    - id: 10
+        duration: 108.600042ms
+    - id: 11
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -357,7 +390,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/f7da2eca-019e-45ec-93b3-d3614f12f86b
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
         method: GET
       response:
         proto: HTTP/1.1
@@ -365,16 +398,16 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 645
-        uncompressed: false
-        body: '{"data":{"id":"f7da2eca-019e-45ec-93b3-d3614f12f86b","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":618497000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":618497000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610341}}}'
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}},{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 113.000083ms
-    - id: 11
+        duration: 234.672875ms
+    - id: 12
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -390,7 +423,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/8c815bfd-5c06-4e46-b403-8324860c8044
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/bd07c89e-97cb-46a8-97b7-78834f28a9f6
         method: GET
       response:
         proto: HTTP/1.1
@@ -400,14 +433,14 @@ interactions:
         trailer: {}
         content_length: 642
         uncompressed: false
-        body: '{"data":{"id":"8c815bfd-5c06-4e46-b403-8324860c8044","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":571750000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":571750000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610339}}}'
+        body: '{"data":{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 137.616334ms
-    - id: 12
+        duration: 115.879209ms
+    - id: 13
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -423,7 +456,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/095471dd-f7d2-4da6-9484-850263fe1697
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/6109c19d-4f5d-42f9-8e6a-059c5ed9c885
         method: GET
       response:
         proto: HTTP/1.1
@@ -433,14 +466,47 @@ interactions:
         trailer: {}
         content_length: 642
         uncompressed: false
-        body: '{"data":{"id":"095471dd-f7d2-4da6-9484-850263fe1697","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":577974000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":577974000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610340}}}'
+        body: '{"data":{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 173.670959ms
-    - id: 13
+        duration: 133.682458ms
+    - 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/tags/enrichment/d6dd208d-2a47-4175-9ac0-85372ece61d9
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 645
+        uncompressed: false
+        body: '{"data":{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}}}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 198.975458ms
+    - id: 15
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -466,14 +532,14 @@ interactions:
         trailer: {}
         content_length: -1
         uncompressed: true
-        body: '{"data":[{"id":"095471dd-f7d2-4da6-9484-850263fe1697","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":577974000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":577974000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610340}},{"id":"f7da2eca-019e-45ec-93b3-d3614f12f86b","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":618497000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":618497000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610341}},{"id":"8c815bfd-5c06-4e46-b403-8324860c8044","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":571750000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":571750000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610339}}]}'
+        body: '{"data":[{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}},{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 106.898291ms
-    - id: 14
+        duration: 102.89925ms
+    - id: 16
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -499,14 +565,80 @@ interactions:
         trailer: {}
         content_length: -1
         uncompressed: true
-        body: '{"data":[{"id":"095471dd-f7d2-4da6-9484-850263fe1697","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":577974000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":577974000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610340}},{"id":"f7da2eca-019e-45ec-93b3-d3614f12f86b","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":618497000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":618497000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610341}},{"id":"8c815bfd-5c06-4e46-b403-8324860c8044","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":571750000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":571750000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610339}}]}'
+        body: '{"data":[{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}},{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 139.850208ms
-    - id: 15
+        duration: 91.93475ms
+    - id: 17
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}},{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 91.836958ms
+    - id: 18
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}},{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 84.603792ms
+    - id: 19
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -518,7 +650,7 @@ interactions:
         remote_addr: ""
         request_uri: ""
         body: |
-            {"data":[{"id":"8c815bfd-5c06-4e46-b403-8324860c8044","type":"ruleset"},{"id":"095471dd-f7d2-4da6-9484-850263fe1697","type":"ruleset"},{"id":"f7da2eca-019e-45ec-93b3-d3614f12f86b","type":"ruleset"}]}
+            {"data":[{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset"},{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset"},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset"}]}
         form: {}
         headers:
             Accept:
@@ -539,8 +671,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 66.558708ms
-    - id: 16
+        duration: 47.298125ms
+    - id: 20
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -556,7 +688,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/095471dd-f7d2-4da6-9484-850263fe1697
+        url: https://api.datadoghq.com/api/v2/tags/enrichment
         method: GET
       response:
         proto: HTTP/1.1
@@ -564,16 +696,49 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 642
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}},{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 92.507375ms
+    - id: 21
+      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/tags/enrichment/d6dd208d-2a47-4175-9ac0-85372ece61d9
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: 645
         uncompressed: false
-        body: '{"data":{"id":"095471dd-f7d2-4da6-9484-850263fe1697","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":577974000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":577974000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":2,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610340}}}'
+        body: '{"data":{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 109.292833ms
-    - id: 17
+        duration: 86.39725ms
+    - id: 22
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -589,7 +754,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/8c815bfd-5c06-4e46-b403-8324860c8044
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/bd07c89e-97cb-46a8-97b7-78834f28a9f6
         method: GET
       response:
         proto: HTTP/1.1
@@ -599,14 +764,14 @@ interactions:
         trailer: {}
         content_length: 642
         uncompressed: false
-        body: '{"data":{"id":"8c815bfd-5c06-4e46-b403-8324860c8044","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":571750000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":571750000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":1,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610339}}}'
+        body: '{"data":{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 109.322375ms
-    - id: 18
+        duration: 100.001375ms
+    - id: 23
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -622,7 +787,7 @@ interactions:
         headers:
             Accept:
                 - application/json
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/f7da2eca-019e-45ec-93b3-d3614f12f86b
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/6109c19d-4f5d-42f9-8e6a-059c5ed9c885
         method: GET
       response:
         proto: HTTP/1.1
@@ -630,16 +795,16 @@ interactions:
         proto_minor: 1
         transfer_encoding: []
         trailer: {}
-        content_length: 645
+        content_length: 642
         uncompressed: false
-        body: '{"data":{"id":"f7da2eca-019e-45ec-93b3-d3614f12f86b","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":618497000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":618497000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":3,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610341}}}'
+        body: '{"data":{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}}}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 149.876584ms
-    - id: 19
+        duration: 241.32425ms
+    - id: 24
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -665,14 +830,47 @@ interactions:
         trailer: {}
         content_length: -1
         uncompressed: true
-        body: '{"data":[{"id":"8c815bfd-5c06-4e46-b403-8324860c8044","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":571750000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":571750000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":1,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610339}},{"id":"095471dd-f7d2-4da6-9484-850263fe1697","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":577974000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":577974000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":2,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610340}},{"id":"f7da2eca-019e-45ec-93b3-d3614f12f86b","type":"ruleset","attributes":{"created":{"seconds":1759759717,"nanos":618497000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1759759717,"nanos":618497000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1759759716","position":3,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3610341}}]}'
+        body: '{"data":[{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}},{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}}]}'
         headers:
             Content-Type:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 156.547833ms
-    - id: 20
+        duration: 92.066666ms
+    - id: 25
+      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/tags/enrichment
+        method: GET
+      response:
+        proto: HTTP/1.1
+        proto_major: 1
+        proto_minor: 1
+        transfer_encoding: []
+        trailer: {}
+        content_length: -1
+        uncompressed: true
+        body: '{"data":[{"id":"bd07c89e-97cb-46a8-97b7-78834f28a9f6","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":830356000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":830356000},"name":"tf-test-order-third-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":1,"processing_status":"error","rules":[{"name":"third-rule","enabled":true,"query":{"query":"service:third","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623117}},{"id":"6109c19d-4f5d-42f9-8e6a-059c5ed9c885","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":784460000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":784460000},"name":"tf-test-order-first-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":2,"processing_status":"error","rules":[{"name":"first-rule","enabled":true,"query":{"query":"service:first","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623116}},{"id":"d6dd208d-2a47-4175-9ac0-85372ece61d9","type":"ruleset","attributes":{"created":{"seconds":1762796228,"nanos":868120000},"enabled":true,"last_modified_user_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified":{"seconds":1762796228,"nanos":868120000},"name":"tf-test-order-second-tf-TestAccDatadogTagPipelineRulesets_Update-local-1762796227","position":3,"processing_status":"error","rules":[{"name":"second-rule","enabled":true,"query":{"query":"service:second","addition":{"key":"env","value":"test"},"if_not_exists":false,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3623118}}]}'
+        headers:
+            Content-Type:
+                - application/vnd.api+json
+        status: 200 OK
+        code: 200
+        duration: 101.805375ms
+    - id: 26
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -688,7 +886,7 @@ interactions:
         headers:
             Accept:
                 - '*/*'
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/8c815bfd-5c06-4e46-b403-8324860c8044
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/d6dd208d-2a47-4175-9ac0-85372ece61d9
         method: DELETE
       response:
         proto: HTTP/1.1
@@ -702,8 +900,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 55.298834ms
-    - id: 21
+        duration: 58.021542ms
+    - id: 27
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -719,7 +917,7 @@ interactions:
         headers:
             Accept:
                 - '*/*'
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/095471dd-f7d2-4da6-9484-850263fe1697
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/6109c19d-4f5d-42f9-8e6a-059c5ed9c885
         method: DELETE
       response:
         proto: HTTP/1.1
@@ -733,8 +931,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 71.882709ms
-    - id: 22
+        duration: 76.531709ms
+    - id: 28
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -750,7 +948,7 @@ interactions:
         headers:
             Accept:
                 - '*/*'
-        url: https://api.datadoghq.com/api/v2/tags/enrichment/f7da2eca-019e-45ec-93b3-d3614f12f86b
+        url: https://api.datadoghq.com/api/v2/tags/enrichment/bd07c89e-97cb-46a8-97b7-78834f28a9f6
         method: DELETE
       response:
         proto: HTTP/1.1
@@ -764,8 +962,8 @@ interactions:
         headers: {}
         status: 204 No Content
         code: 204
-        duration: 106.156ms
-    - id: 23
+        duration: 96.137916ms
+    - id: 29
       request:
         proto: HTTP/1.1
         proto_major: 1
@@ -797,4 +995,4 @@ interactions:
                 - application/vnd.api+json
         status: 200 OK
         code: 200
-        duration: 103.404334ms
+        duration: 99.466167ms
diff --git a/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccounts.freeze b/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccounts.freeze
new file mode 100644
index 00000000..ada2175a
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccounts.freeze
@@ -0,0 +1 @@
+2023-06-15T16:15:45.123456-04:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccounts.yaml b/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccounts.yaml
new file mode 100644
index 00000000..331f9e18
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccounts.yaml
@@ -0,0 +1,258 @@
+version: 2
+interactions:
+- request:
+    body: |
+      {"data":{"attributes":{"email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com"},"relationships":{"roles":{"data":[]}},"type":"users"}}
+    form: {}
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users
+    method: POST
+    id: 0
+  response:
+    body: |
+      {"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 201 Created
+    code: 201
+    duration: "0ms"
+- request:
+    body: |
+      {"data":{"attributes":{"email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","name":"tf-service-account-tf-testaccdatadoguserdatasource","service_account":true},"relationships":{"roles":{"data":[]}},"type":"users"}}
+    form: {}
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/service_accounts
+    method: POST
+    id: 1
+  response:
+    body: |
+      {"data":{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 201 Created
+    code: 201
+    duration: "0ms"
+- request:
+    body: |
+      {"data":[{"relationships":{"user":{"data":{"id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","type":"users"}}},"type":"user_invitations"}]}
+    form: {}
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/user_invitations
+    method: POST
+    id: 2
+  response:
+    body: |
+      {"data":[{"type":"user_invitations","id":"c3d4e5f6-0bb8-11ee-8a3f-da7ad0900002","attributes":{"uuid":"c3d4e5f6-0bb8-11ee-8a3f-da7ad0900002","login_method":null,"invite_type":"basic_invite","created_at":"2023-06-15T20:15:47.019091+00:00","expires_at":"2023-06-17T20:15:46.933187+00:00"},"relationships":{"user":{"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1"}}}}]}
+    headers:
+      Content-Type:
+      - application/json
+    status: 201 Created
+    code: 201
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users?filter=tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145%40example.com
+    method: GET
+    id: 3
+  response:
+    body: |
+      {"data":[{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}],"meta":{"page":{"total_count":175482,"total_filtered_count":2}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users?filter=tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145%40example.com
+    method: GET
+    id: 4
+  response:
+    body: |
+      {"data":[{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}],"meta":{"page":{"total_count":175482,"total_filtered_count":2}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7
+    method: GET
+    id: 5
+  response:
+    body: |
+      {"data":{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1
+    method: GET
+    id: 6
+  response:
+    body: |
+      {"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users?filter=tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145%40example.com
+    method: GET
+    id: 7
+  response:
+    body: |
+      {"data":[{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}],"meta":{"page":{"total_count":175482,"total_filtered_count":2}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users?filter=tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145%40example.com
+    method: GET
+    id: 8
+  response:
+    body: |
+      {"data":[{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}],"meta":{"page":{"total_count":175482,"total_filtered_count":2}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - '*/*'
+    url: https://api.datadoghq.com/api/v2/users/a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1
+    method: DELETE
+    id: 9
+  response:
+    body: ""
+    headers: {}
+    status: 204 No Content
+    code: 204
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - '*/*'
+    url: https://api.datadoghq.com/api/v2/users/b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7
+    method: DELETE
+    id: 10
+  response:
+    body: ""
+    headers: {}
+    status: 204 No Content
+    code: 204
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1
+    method: GET
+    id: 11
+  response:
+    body: |
+      {"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:16:10.707906+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":true,"allowed_login_methods":[],"status":"Disabled"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7
+    method: GET
+    id: 12
+  response:
+    body: |
+      {"data":{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:16:10.714858+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":true,"allowed_login_methods":[],"status":"Disabled"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1
+    method: GET
+    id: 13
+  response:
+    body: |
+      {"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:16:10.707906+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccounts-local-1686860145@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":true,"allowed_login_methods":[],"status":"Disabled"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+
diff --git a/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccountsMultipleUsersWithError.freeze b/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccountsMultipleUsersWithError.freeze
new file mode 100644
index 00000000..b3f65422
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccountsMultipleUsersWithError.freeze
@@ -0,0 +1 @@
+2025-11-06T11:58:55.415082+01:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccountsMultipleUsersWithError.yaml b/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccountsMultipleUsersWithError.yaml
new file mode 100644
index 00000000..c0a9eaaa
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccountsMultipleUsersWithError.yaml
@@ -0,0 +1,333 @@
+version: 2
+interactions:
+- request:
+    body: |
+      {"data":{"attributes":{"email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com"},"relationships":{"roles":{"data":[]}},"type":"users"}}
+    form: {}
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users
+    method: POST
+    id: 0
+  response:
+    body: |
+      {"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 201 Created
+    code: 201
+    duration: "0ms"
+- request:
+    body: |
+      {"data":{"attributes":{"email":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com"},"relationships":{"roles":{"data":[]}},"type":"users"}}
+    form: {}
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users
+    method: POST
+    id: 1
+  response:
+    body: |
+      {"data":{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":null,"handle":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 201 Created
+    code: 201
+    duration: "0ms"
+- request:
+    body: |
+      {"data":[{"relationships":{"user":{"data":{"id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","type":"users"}}},"type":"user_invitations"}]}
+    form: {}
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/user_invitations
+    method: POST
+    id: 2
+  response:
+    body: |
+      {"data":[{"type":"user_invitations","id":"c3d4e5f6-0bb8-11ee-8a3f-da7ad0900002","attributes":{"uuid":"c3d4e5f6-0bb8-11ee-8a3f-da7ad0900002","login_method":null,"invite_type":"basic_invite","created_at":"2023-06-15T20:15:47.019091+00:00","expires_at":"2023-06-17T20:15:46.933187+00:00"},"relationships":{"user":{"data":{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7"}}}}]}
+    headers:
+      Content-Type:
+      - application/json
+    status: 201 Created
+    code: 201
+    duration: "0ms"
+- request:
+    body: |
+      {"data":[{"relationships":{"user":{"data":{"id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","type":"users"}}},"type":"user_invitations"}]}
+    form: {}
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/user_invitations
+    method: POST
+    id: 3
+  response:
+    body: |
+      {"data":[{"type":"user_invitations","id":"d4e5f6a7-0bb8-11ee-a33e-da7ad0900002","attributes":{"uuid":"d4e5f6a7-0bb8-11ee-a33e-da7ad0900002","login_method":null,"invite_type":"basic_invite","created_at":"2023-06-15T20:15:47.116193+00:00","expires_at":"2023-06-17T20:15:46.927775+00:00"},"relationships":{"user":{"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1"}}}}]}
+    headers:
+      Content-Type:
+      - application/json
+    status: 201 Created
+    code: 201
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users?filter=tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735%40example.com
+    method: GET
+    id: 4
+  response:
+    body: |
+      {"data":[{"type":"users","id":"b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":null,"handle":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}],"meta":{"page":{"total_count":175482,"total_filtered_count":3}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: |
+      {"data":{"attributes":{"email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","name":"tf-service-account-tf-testaccdatadoguserdatasource","service_account":true},"relationships":{"roles":{"data":[]}},"type":"users"}}
+    form: {}
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/service_accounts
+    method: POST
+    id: 1
+  response:
+    body: |
+      {"data":{"type":"users","id":"b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 201 Created
+    code: 201
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users?filter=tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735%40example.com
+    method: GET
+    id: 4
+  response:
+    body: |
+      {"data":[{"type":"users","id":"b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":null,"handle":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}],"meta":{"page":{"total_count":175482,"total_filtered_count":3}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7
+    method: GET
+    id: 6
+  response:
+    body: |
+      {"data":{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":null,"handle":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7
+    method: GET
+    id: 6
+  response:
+    body: |
+      {"data":{"type":"users","id":"b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1
+    method: GET
+    id: 7
+  response:
+    body: |
+      {"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users?filter=tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735%40example.com
+    method: GET
+    id: 8
+  response:
+    body: |
+      {"data":[{"type":"users","id":"b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":null,"handle":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}],"meta":{"page":{"total_count":175482,"total_filtered_count":3}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users?filter=tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735%40example.com
+    method: GET
+    id: 9
+  response:
+    body: |
+      {"data":[{"type":"users","id":"b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":null,"handle":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}],"meta":{"page":{"total_count":175482,"total_filtered_count":3}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - '*/*'
+    url: https://api.datadoghq.com/api/v2/users/a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1
+    method: DELETE
+    id: 10
+  response:
+    body: ""
+    headers: {}
+    status: 204 No Content
+    code: 204
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - '*/*'
+    url: https://api.datadoghq.com/api/v2/users/b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7
+    method: DELETE
+    id: 11
+  response:
+    body: ""
+    headers: {}
+    status: 204 No Content
+    code: 204
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - '*/*'
+    url: https://api.datadoghq.com/api/v2/users/b2c3d4f6-0bb8-11ee-872b-928a47bbfdc7
+    method: DELETE
+    id: 11
+  response:
+    body: ""
+    headers: {}
+    status: 204 No Content
+    code: 204
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1
+    method: GET
+    id: 12
+  response:
+    body: |
+      {"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:16:10.707906+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":true,"allowed_login_methods":[],"status":"Disabled"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7
+    method: GET
+    id: 13
+  response:
+    body: |
+      {"data":{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":null,"handle":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:16:10.714858+00:00","email":"othertf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":true,"allowed_login_methods":[],"status":"Disabled"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1
+    method: GET
+    id: 14
+  response:
+    body: |
+      {"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:16:10.707906+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountsmultipleuserswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":true,"allowed_login_methods":[],"status":"Disabled"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+
diff --git a/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccountsWithError.freeze b/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccountsWithError.freeze
new file mode 100644
index 00000000..b3f65422
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccountsWithError.freeze
@@ -0,0 +1 @@
+2025-11-06T11:58:55.415082+01:00
\ No newline at end of file
diff --git a/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccountsWithError.yaml b/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccountsWithError.yaml
new file mode 100644
index 00000000..44d8b4c6
--- /dev/null
+++ b/datadog/tests/cassettes/TestAccDatadogUserDatasourceWithExcludeServiceAccountsWithError.yaml
@@ -0,0 +1,279 @@
+version: 2
+interactions:
+- request:
+    body: |
+      {"data":{"attributes":{"email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com"},"relationships":{"roles":{"data":[]}},"type":"users"}}
+    form: {}
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users
+    method: POST
+    id: 0
+  response:
+    body: |
+      {"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 201 Created
+    code: 201
+    duration: "0ms"
+- request:
+    body: |
+      {"data":{"attributes":{"email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","name":"tf-service-account-tf-testaccdatadoguserdatasource","service_account":true},"relationships":{"roles":{"data":[]}},"type":"users"}}
+    form: {}
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/service_accounts
+    method: POST
+    id: 1
+  response:
+    body: |
+      {"data":{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 201 Created
+    code: 201
+    duration: "0ms"
+- request:
+    body: |
+      {"data":[{"relationships":{"user":{"data":{"id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","type":"users"}}},"type":"user_invitations"}]}
+    form: {}
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/user_invitations
+    method: POST
+    id: 2
+  response:
+    body: |
+      {"data":[{"type":"user_invitations","id":"c3d4e5f6-0bb8-11ee-8a3f-da7ad0900002","attributes":{"uuid":"c3d4e5f6-0bb8-11ee-8a3f-da7ad0900002","login_method":null,"invite_type":"basic_invite","created_at":"2023-06-15T20:15:47.019091+00:00","expires_at":"2023-06-17T20:15:46.933187+00:00"},"relationships":{"user":{"data":{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7"}}}}]}
+    headers:
+      Content-Type:
+      - application/json
+    status: 201 Created
+    code: 201
+    duration: "0ms"
+- request:
+    body: |
+      {"data":[{"relationships":{"user":{"data":{"id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","type":"users"}}},"type":"user_invitations"}]}
+    form: {}
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/user_invitations
+    method: POST
+    id: 3
+  response:
+    body: |
+      {"data":[{"type":"user_invitations","id":"d4e5f6a7-0bb8-11ee-a33e-da7ad0900002","attributes":{"uuid":"d4e5f6a7-0bb8-11ee-a33e-da7ad0900002","login_method":null,"invite_type":"basic_invite","created_at":"2023-06-15T20:15:47.116193+00:00","expires_at":"2023-06-17T20:15:46.927775+00:00"},"relationships":{"user":{"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1"}}}}]}
+    headers:
+      Content-Type:
+      - application/json
+    status: 201 Created
+    code: 201
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users?filter=tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735%40example.com
+    method: GET
+    id: 3
+  response:
+    body: |
+      {"data":[{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}],"meta":{"page":{"total_count":175482,"total_filtered_count":2}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users?filter=tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735%40example.com
+    method: GET
+    id: 4
+  response:
+    body: |
+      {"data":[{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}],"meta":{"page":{"total_count":175482,"total_filtered_count":2}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7
+    method: GET
+    id: 5
+  response:
+    body: |
+      {"data":{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1
+    method: GET
+    id: 6
+  response:
+    body: |
+      {"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users?filter=tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735%40example.com
+    method: GET
+    id: 7
+  response:
+    body: |
+      {"data":[{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}],"meta":{"page":{"total_count":175482,"total_filtered_count":2}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users?filter=tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735%40example.com
+    method: GET
+    id: 8
+  response:
+    body: |
+      {"data":[{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:15:46.733418+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}},{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:15:46.726355+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}],"meta":{"page":{"total_count":175482,"total_filtered_count":2}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - '*/*'
+    url: https://api.datadoghq.com/api/v2/users/a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1
+    method: DELETE
+    id: 9
+  response:
+    body: ""
+    headers: {}
+    status: 204 No Content
+    code: 204
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - '*/*'
+    url: https://api.datadoghq.com/api/v2/users/b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7
+    method: DELETE
+    id: 10
+  response:
+    body: ""
+    headers: {}
+    status: 204 No Content
+    code: 204
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1
+    method: GET
+    id: 11
+  response:
+    body: |
+      {"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:16:10.707906+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":true,"allowed_login_methods":[],"status":"Disabled"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7
+    method: GET
+    id: 12
+  response:
+    body: |
+      {"data":{"type":"users","id":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","attributes":{"name":"tf-service-account-tf-testaccdatadoguserdatasource","handle":"b2c3d4e5-0bb8-11ee-872b-928a47bbfdc7","created_at":"2023-06-15T20:15:46.725437+00:00","modified_at":"2023-06-15T20:16:10.714858+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/f6f65245d5386d40616c5100481410a9?s=48&d=retro","title":null,"verified":true,"service_account":true,"disabled":true,"allowed_login_methods":[],"status":"Disabled"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+- request:
+    body: ""
+    form: {}
+    headers:
+      Accept:
+      - application/json
+    url: https://api.datadoghq.com/api/v2/users/a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1
+    method: GET
+    id: 13
+  response:
+    body: |
+      {"data":{"type":"users","id":"a1b2c3d4-0bb8-11ee-9e5c-fada1df30af1","attributes":{"name":null,"handle":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","created_at":"2023-06-15T20:15:46.718742+00:00","modified_at":"2023-06-15T20:16:10.707906+00:00","email":"tf-testaccdatadoguserdatasourcewithexcludeserviceaccountswitherror-local-1762426735@example.com","icon":"https://secure.gravatar.com/avatar/6c751c8fee162e213b2336bc467d39d4?s=48&d=retro","title":null,"verified":false,"service_account":false,"disabled":true,"allowed_login_methods":[],"status":"Disabled"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
+    headers:
+      Content-Type:
+      - application/json
+    status: 200 OK
+    code: 200
+    duration: "0ms"
+
diff --git a/datadog/tests/data_source_datadog_metrics_test.go b/datadog/tests/data_source_datadog_metrics_test.go
new file mode 100644
index 00000000..0fa004c0
--- /dev/null
+++ b/datadog/tests/data_source_datadog_metrics_test.go
@@ -0,0 +1,38 @@
+package test
+
+import (
+	"context"
+	"fmt"
+	"testing"
+
+	"github.com/hashicorp/terraform-plugin-testing/helper/resource"
+)
+
+func TestAccDatadogMetricsDatasource(t *testing.T) {
+	t.Parallel()
+	_, _, accProviders := testAccFrameworkMuxProviders(context.Background(), t)
+	query := "foo."
+
+	resource.Test(t, resource.TestCase{
+		PreCheck:                 func() { testAccPreCheck(t) },
+		ProtoV5ProviderFactories: accProviders,
+		Steps: []resource.TestStep{
+			{
+				Config: testAccDatasourceMetricsConfig(query),
+				Check: resource.ComposeTestCheckFunc(
+					resource.TestCheckResourceAttr("data.datadog_metrics.foo", "query", query),
+					resource.TestCheckResourceAttr("data.datadog_metrics.foo", "metrics.0", "foo.bar"),
+					resource.TestCheckResourceAttr("data.datadog_metrics.foo", "metrics.1", "foo.baz"),
+				),
+			},
+		},
+	})
+}
+
+func testAccDatasourceMetricsConfig(query string) string {
+	return fmt.Sprintf(`
+data "datadog_metrics" "foo" {
+	query = "%s"
+}
+`, query)
+}
diff --git a/datadog/tests/data_source_datadog_user_test.go b/datadog/tests/data_source_datadog_user_test.go
index 1565aa97..9a8f6800 100644
--- a/datadog/tests/data_source_datadog_user_test.go
+++ b/datadog/tests/data_source_datadog_user_test.go
@@ -83,6 +83,60 @@ func TestAccDatadogUserDatasourceWithExactMatchError(t *testing.T) {
 	})
 }
 
+func TestAccDatadogUserDatasourceWithExcludeServiceAccounts(t *testing.T) {
+	t.Parallel()
+	ctx, _, accProviders := testAccFrameworkMuxProviders(context.Background(), t)
+	serviceAccountName := ("tf-service-account-" + strings.ToLower(uniqueEntityName(ctx, t)))[:50]
+	email := strings.ToLower(uniqueEntityName(ctx, t)) + "@example.com"
+
+	resource.Test(t, resource.TestCase{
+		PreCheck:                 func() { testAccPreCheck(t) },
+		ProtoV5ProviderFactories: accProviders,
+		Steps: []resource.TestStep{
+			{
+				Config: testAccDatasourceUserWithExcludeServiceAccountsConfig(email, serviceAccountName, "true"),
+				Check:  resource.TestCheckResourceAttr("data.datadog_user.test", "email", email),
+			},
+		},
+	})
+}
+
+func TestAccDatadogUserDatasourceWithExcludeServiceAccountsWithError(t *testing.T) {
+	t.Parallel()
+	ctx, _, accProviders := testAccFrameworkMuxProviders(context.Background(), t)
+	serviceAccountName := ("tf-service-account-" + strings.ToLower(uniqueEntityName(ctx, t)))[:50]
+	email := strings.ToLower(uniqueEntityName(ctx, t)) + "@example.com"
+
+	resource.Test(t, resource.TestCase{
+		PreCheck:                 func() { testAccPreCheck(t) },
+		ProtoV5ProviderFactories: accProviders,
+		Steps: []resource.TestStep{
+			{
+				Config:      testAccDatasourceUserWithExcludeServiceAccountsConfig(email, serviceAccountName, "false"),
+				ExpectError: regexp.MustCompile("your query returned more than one result for filter"),
+			},
+		},
+	})
+}
+
+func TestAccDatadogUserDatasourceWithExcludeServiceAccountsMultipleUsersWithError(t *testing.T) {
+	t.Parallel()
+	ctx, _, accProviders := testAccFrameworkMuxProviders(context.Background(), t)
+	serviceAccountName := ("tf-service-account-" + strings.ToLower(uniqueEntityName(ctx, t)))[:50]
+	email := strings.ToLower(uniqueEntityName(ctx, t)) + "@example.com"
+
+	resource.Test(t, resource.TestCase{
+		PreCheck:                 func() { testAccPreCheck(t) },
+		ProtoV5ProviderFactories: accProviders,
+		Steps: []resource.TestStep{
+			{
+				Config:      testAccDatasourceUserWithExcludeServiceAccountsMultipleUsersConfig(email, serviceAccountName, "true"),
+				ExpectError: regexp.MustCompile("after excluding service accounts, your query returned more than one result for filter"),
+			},
+		},
+	})
+}
+
 func testAccDatasourceUserWithExactMatchConfig(uniq, exactMatch string) string {
 	return fmt.Sprintf(`
 data "datadog_user" "test" {
@@ -99,6 +153,43 @@ resource "datadog_user" "bar" {
 }`, uniq, exactMatch)
 }
 
+func testAccDatasourceUserWithExcludeServiceAccountsConfig(uniq, serviceAccountName, excludeServiceAccounts string) string {
+	return fmt.Sprintf(`
+data "datadog_user" "test" {
+	filter = "%[1]s"
+	exclude_service_accounts = %[3]s
+	depends_on = [ datadog_user.foo, datadog_service_account.bar ]
+}
+
+resource "datadog_user" "foo" {
+	email = "%[1]s"
+}
+resource "datadog_service_account" "bar" {
+	email = "%[1]s"
+	name = "%[2]s"
+}`, uniq, serviceAccountName, excludeServiceAccounts)
+}
+
+func testAccDatasourceUserWithExcludeServiceAccountsMultipleUsersConfig(uniq, serviceAccountName, excludeServiceAccounts string) string {
+	return fmt.Sprintf(`
+data "datadog_user" "test" {
+	filter = "%[1]s"
+	exclude_service_accounts = %[3]s
+	depends_on = [ datadog_user.foo, datadog_service_account.bar ]
+}
+
+resource "datadog_user" "foo" {
+	email = "%[1]s"
+}
+resource "datadog_user" "otherfoo" {
+	email = "other%[1]s"
+}
+resource "datadog_service_account" "bar" {
+	email = "%[1]s"
+	name = "%[2]s"
+}`, uniq, serviceAccountName, excludeServiceAccounts)
+}
+
 func testAccDatasourceUserConfig(uniq string) string {
 	return fmt.Sprintf(`
 data "datadog_user" "test" {
@@ -113,7 +204,7 @@ resource "datadog_user" "foo" {
 }
 
 func testAccDatasourceUserError() string {
-	return `	
+	return `
 	data "datadog_user" "test" {
 		filter = "doesntexist01b0bb82-2000-4113-bb6b-e34b48ef37ff@example.com'"
 	}
diff --git a/datadog/tests/provider_test.go b/datadog/tests/provider_test.go
index f94c49a0..3c176d5c 100644
--- a/datadog/tests/provider_test.go
+++ b/datadog/tests/provider_test.go
@@ -82,6 +82,7 @@ var testFiles2EndpointTags = map[string]string{
 	"tests/data_source_datadog_metric_active_tags_and_aggregations_test":      "metrics",
 	"tests/data_source_datadog_metric_metadata_test":                          "metrics",
 	"tests/data_source_datadog_metric_tags_test":                              "metrics",
+	"tests/data_source_datadog_metrics_test":                                  "metrics",
 	"tests/data_source_datadog_monitor_test":                                  "monitors",
 	"tests/data_source_datadog_monitors_test":                                 "monitors",
 	"tests/data_source_datadog_permissions_test":                              "permissions",
diff --git a/datadog/tests/resource_datadog_agentless_scanning_gcp_scan_options_test.go b/datadog/tests/resource_datadog_agentless_scanning_gcp_scan_options_test.go
index 00017645..145b900f 100644
--- a/datadog/tests/resource_datadog_agentless_scanning_gcp_scan_options_test.go
+++ b/datadog/tests/resource_datadog_agentless_scanning_gcp_scan_options_test.go
@@ -125,25 +125,10 @@ func testAccCheckDatadogAgentlessScanningGcpScanOptionsExists(accProvider *fwpro
 				continue
 			}
 
-			projectID := r.Primary.ID
-
-			// Check if the resource exists by listing all scan options and finding this one
-			gcpScanOptionsListResponse, _, err := apiInstances.GetAgentlessScanningApiV2().ListGcpScanOptions(auth)
+			_, _, err := apiInstances.GetAgentlessScanningApiV2().GetGcpScanOptions(auth, r.Primary.ID)
 			if err != nil {
 				return fmt.Errorf("received an error retrieving agentless scanning gcp scan options: %s", err)
 			}
-
-			found := false
-			for _, scanOption := range gcpScanOptionsListResponse.GetData() {
-				if scanOption.GetId() == projectID {
-					found = true
-					break
-				}
-			}
-
-			if !found {
-				return fmt.Errorf("agentless scanning gcp scan options %s not found", projectID)
-			}
 		}
 		return nil
 	}
@@ -161,18 +146,13 @@ func testAccCheckDatadogAgentlessScanningGcpScanOptionsDestroy(accProvider *fwpr
 
 			projectID := r.Primary.ID
 
-			// Check if the resource still exists by listing all scan options
-			gcpScanOptionsListResponse, _, err := apiInstances.GetAgentlessScanningApiV2().ListGcpScanOptions(auth)
+			_, _, err := apiInstances.GetAgentlessScanningApiV2().GetGcpScanOptions(auth, r.Primary.ID)
 			if err != nil {
 				// If we get an error, assume the resource is gone
 				continue
 			}
 
-			for _, scanOption := range gcpScanOptionsListResponse.GetData() {
-				if scanOption.GetId() == projectID {
-					return fmt.Errorf("agentless scanning gcp scan options %s still exists", projectID)
-				}
-			}
+			return fmt.Errorf("agentless scanning gcp scan options %s still exists", projectID)
 		}
 		return nil
 	}
diff --git a/datadog/tests/resource_datadog_tag_pipeline_rulesets_test.go b/datadog/tests/resource_datadog_tag_pipeline_rulesets_test.go
index 17bea798..fce20425 100644
--- a/datadog/tests/resource_datadog_tag_pipeline_rulesets_test.go
+++ b/datadog/tests/resource_datadog_tag_pipeline_rulesets_test.go
@@ -3,6 +3,7 @@ package test
 import (
 	"context"
 	"fmt"
+	"regexp"
 	"testing"
 
 	"github.com/DataDog/datadog-api-client-go/v2/api/datadogV2"
@@ -127,6 +128,209 @@ func TestAccDatadogTagPipelineRulesets_SingleRuleset(t *testing.T) {
 	})
 }
 
+func TestAccDatadogTagPipelineRulesets_OverrideTrue(t *testing.T) {
+	// Do not run in parallel - this resource manages global ruleset order
+	ctx, providers, accProviders := testAccFrameworkMuxProviders(context.Background(), t)
+	uniq := uniqueEntityName(ctx, t)
+
+	resource.Test(t, resource.TestCase{
+		PreCheck: func() {
+			testAccPreCheck(t)
+			testAccCleanupOrphanedTagPipelineRulesets(t, providers.frameworkProvider)
+		},
+		ProtoV5ProviderFactories: accProviders,
+		CheckDestroy:             testAccCheckDatadogTagPipelineRulesetsDestroy(ctx, providers.frameworkProvider),
+		Steps: []resource.TestStep{
+			{
+				Config: testAccCheckDatadogTagPipelineRulesetsConfigWithOverride(uniq),
+				Check: resource.ComposeTestCheckFunc(
+					testAccCheckDatadogTagPipelineRulesetsExists("datadog_tag_pipeline_rulesets.foo"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "id", "order"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.#", "3"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "override_ui_defined_resources", "true"),
+					resource.TestCheckResourceAttrSet("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.0"),
+					resource.TestCheckResourceAttrSet("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.1"),
+					resource.TestCheckResourceAttrSet("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.2"),
+				),
+			},
+		},
+	})
+}
+
+func TestAccDatadogTagPipelineRulesets_OverrideTrueDeletesUnmanaged(t *testing.T) {
+	// Do not run in parallel - this resource manages global ruleset order
+	ctx, providers, accProviders := testAccFrameworkMuxProviders(context.Background(), t)
+	uniq := uniqueEntityName(ctx, t)
+
+	resource.Test(t, resource.TestCase{
+		PreCheck: func() {
+			testAccPreCheck(t)
+			// Don't cleanup - we want to create unmanaged rulesets first
+		},
+		ProtoV5ProviderFactories: accProviders,
+		CheckDestroy:             testAccCheckDatadogTagPipelineRulesetsDestroy(ctx, providers.frameworkProvider),
+		Steps: []resource.TestStep{
+			// First step: create unmanaged rulesets via Terraform resources (without the order resource)
+			{
+				Config: testAccCheckDatadogTagPipelineRulesetsConfigUnmanagedRulesets(uniq),
+				Check: resource.ComposeTestCheckFunc(
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_ruleset.unmanaged_first", "name", fmt.Sprintf("tf-test-unmanaged-first-%s", uniq)),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_ruleset.unmanaged_second", "name", fmt.Sprintf("tf-test-unmanaged-second-%s", uniq)),
+				),
+			},
+			// Second step: add the order resource with override=true, which should delete unmanaged rulesets
+			{
+				Config: testAccCheckDatadogTagPipelineRulesetsConfigWithOverrideAndUnmanaged(uniq),
+				Check: resource.ComposeTestCheckFunc(
+					testAccCheckDatadogTagPipelineRulesetsExists("datadog_tag_pipeline_rulesets.foo"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "id", "order"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.#", "3"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "override_ui_defined_resources", "true"),
+					resource.TestCheckResourceAttrSet("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.0"),
+					resource.TestCheckResourceAttrSet("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.1"),
+					resource.TestCheckResourceAttrSet("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.2"),
+					testAccCheckUnmanagedRulesetsDeleted(providers.frameworkProvider, uniq),
+				),
+			},
+		},
+	})
+}
+
+func TestAccDatadogTagPipelineRulesets_OverrideFalseNoUnmanaged(t *testing.T) {
+	// Do not run in parallel - this resource manages global ruleset order
+	ctx, providers, accProviders := testAccFrameworkMuxProviders(context.Background(), t)
+	uniq := uniqueEntityName(ctx, t)
+
+	resource.Test(t, resource.TestCase{
+		PreCheck: func() {
+			testAccPreCheck(t)
+			testAccCleanupOrphanedTagPipelineRulesets(t, providers.frameworkProvider)
+		},
+		ProtoV5ProviderFactories: accProviders,
+		CheckDestroy:             testAccCheckDatadogTagPipelineRulesetsDestroy(ctx, providers.frameworkProvider),
+		Steps: []resource.TestStep{
+			{
+				Config: testAccCheckDatadogTagPipelineRulesetsConfigOverrideFalse(uniq),
+				Check: resource.ComposeTestCheckFunc(
+					testAccCheckDatadogTagPipelineRulesetsExists("datadog_tag_pipeline_rulesets.foo"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "id", "order"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.#", "3"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "override_ui_defined_resources", "false"),
+					resource.TestCheckResourceAttrSet("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.0"),
+					resource.TestCheckResourceAttrSet("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.1"),
+					resource.TestCheckResourceAttrSet("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.2"),
+				),
+			},
+		},
+	})
+}
+
+func TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedInMiddle(t *testing.T) {
+	// Do not run in parallel - this resource manages global ruleset order
+	ctx, providers, accProviders := testAccFrameworkMuxProviders(context.Background(), t)
+	uniq := uniqueEntityName(ctx, t)
+
+	resource.Test(t, resource.TestCase{
+		PreCheck: func() {
+			testAccPreCheck(t)
+			// Don't cleanup - we want to create unmanaged rulesets first
+		},
+		ProtoV5ProviderFactories: accProviders,
+		CheckDestroy:             testAccCheckDatadogTagPipelineRulesetsDestroy(ctx, providers.frameworkProvider),
+		Steps: []resource.TestStep{
+			// First step: create unmanaged rulesets
+			{
+				Config: testAccCheckDatadogTagPipelineRulesetsConfigUnmanagedRulesets(uniq),
+				Check: resource.ComposeTestCheckFunc(
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_ruleset.unmanaged_first", "name", fmt.Sprintf("tf-test-unmanaged-first-%s", uniq)),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_ruleset.unmanaged_second", "name", fmt.Sprintf("tf-test-unmanaged-second-%s", uniq)),
+				),
+			},
+			// Second step: add managed rulesets with override=false - should ERROR due to unmanaged in middle
+			{
+				Config:      testAccCheckDatadogTagPipelineRulesetsConfigOverrideFalseWithUnmanagedMiddle(uniq),
+				ExpectError: regexp.MustCompile("Unmanaged rulesets detected in the middle of order"),
+			},
+		},
+	})
+}
+
+func TestAccDatadogTagPipelineRulesets_OverrideFalseUnmanagedAtEnd(t *testing.T) {
+	// Do not run in parallel - this resource manages global ruleset order
+	ctx, providers, accProviders := testAccFrameworkMuxProviders(context.Background(), t)
+	uniq := uniqueEntityName(ctx, t)
+
+	resource.Test(t, resource.TestCase{
+		PreCheck: func() {
+			testAccPreCheck(t)
+			// Don't cleanup - we want to create unmanaged rulesets first
+		},
+		ProtoV5ProviderFactories: accProviders,
+		CheckDestroy:             testAccCheckDatadogTagPipelineRulesetsDestroy(ctx, providers.frameworkProvider),
+		Steps: []resource.TestStep{
+			// First step: create managed rulesets first to establish order
+			{
+				Config: testAccCheckDatadogTagPipelineRulesetsConfigOverrideFalse(uniq),
+				Check: resource.ComposeTestCheckFunc(
+					testAccCheckDatadogTagPipelineRulesetsExists("datadog_tag_pipeline_rulesets.foo"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.#", "3"),
+				),
+			},
+			// Second step: add unmanaged rulesets at the end (they will be positioned after managed ones)
+			{
+				Config: testAccCheckDatadogTagPipelineRulesetsConfigOverrideFalseWithUnmanagedAtEnd(uniq),
+				Check: resource.ComposeTestCheckFunc(
+					testAccCheckDatadogTagPipelineRulesetsExists("datadog_tag_pipeline_rulesets.foo"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "id", "order"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "ruleset_ids.#", "3"),
+					resource.TestCheckResourceAttr("datadog_tag_pipeline_rulesets.foo", "override_ui_defined_resources", "false"),
+					// Verify unmanaged rulesets exist but are not deleted (should show warning, not error)
+					testAccCheckUnmanagedRulesetsExist(providers.frameworkProvider, uniq),
+				),
+			},
+		},
+	})
+}
+
+// testAccCheckUnmanagedRulesetsDeleted verifies that unmanaged rulesets were deleted
+func testAccCheckUnmanagedRulesetsDeleted(frameworkProvider *fwprovider.FrameworkProvider, uniq string) resource.TestCheckFunc {
+	return func(s *terraform.State) error {
+		apiInstances := frameworkProvider.DatadogApiInstances
+		auth := frameworkProvider.Auth
+		api := apiInstances.GetCloudCostManagementApiV2()
+
+		// List all current rulesets
+		resp, _, err := api.ListTagPipelinesRulesets(auth)
+		if err != nil {
+			return fmt.Errorf("failed to list rulesets: %v", err)
+		}
+
+		var rulesets []datadogV2.RulesetRespData
+		if respData, ok := resp.GetDataOk(); ok {
+			rulesets = *respData
+		}
+
+		// Check that no unmanaged rulesets exist
+		unmanagedNames := []string{
+			"tf-test-unmanaged-first-" + uniq,
+			"tf-test-unmanaged-second-" + uniq,
+		}
+
+		for _, ruleset := range rulesets {
+			if attrs, ok := ruleset.GetAttributesOk(); ok {
+				name := attrs.GetName()
+				for _, unmanagedName := range unmanagedNames {
+					if name == unmanagedName {
+						return fmt.Errorf("unmanaged ruleset %s was not deleted", unmanagedName)
+					}
+				}
+			}
+		}
+
+		return nil
+	}
+}
+
 // testAccCleanupOrphanedTagPipelineRulesets removes ALL existing rulesets before running tests
 // This ensures tests start with a clean slate, as the order resource requires all rulesets to be managed
 func testAccCleanupOrphanedTagPipelineRulesets(t *testing.T, frameworkProvider *fwprovider.FrameworkProvider) {
@@ -582,3 +786,532 @@ resource "datadog_tag_pipeline_rulesets" "foo" {
   ]
 }`, uniq)
 }
+
+func testAccCheckDatadogTagPipelineRulesetsConfigWithOverride(uniq string) string {
+	return fmt.Sprintf(`
+resource "datadog_tag_pipeline_ruleset" "first" {
+  name    = "tf-test-override-first-%s"
+  enabled = true
+
+  rules {
+    name    = "first-rule"
+    enabled = true
+    
+    query {
+      query = "service:first"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "second" {
+  name    = "tf-test-override-second-%s"
+  enabled = true
+
+  rules {
+    name    = "second-rule"
+    enabled = true
+    
+    query {
+      query = "service:second"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "third" {
+  name    = "tf-test-override-third-%s"
+  enabled = true
+
+  rules {
+    name    = "third-rule"
+    enabled = true
+    
+    query {
+      query = "service:third"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_rulesets" "foo" {
+  override_ui_defined_resources = true
+  ruleset_ids = [
+    datadog_tag_pipeline_ruleset.first.id,
+    datadog_tag_pipeline_ruleset.second.id,
+    datadog_tag_pipeline_ruleset.third.id
+  ]
+}`, uniq, uniq, uniq)
+}
+
+func testAccCheckDatadogTagPipelineRulesetsConfigUnmanagedRulesets(uniq string) string {
+	return fmt.Sprintf(`
+resource "datadog_tag_pipeline_ruleset" "unmanaged_first" {
+  name    = "tf-test-unmanaged-first-%s"
+  enabled = true
+
+  rules {
+    name    = "unmanaged-first-rule"
+    enabled = true
+    
+    query {
+      query = "service:unmanaged-first"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "unmanaged-test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "unmanaged_second" {
+  name    = "tf-test-unmanaged-second-%s"
+  enabled = true
+
+  rules {
+    name    = "unmanaged-second-rule"
+    enabled = true
+    
+    query {
+      query = "service:unmanaged-second"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "unmanaged-test"
+      }
+    }
+  }
+}`, uniq, uniq)
+}
+
+func testAccCheckDatadogTagPipelineRulesetsConfigWithOverrideAndUnmanaged(uniq string) string {
+	return fmt.Sprintf(`
+resource "datadog_tag_pipeline_ruleset" "first" {
+  name    = "tf-test-override-first-%s"
+  enabled = true
+
+  rules {
+    name    = "first-rule"
+    enabled = true
+    
+    query {
+      query = "service:first"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "second" {
+  name    = "tf-test-override-second-%s"
+  enabled = true
+
+  rules {
+    name    = "second-rule"
+    enabled = true
+    
+    query {
+      query = "service:second"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "third" {
+  name    = "tf-test-override-third-%s"
+  enabled = true
+
+  rules {
+    name    = "third-rule"
+    enabled = true
+    
+    query {
+      query = "service:third"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_rulesets" "foo" {
+  override_ui_defined_resources = true
+  ruleset_ids = [
+    datadog_tag_pipeline_ruleset.first.id,
+    datadog_tag_pipeline_ruleset.second.id,
+    datadog_tag_pipeline_ruleset.third.id
+  ]
+}`, uniq, uniq, uniq)
+}
+
+// testAccCheckUnmanagedRulesetsExist verifies that unmanaged rulesets still exist (not deleted)
+func testAccCheckUnmanagedRulesetsExist(frameworkProvider *fwprovider.FrameworkProvider, uniq string) resource.TestCheckFunc {
+	return func(s *terraform.State) error {
+		apiInstances := frameworkProvider.DatadogApiInstances
+		auth := frameworkProvider.Auth
+		api := apiInstances.GetCloudCostManagementApiV2()
+
+		// List all current rulesets
+		resp, _, err := api.ListTagPipelinesRulesets(auth)
+		if err != nil {
+			return fmt.Errorf("failed to list rulesets: %v", err)
+		}
+
+		var rulesets []datadogV2.RulesetRespData
+		if respData, ok := resp.GetDataOk(); ok {
+			rulesets = *respData
+		}
+
+		// Check that unmanaged rulesets still exist
+		unmanagedNames := []string{
+			"tf-test-unmanaged-first-" + uniq,
+			"tf-test-unmanaged-second-" + uniq,
+		}
+
+		foundCount := 0
+		for _, ruleset := range rulesets {
+			if attrs, ok := ruleset.GetAttributesOk(); ok {
+				name := attrs.GetName()
+				for _, unmanagedName := range unmanagedNames {
+					if name == unmanagedName {
+						foundCount++
+					}
+				}
+			}
+		}
+
+		if foundCount != len(unmanagedNames) {
+			return fmt.Errorf("expected %d unmanaged rulesets to exist, but found %d", len(unmanagedNames), foundCount)
+		}
+
+		return nil
+	}
+}
+
+func testAccCheckDatadogTagPipelineRulesetsConfigOverrideFalse(uniq string) string {
+	return fmt.Sprintf(`
+resource "datadog_tag_pipeline_ruleset" "first" {
+  name    = "tf-test-false-first-%s"
+  enabled = true
+
+  rules {
+    name    = "first-rule"
+    enabled = true
+    
+    query {
+      query = "service:first"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "second" {
+  name    = "tf-test-false-second-%s"
+  enabled = true
+
+  rules {
+    name    = "second-rule"
+    enabled = true
+    
+    query {
+      query = "service:second"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "third" {
+  name    = "tf-test-false-third-%s"
+  enabled = true
+
+  rules {
+    name    = "third-rule"
+    enabled = true
+    
+    query {
+      query = "service:third"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_rulesets" "foo" {
+  override_ui_defined_resources = false
+  ruleset_ids = [
+    datadog_tag_pipeline_ruleset.first.id,
+    datadog_tag_pipeline_ruleset.second.id,
+    datadog_tag_pipeline_ruleset.third.id
+  ]
+}`, uniq, uniq, uniq)
+}
+
+func testAccCheckDatadogTagPipelineRulesetsConfigOverrideFalseWithUnmanagedMiddle(uniq string) string {
+	return fmt.Sprintf(`
+resource "datadog_tag_pipeline_ruleset" "first" {
+  name    = "tf-test-false-first-%s"
+  enabled = true
+
+  rules {
+    name    = "first-rule"
+    enabled = true
+    
+    query {
+      query = "service:first"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "second" {
+  name    = "tf-test-false-second-%s"
+  enabled = true
+
+  rules {
+    name    = "second-rule"
+    enabled = true
+    
+    query {
+      query = "service:second"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "third" {
+  name    = "tf-test-false-third-%s"
+  enabled = true
+
+  rules {
+    name    = "third-rule"
+    enabled = true
+    
+    query {
+      query = "service:third"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+# Keep the unmanaged rulesets from the previous step (they will be positioned in the middle)
+resource "datadog_tag_pipeline_ruleset" "unmanaged_first" {
+  name    = "tf-test-unmanaged-first-%s"
+  enabled = true
+
+  rules {
+    name    = "unmanaged-first-rule"
+    enabled = true
+    
+    query {
+      query = "service:unmanaged-first"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "unmanaged-test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "unmanaged_second" {
+  name    = "tf-test-unmanaged-second-%s"
+  enabled = true
+
+  rules {
+    name    = "unmanaged-second-rule"
+    enabled = true
+    
+    query {
+      query = "service:unmanaged-second"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "unmanaged-test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_rulesets" "foo" {
+  override_ui_defined_resources = false
+  ruleset_ids = [
+    datadog_tag_pipeline_ruleset.first.id,
+    datadog_tag_pipeline_ruleset.second.id,
+    datadog_tag_pipeline_ruleset.third.id
+  ]
+}`, uniq, uniq, uniq, uniq, uniq)
+}
+
+func testAccCheckDatadogTagPipelineRulesetsConfigOverrideFalseWithUnmanagedAtEnd(uniq string) string {
+	return fmt.Sprintf(`
+resource "datadog_tag_pipeline_ruleset" "first" {
+  name    = "tf-test-false-first-%s"
+  enabled = true
+
+  rules {
+    name    = "first-rule"
+    enabled = true
+    
+    query {
+      query = "service:first"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "second" {
+  name    = "tf-test-false-second-%s"
+  enabled = true
+
+  rules {
+    name    = "second-rule"
+    enabled = true
+    
+    query {
+      query = "service:second"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "third" {
+  name    = "tf-test-false-third-%s"
+  enabled = true
+
+  rules {
+    name    = "third-rule"
+    enabled = true
+    
+    query {
+      query = "service:third"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "test"
+      }
+    }
+  }
+}
+
+# Add unmanaged rulesets that will be positioned at the end
+resource "datadog_tag_pipeline_ruleset" "unmanaged_first" {
+  name    = "tf-test-unmanaged-first-%s"
+  enabled = true
+
+  rules {
+    name    = "unmanaged-first-rule"
+    enabled = true
+    
+    query {
+      query = "service:unmanaged-first"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "unmanaged-test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_ruleset" "unmanaged_second" {
+  name    = "tf-test-unmanaged-second-%s"
+  enabled = true
+
+  rules {
+    name    = "unmanaged-second-rule"
+    enabled = true
+    
+    query {
+      query = "service:unmanaged-second"
+      if_not_exists = false
+      
+      addition {
+        key   = "env"
+        value = "unmanaged-test"
+      }
+    }
+  }
+}
+
+resource "datadog_tag_pipeline_rulesets" "foo" {
+  override_ui_defined_resources = false
+  ruleset_ids = [
+    datadog_tag_pipeline_ruleset.first.id,
+    datadog_tag_pipeline_ruleset.second.id,
+    datadog_tag_pipeline_ruleset.third.id
+  ]
+}`, uniq, uniq, uniq, uniq, uniq)
+}