diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index a5b4b0dea6..4e74378bbd 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -143,6 +143,12 @@ func syntheticsTestRequest() *schema.Resource { Type: schema.TypeString, Optional: true, }, + "body_type": { + Description: "Type of the request body.", + Type: schema.TypeString, + Optional: true, + ValidateDiagFunc: validators.ValidateEnumValue(datadogV1.NewSyntheticsTestRequestBodyTypeFromValue), + }, "timeout": { Description: "Timeout in seconds for the test. Defaults to `60`.", Type: schema.TypeInt, @@ -1277,6 +1283,9 @@ func buildSyntheticsAPITestStruct(d *schema.ResourceData) *datadogV1.SyntheticsA if attr, ok := k.GetOkWith("body"); ok { request.SetBody(attr.(string)) } + if attr, ok := k.GetOkWith("body_type"); ok { + request.SetBodyType(datadogV1.SyntheticsTestRequestBodyType(attr.(string))) + } if attr, ok := k.GetOkWith("timeout"); ok { request.SetTimeout(float64(attr.(int))) } @@ -1374,6 +1383,9 @@ func buildSyntheticsAPITestStruct(d *schema.ResourceData) *datadogV1.SyntheticsA request.SetMethod(datadogV1.HTTPMethod(requestMap["method"].(string))) request.SetUrl(requestMap["url"].(string)) request.SetBody(requestMap["body"].(string)) + if v, ok := requestMap["body_type"].(string); ok && v != "" { + request.SetBodyType(datadogV1.SyntheticsTestRequestBodyType(v)) + } request.SetTimeout(float64(requestMap["timeout"].(int))) request.SetAllowInsecure(requestMap["allow_insecure"].(bool)) request.SetFollowRedirects(requestMap["follow_redirects"].(bool)) @@ -1758,6 +1770,9 @@ func buildSyntheticsBrowserTestStruct(d *schema.ResourceData) *datadogV1.Synthet if attr, ok := k.GetOkWith("body"); ok { request.SetBody(attr.(string)) } + if attr, ok := k.GetOkWith("body_type"); ok { + request.SetBodyType(datadogV1.SyntheticsTestRequestBodyType(attr.(string))) + } if attr, ok := k.GetOkWith("timeout"); ok { request.SetTimeout(float64(attr.(int))) } @@ -2111,6 +2126,9 @@ func buildLocalRequest(request datadogV1.SyntheticsTestRequest) map[string]inter if request.HasBody() { localRequest["body"] = request.GetBody() } + if request.HasBodyType() { + localRequest["body_type"] = request.GetBodyType() + } if request.HasMethod() { localRequest["method"] = convertToString(request.GetMethod()) } diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze index 18bdf9f7e5..40f9854086 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze @@ -1 +1 @@ -2022-09-06T21:35:48.291253+02:00 \ No newline at end of file +2022-11-10T13:06:26.139859-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml index e0196d9537..f26cfbdad4 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml @@ -1,9 +1,63 @@ --- version: 1 interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: + body: | + {"data":{"type":"roles","id":"654c5720-6122-11ed-bff5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","created_at":"2022-11-10T18:06:27.463266+00:00","modified_at":"2022-11-10T18:06:27.555637+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/654c5720-6122-11ed-bff5-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"654c5720-6122-11ed-bff5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","created_at":"2022-11-10T18:06:27.463266+00:00","modified_at":"2022-11-10T18:06:27.555637+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586-monitor","monitor_priority":5,"restricted_roles":["654c5720-6122-11ed-bff5-da7ad0900002"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"q79-962-ef5","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","monitor_id":102669074,"type":"api","created_at":"2022-11-10T18:06:27.896359+00:00","modified_at":"2022-11-10T18:06:27.896359+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["654c5720-6122-11ed-bff5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586-monitor","tick_every":60,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/q79-962-ef5 + method: GET + response: + body: | + {"status":"paused","public_id":"q79-962-ef5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","monitor_id":102669074,"type":"api","created_at":"2022-11-10T18:06:27.896359+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.896359+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["654c5720-6122-11ed-bff5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/q79-962-ef5 method: GET response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"q79-962-ef5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","monitor_id":102669074,"type":"api","created_at":"2022-11-10T18:06:27.896359+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.896359+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["654c5720-6122-11ed-bff5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/4eu-idk-4gn + url: https://api.datadoghq.com/api/v2/roles/654c5720-6122-11ed-bff5-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"654c5720-6122-11ed-bff5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","created_at":"2022-11-10T18:06:27.463266+00:00","modified_at":"2022-11-10T18:06:27.555637+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/q79-962-ef5 method: GET response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"q79-962-ef5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","monitor_id":102669074,"type":"api","created_at":"2022-11-10T18:06:27.896359+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.896359+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["654c5720-6122-11ed-bff5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/q79-962-ef5 method: GET response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"q79-962-ef5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","monitor_id":102669074,"type":"api","created_at":"2022-11-10T18:06:27.896359+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.896359+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["654c5720-6122-11ed-bff5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -91,7 +162,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["4eu-idk-4gn"]} + {"public_ids":["q79-962-ef5"]} form: {} headers: Accept: @@ -101,24 +172,56 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:35:57.521320+00:00","public_id":"4eu-idk-4gn"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-10T18:06:29.362059+00:00","public_id":"q79-962-ef5"}]} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/654c5720-6122-11ed-bff5-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" - request: body: "" form: {} headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/654c5720-6122-11ed-bff5-da7ad0900002 method: GET response: - body: | - {"errors":["Synthetics test not found"]} + body: '{"message": "The resource could not be found.

\n\n\n", "code": "404 Not Found", "title": "Not Found"}' + headers: + Content-Type: + - application/json + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/q79-962-ef5 + method: GET + response: + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze index 83b8a3ffce..335ed6d92d 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-11-08T15:54:37.715516+01:00 \ No newline at end of file +2022-11-10T13:06:26.139819-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml index fe9e4f89a2..7f76c3fcff 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"$.mykey","operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}"},"type":"body"},{"operator":"validatesXPath","target":{"operator":"contains","targetValue":"12","xPath":"something"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","type":"web","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667919277","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"$.mykey","operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}"},"type":"body"},{"operator":"validatesXPath","target":{"operator":"contains","targetValue":"12","xPath":"something"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","type":"web","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1668103586","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"9du-4ii-4mi","tags":["foo:bar","baz"],"org_id":569509,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667919277","monitor_id":102363313,"type":"api","created_at":"2022-11-08T14:54:39.615149+00:00","modified_at":"2022-11-08T14:54:39.615149+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"bws-qba-g89","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1668103586","monitor_id":102669072,"type":"api","created_at":"2022-11-10T18:06:27.346090+00:00","modified_at":"2022-11-10T18:06:27.346090+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9du-4ii-4mi + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/bws-qba-g89 method: GET response: body: | - {"status":"paused","public_id":"9du-4ii-4mi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667919277","monitor_id":102363313,"type":"api","created_at":"2022-11-08T14:54:39.615149+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:54:39.615149+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"bws-qba-g89","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1668103586","monitor_id":102669072,"type":"api","created_at":"2022-11-10T18:06:27.346090+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.346090+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/9du-4ii-4mi + url: https://api.datadoghq.com/api/v1/synthetics/tests/bws-qba-g89 method: GET response: body: | - {"status":"paused","public_id":"9du-4ii-4mi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667919277","monitor_id":102363313,"type":"api","created_at":"2022-11-08T14:54:39.615149+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:54:39.615149+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"bws-qba-g89","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1668103586","monitor_id":102669072,"type":"api","created_at":"2022-11-10T18:06:27.346090+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.346090+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/9du-4ii-4mi + url: https://api.datadoghq.com/api/v1/synthetics/tests/bws-qba-g89 method: GET response: body: | - {"status":"paused","public_id":"9du-4ii-4mi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667919277","monitor_id":102363313,"type":"api","created_at":"2022-11-08T14:54:39.615149+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:54:39.615149+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"bws-qba-g89","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1668103586","monitor_id":102669072,"type":"api","created_at":"2022-11-10T18:06:27.346090+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.346090+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9du-4ii-4mi + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/bws-qba-g89 method: GET response: body: | - {"status":"paused","public_id":"9du-4ii-4mi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667919277","monitor_id":102363313,"type":"api","created_at":"2022-11-08T14:54:39.615149+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:54:39.615149+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"bws-qba-g89","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1668103586","monitor_id":102669072,"type":"api","created_at":"2022-11-10T18:06:27.346090+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.346090+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -91,7 +91,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["9du-4ii-4mi"]} + {"public_ids":["bws-qba-g89"]} form: {} headers: Accept: @@ -102,7 +102,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-08T14:54:41.307267+00:00","public_id":"9du-4ii-4mi"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:06:28.705496+00:00","public_id":"bws-qba-g89"}]} headers: Content-Type: - application/json @@ -115,7 +115,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/9du-4ii-4mi + url: https://api.datadoghq.com/api/v1/synthetics/tests/bws-qba-g89 method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze index d6980d67b1..4c1245c806 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze @@ -1 +1 @@ -2022-09-06T21:35:30.248736+02:00 \ No newline at end of file +2022-11-10T13:06:09.724039-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml index d6b59e441b..ef96325997 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml @@ -1,9 +1,63 @@ --- version: 1 interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: + body: | + {"data":{"type":"roles","id":"5b8c123e-6122-11ed-b6d5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","created_at":"2022-11-10T18:06:11.103557+00:00","modified_at":"2022-11-10T18:06:11.208360+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/5b8c123e-6122-11ed-b6d5-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"5b8c123e-6122-11ed-b6d5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","created_at":"2022-11-10T18:06:11.103557+00:00","modified_at":"2022-11-10T18:06:11.208360+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","monitor_priority":5,"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +68,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +81,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/uzh-59g-yvt method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/uzh-59g-yvt method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v2/roles/5b8c123e-6122-11ed-b6d5-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"5b8c123e-6122-11ed-b6d5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","created_at":"2022-11-10T18:06:11.103557+00:00","modified_at":"2022-11-10T18:06:11.208360+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -78,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/uzh-59g-yvt method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/uzh-59g-yvt method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -112,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v2/roles/5b8c123e-6122-11ed-b6d5-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"5b8c123e-6122-11ed-b6d5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","created_at":"2022-11-10T18:06:11.103557+00:00","modified_at":"2022-11-10T18:06:11.208360+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -124,18 +178,69 @@ interactions: code: 200 duration: "" - request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/uzh-59g-yvt + method: GET + response: body: | - {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","options":{"ci":{"executionRule":"non_blocking"},"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" form: {} headers: Accept: - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/uzh-59g-yvt + method: GET + response: + body: | + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} + headers: Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/5b8c123e-6122-11ed-b6d5-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" +- request: + body: | + {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-updated","options":{"ci":{"executionRule":"non_blocking"},"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/uzh-59g-yvt method: PUT response: - body: '{"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10}}' + body: | + {"status":"live","public_id":"uzh-59g-yvt","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-updated","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","modified_at":"2022-11-10T18:06:13.834308+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -148,11 +253,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/uzh-59g-yvt method: GET response: body: | - {"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"uzh-59g-yvt","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-updated","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:13.834308+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -165,11 +270,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/uzh-59g-yvt method: GET response: body: | - {"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"uzh-59g-yvt","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-updated","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:13.834308+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -182,11 +287,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/uzh-59g-yvt method: GET response: body: | - {"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"uzh-59g-yvt","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-updated","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:13.834308+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -195,7 +300,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["znr-6ih-3a5"]} + {"public_ids":["uzh-59g-yvt"]} form: {} headers: Accept: @@ -205,7 +310,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:35:44.065152+00:00","public_id":"znr-6ih-3a5"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-10T18:06:15.480128+00:00","public_id":"uzh-59g-yvt"}]} headers: Content-Type: - application/json @@ -218,11 +324,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/uzh-59g-yvt method: GET response: - body: | - {"errors":["Synthetics test not found"]} + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze index 1ddc4b6433..b967cc66c7 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-11-08T15:55:05.545535+01:00 \ No newline at end of file +2022-11-10T13:06:09.72404-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml index b3d8d40118..1956d5cf25 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"$.mykey","operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}"},"type":"body"},{"operator":"validatesXPath","target":{"operator":"contains","targetValue":"12","xPath":"something"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","type":"web","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"$.mykey","operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}"},"type":"body"},{"operator":"validatesXPath","target":{"operator":"contains","targetValue":"12","xPath":"something"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","type":"web","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"org_id":569509,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/m2d-6sc-dkm method: GET response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/m2d-6sc-dkm method: GET response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/m2d-6sc-dkm method: GET response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/m2d-6sc-dkm method: GET response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/m2d-6sc-dkm method: GET response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -112,11 +112,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/m2d-6sc-dkm method: GET response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -125,18 +125,18 @@ interactions: duration: "" - request: body: | - {"config":{"assertions":[{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[],"request":{"certificate":{"cert":{"content":"content-certificate-updated","filename":"Provided in Terraform config"},"key":{"content":"content-key-updated","filename":"key-updated"}},"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305updated","options":{"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} + {"config":{"assertions":[{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[],"request":{"certificate":{"cert":{"content":"content-certificate-updated","filename":"Provided in Terraform config"},"key":{"content":"content-key-updated","filename":"key-updated"}},"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569updated","options":{"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/m2d-6sc-dkm method: PUT response: body: | - {"status":"live","public_id":"6cq-7um-yby","tags":["foo:bar","foo","env:test"],"org_id":569509,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305updated","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","modified_at":"2022-11-08T14:55:09.657692+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} + {"status":"live","public_id":"m2d-6sc-dkm","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569updated","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","modified_at":"2022-11-10T18:06:13.111770+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} headers: Content-Type: - application/json @@ -149,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/m2d-6sc-dkm method: GET response: body: | - {"status":"live","public_id":"6cq-7um-yby","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305updated","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:09.657692+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} + {"status":"live","public_id":"m2d-6sc-dkm","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569updated","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:13.111770+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} headers: Content-Type: - application/json @@ -166,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/m2d-6sc-dkm method: GET response: body: | - {"status":"live","public_id":"6cq-7um-yby","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305updated","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:09.657692+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} + {"status":"live","public_id":"m2d-6sc-dkm","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569updated","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:13.111770+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} headers: Content-Type: - application/json @@ -183,11 +183,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/m2d-6sc-dkm method: GET response: body: | - {"status":"live","public_id":"6cq-7um-yby","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305updated","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:09.657692+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} + {"status":"live","public_id":"m2d-6sc-dkm","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569updated","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:13.111770+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} headers: Content-Type: - application/json @@ -196,7 +196,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["6cq-7um-yby"]} + {"public_ids":["m2d-6sc-dkm"]} form: {} headers: Accept: @@ -207,7 +207,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-08T14:55:11.405208+00:00","public_id":"6cq-7um-yby"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:06:17.139421+00:00","public_id":"m2d-6sc-dkm"}]} headers: Content-Type: - application/json @@ -220,7 +220,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/m2d-6sc-dkm method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze index d862ae23bf..808f60a6df 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze @@ -1 +1 @@ -2022-09-06T21:36:18.248855+02:00 \ No newline at end of file +2022-11-10T13:07:15.578709-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml index 7df2521d08..c6a3ae760e 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml @@ -1,9 +1,63 @@ --- version: 1 interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: + body: | + {"data":{"type":"roles","id":"82c08ac4-6122-11ed-982b-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","created_at":"2022-11-10T18:07:16.878518+00:00","modified_at":"2022-11-10T18:07:16.982575+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/82c08ac4-6122-11ed-982b-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"82c08ac4-6122-11ed-982b-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","created_at":"2022-11-10T18:07:16.878518+00:00","modified_at":"2022-11-10T18:07:16.982575+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","monitor_priority":5,"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"mvi-kzs-xkr","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","monitor_id":102669322,"type":"api","created_at":"2022-11-10T18:07:17.307579+00:00","modified_at":"2022-11-10T18:07:17.307579+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","tick_every":60,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/mvi-kzs-xkr + method: GET + response: + body: | + {"status":"paused","public_id":"mvi-kzs-xkr","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","monitor_id":102669322,"type":"api","created_at":"2022-11-10T18:07:17.307579+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:17.307579+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pp5-7hd-zge + url: https://api.datadoghq.com/api/v2/roles/82c08ac4-6122-11ed-982b-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"82c08ac4-6122-11ed-982b-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","created_at":"2022-11-10T18:07:16.878518+00:00","modified_at":"2022-11-10T18:07:16.982575+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/mvi-kzs-xkr method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"mvi-kzs-xkr","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","monitor_id":102669322,"type":"api","created_at":"2022-11-10T18:07:17.307579+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:17.307579+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/mvi-kzs-xkr method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"mvi-kzs-xkr","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","monitor_id":102669322,"type":"api","created_at":"2022-11-10T18:07:17.307579+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:17.307579+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/mvi-kzs-xkr method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"mvi-kzs-xkr","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","monitor_id":102669322,"type":"api","created_at":"2022-11-10T18:07:17.307579+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:17.307579+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/mvi-kzs-xkr method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"mvi-kzs-xkr","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","monitor_id":102669322,"type":"api","created_at":"2022-11-10T18:07:17.307579+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:17.307579+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -108,7 +179,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["pp5-7hd-zge"]} + {"public_ids":["mvi-kzs-xkr"]} form: {} headers: Accept: @@ -118,24 +189,56 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:36:28.391242+00:00","public_id":"pp5-7hd-zge"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-10T18:07:19.236439+00:00","public_id":"mvi-kzs-xkr"}]} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/82c08ac4-6122-11ed-982b-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" - request: body: "" form: {} headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/82c08ac4-6122-11ed-982b-da7ad0900002 method: GET response: - body: | - {"errors":["Synthetics test not found"]} + body: '{"message": "The resource could not be found.

\n\n\n", "code": "404 Not Found", "title": "Not Found"}' + headers: + Content-Type: + - application/json + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/mvi-kzs-xkr + method: GET + response: + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze index 3b1cc315d3..21b6bcc721 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze @@ -1 +1 @@ -2022-10-19T09:52:38.20238-04:00 \ No newline at end of file +2022-11-10T13:04:25.395068-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml index 820138b705..944976d027 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml @@ -1,9 +1,63 @@ --- version: 1 interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: + body: | + {"data":{"type":"roles","id":"1d911434-6122-11ed-8321-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","created_at":"2022-11-10T18:04:27.117635+00:00","modified_at":"2022-11-10T18:04:27.205447+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/1d911434-6122-11ed-8321-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"1d911434-6122-11ed-8321-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","created_at":"2022-11-10T18:04:27.117635+00:00","modified_at":"2022-11-10T18:04:27.205447+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["abc"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["1d911434-6122-11ed-8321-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"i7u-67k-fv6","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558","monitor_id":100397921,"type":"browser","created_at":"2022-10-19T13:52:39.693838+00:00","modified_at":"2022-10-19T13:52:39.693838+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"taa-ybn-3wp","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","monitor_id":102668711,"type":"browser","created_at":"2022-11-10T18:04:27.574272+00:00","modified_at":"2022-11-10T18:04:27.574272+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["1d911434-6122-11ed-8321-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465-monitor","tick_every":900,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/taa-ybn-3wp + method: GET + response: + body: | + {"status":"paused","public_id":"taa-ybn-3wp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","monitor_id":102668711,"type":"browser","created_at":"2022-11-10T18:04:27.574272+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:04:27.574272+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["1d911434-6122-11ed-8321-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/i7u-67k-fv6 + url: https://api.datadoghq.com/api/v1/synthetics/tests/taa-ybn-3wp method: GET response: body: | - {"status":"paused","public_id":"i7u-67k-fv6","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558","monitor_id":100397921,"type":"browser","created_at":"2022-10-19T13:52:39.693838+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:39.693838+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"taa-ybn-3wp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","monitor_id":102668711,"type":"browser","created_at":"2022-11-10T18:04:27.574272+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:04:27.574272+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["1d911434-6122-11ed-8321-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/i7u-67k-fv6 + url: https://api.datadoghq.com/api/v2/roles/1d911434-6122-11ed-8321-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"i7u-67k-fv6","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558","monitor_id":100397921,"type":"browser","created_at":"2022-10-19T13:52:39.693838+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:39.693838+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"1d911434-6122-11ed-8321-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","created_at":"2022-11-10T18:04:27.117635+00:00","modified_at":"2022-11-10T18:04:27.205447+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/i7u-67k-fv6 + url: https://api.datadoghq.com/api/v1/synthetics/tests/taa-ybn-3wp method: GET response: body: | - {"status":"paused","public_id":"i7u-67k-fv6","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558","monitor_id":100397921,"type":"browser","created_at":"2022-10-19T13:52:39.693838+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:39.693838+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"taa-ybn-3wp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","monitor_id":102668711,"type":"browser","created_at":"2022-11-10T18:04:27.574272+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:04:27.574272+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["1d911434-6122-11ed-8321-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/i7u-67k-fv6 + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/taa-ybn-3wp method: GET response: body: | - {"status":"paused","public_id":"i7u-67k-fv6","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558","monitor_id":100397921,"type":"browser","created_at":"2022-10-19T13:52:39.693838+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:39.693838+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"taa-ybn-3wp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","monitor_id":102668711,"type":"browser","created_at":"2022-11-10T18:04:27.574272+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:04:27.574272+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["1d911434-6122-11ed-8321-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -91,7 +162,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["i7u-67k-fv6"]} + {"public_ids":["taa-ybn-3wp"]} form: {} headers: Accept: @@ -102,20 +173,52 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-10-19T13:52:41.445933+00:00","public_id":"i7u-67k-fv6"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:04:29.123634+00:00","public_id":"taa-ybn-3wp"}]} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/1d911434-6122-11ed-8321-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/1d911434-6122-11ed-8321-da7ad0900002 + method: GET + response: + body: '{"message": "The resource could not be found.

\n\n\n", "code": "404 Not Found", "title": "Not Found"}' + headers: + Content-Type: + - application/json + status: 404 Not Found + code: 404 + duration: "" - request: body: "" form: {} headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/i7u-67k-fv6 + url: https://api.datadoghq.com/api/v1/synthetics/tests/taa-ybn-3wp method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze index c1dfb540af..069852a9be 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze @@ -1 +1 @@ -2022-10-19T09:52:06.698853-04:00 \ No newline at end of file +2022-11-10T13:05:50.841582-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml index 80dfa4fe46..a1e1cc608b 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml @@ -2,8 +2,62 @@ version: 1 interactions: - request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["abc"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} + {"data":{"type":"roles","id":"504a44ea-6122-11ed-badd-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","created_at":"2022-11-10T18:05:52.217866+00:00","modified_at":"2022-11-10T18:05:52.338964+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/504a44ea-6122-11ed-badd-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"504a44ea-6122-11ed-badd-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","created_at":"2022-11-10T18:05:52.217866+00:00","modified_at":"2022-11-10T18:05:52.338964+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","modified_at":"2022-10-19T13:52:08.083709+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","modified_at":"2022-11-10T18:05:52.750938+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ggn-ztu-2ga + method: GET + response: + body: | + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.750938+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/ggn-ztu-2ga method: GET response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.083709+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.750938+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v2/roles/504a44ea-6122-11ed-badd-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.083709+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"504a44ea-6122-11ed-badd-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","created_at":"2022-11-10T18:05:52.217866+00:00","modified_at":"2022-11-10T18:05:52.338964+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/ggn-ztu-2ga method: GET response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.083709+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.750938+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ggn-ztu-2ga method: GET response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.083709+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.750938+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v2/roles/504a44ea-6122-11ed-badd-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.083709+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"504a44ea-6122-11ed-badd-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","created_at":"2022-11-10T18:05:52.217866+00:00","modified_at":"2022-11-10T18:05:52.338964+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -112,31 +183,64 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/ggn-ztu-2ga method: GET response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.083709+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.750938+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ggn-ztu-2ga + method: GET + response: + body: | + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.750938+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/504a44ea-6122-11ed-badd-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"method":"PUT","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[{"example":"5970","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-updated","options":{"ci":{"executionRule":"skipped"},"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"rumSettings":{"isEnabled":false},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"isCritical":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"method":"PUT","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[{"example":"5970","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-updated","options":{"ci":{"executionRule":"skipped"},"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"rumSettings":{"isEnabled":false},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"isCritical":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ggn-ztu-2ga method: PUT response: body: | - {"status":"live","public_id":"vv2-vi7-zfm","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-updated","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","modified_at":"2022-10-19T13:52:11.485585+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"ggn-ztu-2ga","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-updated","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","modified_at":"2022-11-10T18:05:55.154138+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -149,11 +253,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/ggn-ztu-2ga method: GET response: body: | - {"status":"live","public_id":"vv2-vi7-zfm","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-updated","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:11.485585+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"ggn-ztu-2ga","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-updated","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:55.154138+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -166,11 +270,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/ggn-ztu-2ga method: GET response: body: | - {"status":"live","public_id":"vv2-vi7-zfm","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-updated","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:11.485585+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"ggn-ztu-2ga","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-updated","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:55.154138+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -183,11 +287,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ggn-ztu-2ga method: GET response: body: | - {"status":"live","public_id":"vv2-vi7-zfm","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-updated","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:11.485585+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"ggn-ztu-2ga","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-updated","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:55.154138+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -196,7 +300,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["vv2-vi7-zfm"]} + {"public_ids":["ggn-ztu-2ga"]} form: {} headers: Accept: @@ -207,7 +311,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-10-19T13:52:13.054072+00:00","public_id":"vv2-vi7-zfm"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:05:56.554615+00:00","public_id":"ggn-ztu-2ga"}]} headers: Content-Type: - application/json @@ -220,7 +324,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/ggn-ztu-2ga method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.freeze index c1dfb540af..069852a9be 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.freeze @@ -1 +1 @@ -2022-10-19T09:52:06.698853-04:00 \ No newline at end of file +2022-11-10T13:05:50.841582-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.yaml index b572e1e0d8..5d2acb5b14 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.yaml @@ -2,8 +2,62 @@ version: 1 interactions: - request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["abc"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} + {"data":{"type":"roles","id":"504d2926-6122-11ed-ad75-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","created_at":"2022-11-10T18:05:52.236344+00:00","modified_at":"2022-11-10T18:05:52.353456+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/504d2926-6122-11ed-ad75-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"504d2926-6122-11ed-ad75-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","created_at":"2022-11-10T18:05:52.236344+00:00","modified_at":"2022-11-10T18:05:52.353456+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","modified_at":"2022-10-19T13:52:08.261101+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","modified_at":"2022-11-10T18:05:52.782379+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2as-z7j-xq3 + method: GET + response: + body: | + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.782379+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/2as-z7j-xq3 method: GET response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.261101+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.782379+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/feu-rh7-9tn + url: https://api.datadoghq.com/api/v2/roles/504d2926-6122-11ed-ad75-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.261101+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"504d2926-6122-11ed-ad75-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","created_at":"2022-11-10T18:05:52.236344+00:00","modified_at":"2022-11-10T18:05:52.353456+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/2as-z7j-xq3 method: GET response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.261101+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.782379+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2as-z7j-xq3 method: GET response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.261101+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.782379+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/feu-rh7-9tn + url: https://api.datadoghq.com/api/v2/roles/504d2926-6122-11ed-ad75-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.261101+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"504d2926-6122-11ed-ad75-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","created_at":"2022-11-10T18:05:52.236344+00:00","modified_at":"2022-11-10T18:05:52.353456+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -112,31 +183,64 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/2as-z7j-xq3 method: GET response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.261101+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.782379+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2as-z7j-xq3 + method: GET + response: + body: | + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.782379+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/504d2926-6122-11ed-ad75-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"method":"PUT","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[{"example":"5970","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-updated-rumsettings","options":{"ci":{"executionRule":"skipped"},"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"rumSettings":{"isEnabled":false},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"isCritical":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"method":"PUT","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[{"example":"5970","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-updated-rumsettings","options":{"ci":{"executionRule":"skipped"},"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"rumSettings":{"isEnabled":false},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"isCritical":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2as-z7j-xq3 method: PUT response: body: | - {"status":"live","public_id":"feu-rh7-9tn","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-updated-rumsettings","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","modified_at":"2022-10-19T13:52:10.812209+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"2as-z7j-xq3","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-updated-rumsettings","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","modified_at":"2022-11-10T18:05:55.107202+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -149,11 +253,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/2as-z7j-xq3 method: GET response: body: | - {"status":"live","public_id":"feu-rh7-9tn","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-updated-rumsettings","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:10.812209+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"2as-z7j-xq3","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-updated-rumsettings","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:55.107202+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -166,11 +270,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/2as-z7j-xq3 method: GET response: body: | - {"status":"live","public_id":"feu-rh7-9tn","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-updated-rumsettings","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:10.812209+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"2as-z7j-xq3","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-updated-rumsettings","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:55.107202+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -183,11 +287,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2as-z7j-xq3 method: GET response: body: | - {"status":"live","public_id":"feu-rh7-9tn","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-updated-rumsettings","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:10.812209+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"2as-z7j-xq3","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-updated-rumsettings","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:55.107202+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -196,7 +300,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["feu-rh7-9tn"]} + {"public_ids":["2as-z7j-xq3"]} form: {} headers: Accept: @@ -207,7 +311,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-10-19T13:52:12.683520+00:00","public_id":"feu-rh7-9tn"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:05:56.973504+00:00","public_id":"2as-z7j-xq3"}]} headers: Content-Type: - application/json @@ -220,7 +324,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/2as-z7j-xq3 method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze index 9f07c5d363..95d8a49e5b 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze @@ -1 +1 @@ -2022-10-19T09:52:56.69711-04:00 \ No newline at end of file +2022-11-10T13:07:01.055749-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml index 6a2bc13a9a..ea5b7c35c5 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml @@ -1,9 +1,63 @@ --- version: 1 interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: + body: | + {"data":{"type":"roles","id":"7a2c5636-6122-11ed-a9a0-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","created_at":"2022-11-10T18:07:02.485481+00:00","modified_at":"2022-11-10T18:07:02.603143+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/7a2c5636-6122-11ed-a9a0-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"7a2c5636-6122-11ed-a9a0-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","created_at":"2022-11-10T18:07:02.485481+00:00","modified_at":"2022-11-10T18:07:02.603143+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["abc"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"bet-hca-pb3","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","monitor_id":100397936,"type":"browser","created_at":"2022-10-19T13:52:57.906459+00:00","modified_at":"2022-10-19T13:52:57.906459+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"nqe-96w-np2","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","monitor_id":102669240,"type":"browser","created_at":"2022-11-10T18:07:02.967335+00:00","modified_at":"2022-11-10T18:07:02.967335+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","tick_every":900,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/nqe-96w-np2 + method: GET + response: + body: | + {"status":"paused","public_id":"nqe-96w-np2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","monitor_id":102669240,"type":"browser","created_at":"2022-11-10T18:07:02.967335+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:02.967335+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bet-hca-pb3 + url: https://api.datadoghq.com/api/v2/roles/7a2c5636-6122-11ed-a9a0-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"bet-hca-pb3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","monitor_id":100397936,"type":"browser","created_at":"2022-10-19T13:52:57.906459+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:57.906459+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"7a2c5636-6122-11ed-a9a0-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","created_at":"2022-11-10T18:07:02.485481+00:00","modified_at":"2022-11-10T18:07:02.603143+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/bet-hca-pb3 + url: https://api.datadoghq.com/api/v1/synthetics/tests/nqe-96w-np2 method: GET response: body: | - {"status":"paused","public_id":"bet-hca-pb3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","monitor_id":100397936,"type":"browser","created_at":"2022-10-19T13:52:57.906459+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:57.906459+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"nqe-96w-np2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","monitor_id":102669240,"type":"browser","created_at":"2022-11-10T18:07:02.967335+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:02.967335+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bet-hca-pb3 + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/nqe-96w-np2 method: GET response: body: | - {"status":"paused","public_id":"bet-hca-pb3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","monitor_id":100397936,"type":"browser","created_at":"2022-10-19T13:52:57.906459+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:57.906459+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"nqe-96w-np2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","monitor_id":102669240,"type":"browser","created_at":"2022-11-10T18:07:02.967335+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:02.967335+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/bet-hca-pb3 + url: https://api.datadoghq.com/api/v1/synthetics/tests/nqe-96w-np2 method: GET response: body: | - {"status":"paused","public_id":"bet-hca-pb3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","monitor_id":100397936,"type":"browser","created_at":"2022-10-19T13:52:57.906459+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:57.906459+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"nqe-96w-np2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","monitor_id":102669240,"type":"browser","created_at":"2022-11-10T18:07:02.967335+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:02.967335+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bet-hca-pb3 + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/nqe-96w-np2 method: GET response: body: | - {"status":"paused","public_id":"bet-hca-pb3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","monitor_id":100397936,"type":"browser","created_at":"2022-10-19T13:52:57.906459+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:57.906459+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"nqe-96w-np2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","monitor_id":102669240,"type":"browser","created_at":"2022-11-10T18:07:02.967335+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:02.967335+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -108,7 +179,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["bet-hca-pb3"]} + {"public_ids":["nqe-96w-np2"]} form: {} headers: Accept: @@ -119,20 +190,52 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-10-19T13:53:00.195383+00:00","public_id":"bet-hca-pb3"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:07:05.132770+00:00","public_id":"nqe-96w-np2"}]} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/7a2c5636-6122-11ed-a9a0-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/7a2c5636-6122-11ed-a9a0-da7ad0900002 + method: GET + response: + body: '{"message": "The resource could not be found.

\n\n\n", "code": "404 Not Found", "title": "Not Found"}' + headers: + Content-Type: + - application/json + status: 404 Not Found + code: 404 + duration: "" - request: body: "" form: {} headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/bet-hca-pb3 + url: https://api.datadoghq.com/api/v1/synthetics/tests/nqe-96w-np2 method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze index 5b767102bc..9ad88bf304 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze @@ -1 +1 @@ -2022-04-29T14:29:42.297762+02:00 \ No newline at end of file +2022-11-10T13:05:33.753638-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml index 98311b925e..f24fe2a0d9 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml @@ -1,9 +1,26 @@ --- version: 1 interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" - request: body: | - {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} + {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668103533","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} form: {} headers: Accept: @@ -13,7 +30,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/variables method: POST response: - body: '{"parse_test_options":null,"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382"}' + body: | + {"parse_test_options":null,"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668103533"} headers: Content-Type: - application/json @@ -26,10 +44,31 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/0330cdb3-bc53-4657-b804-860a7745718a method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"0330cdb3-bc53-4657-b804-860a7745718a","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668103533","created_at":"2022-11-10T18:05:35.149394+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.149394+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: + body: | + {"data":{"type":"roles","id":"4625d45c-6122-11ed-b3a1-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","created_at":"2022-11-10T18:05:35.201348+00:00","modified_at":"2022-11-10T18:05:35.298648+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -42,10 +81,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/0330cdb3-bc53-4657-b804-860a7745718a method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"0330cdb3-bc53-4657-b804-860a7745718a","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668103533","created_at":"2022-11-10T18:05:35.149394+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.149394+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -53,8 +93,25 @@ interactions: code: 200 duration: "" - request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/4625d45c-6122-11ed-b3a1-da7ad0900002 + method: GET + response: body: | - {"config":{"assertions":[],"configVariables":[{"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME","type":"global"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"basicAuth":{"accessKey":"sigv4-access-key","region":"sigv4-region","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","sessionToken":"sigv4-session-token","type":"sigv4"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"body":"","follow_redirects":true,"method":"GET","timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","options":{"min_location_failed":1,"restricted_roles":["abc"],"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} + {"data":{"type":"roles","id":"4625d45c-6122-11ed-b3a1-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","created_at":"2022-11-10T18:05:35.201348+00:00","modified_at":"2022-11-10T18:05:35.298648+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"config":{"assertions":[],"configVariables":[{"id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"VARIABLE_NAME","type":"global"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"basicAuth":{"accessKey":"sigv4-access-key","region":"sigv4-region","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","sessionToken":"sigv4-session-token","type":"sigv4"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"body":"","follow_redirects":true,"method":"GET","timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","options":{"min_location_failed":1,"restricted_roles":["4625d45c-6122-11ed-b3a1-da7ad0900002"],"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} form: {} headers: Accept: @@ -64,7 +121,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"4iv-sws-5bb","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","monitor_id":102668860,"type":"api","created_at":"2022-11-10T18:05:35.718784+00:00","modified_at":"2022-11-10T18:05:35.718784+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"kri-weq-6i2","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"3cx-nv5-4b3","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["4625d45c-6122-11ed-b3a1-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -77,10 +135,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4iv-sws-5bb method: GET response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"4iv-sws-5bb","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","monitor_id":102668860,"type":"api","created_at":"2022-11-10T18:05:35.718784+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.718784+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"kri-weq-6i2","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"3cx-nv5-4b3","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["4625d45c-6122-11ed-b3a1-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -93,10 +152,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/0330cdb3-bc53-4657-b804-860a7745718a method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"0330cdb3-bc53-4657-b804-860a7745718a","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668103533","created_at":"2022-11-10T18:05:35.149394+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.149394+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -109,10 +169,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/4iv-sws-5bb method: GET response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"4iv-sws-5bb","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","monitor_id":102668860,"type":"api","created_at":"2022-11-10T18:05:35.718784+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.718784+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"kri-weq-6i2","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"3cx-nv5-4b3","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["4625d45c-6122-11ed-b3a1-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -125,10 +186,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/0330cdb3-bc53-4657-b804-860a7745718a method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"0330cdb3-bc53-4657-b804-860a7745718a","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668103533","created_at":"2022-11-10T18:05:35.149394+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.149394+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -141,10 +203,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v2/roles/4625d45c-6122-11ed-b3a1-da7ad0900002 method: GET response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"data":{"type":"roles","id":"4625d45c-6122-11ed-b3a1-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","created_at":"2022-11-10T18:05:35.201348+00:00","modified_at":"2022-11-10T18:05:35.298648+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -157,10 +220,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/4iv-sws-5bb method: GET response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"4iv-sws-5bb","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","monitor_id":102668860,"type":"api","created_at":"2022-11-10T18:05:35.718784+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.718784+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"kri-weq-6i2","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"3cx-nv5-4b3","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["4625d45c-6122-11ed-b3a1-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -168,8 +232,25 @@ interactions: code: 200 duration: "" - request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4iv-sws-5bb + method: GET + response: body: | - {"public_ids":["f2v-mbp-xf2"]} + {"status":"paused","public_id":"4iv-sws-5bb","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","monitor_id":102668860,"type":"api","created_at":"2022-11-10T18:05:35.718784+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.718784+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"kri-weq-6i2","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"3cx-nv5-4b3","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["4625d45c-6122-11ed-b3a1-da7ad0900002"],"min_location_failed":1,"tick_every":900}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"public_ids":["4iv-sws-5bb"]} form: {} headers: Accept: @@ -179,7 +260,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-04-29T12:30:22.714620+00:00","public_id":"f2v-mbp-xf2"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-10T18:05:37.396515+00:00","public_id":"4iv-sws-5bb"}]} headers: Content-Type: - application/json @@ -192,26 +274,42 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/0330cdb3-bc53-4657-b804-860a7745718a method: DELETE response: - body: '{}' + body: "" headers: Content-Type: - - application/json + - text/html; charset=utf-8 status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/4625d45c-6122-11ed-b3a1-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" - request: body: "" form: {} headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/0330cdb3-bc53-4657-b804-860a7745718a method: GET response: - body: '{"errors": ["Synthetics global variable not found"]}' + body: '{"errors":["Synthetics global variable not found"]}' headers: Content-Type: - application/json @@ -224,10 +322,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/4iv-sws-5bb method: GET response: - body: '{"errors": ["Synthetics test not found"]}' + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/resource_datadog_synthetics_test_test.go b/datadog/tests/resource_datadog_synthetics_test_test.go index a9be57bfea..49d3e9c6cb 100644 --- a/datadog/tests/resource_datadog_synthetics_test_test.go +++ b/datadog/tests/resource_datadog_synthetics_test_test.go @@ -523,6 +523,8 @@ func createSyntheticsAPITestStep(ctx context.Context, accProvider func() (*schem "datadog_synthetics_test.foo", "request_definition.0.timeout", "30"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "request_definition.0.body", "this is a body"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_definition.0.body_type", "text/plain"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "request_definition.0.no_saving_response_body", "true"), resource.TestCheckResourceAttr( @@ -598,7 +600,7 @@ func createSyntheticsAPITestStep(ctx context.Context, accProvider func() (*schem resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options_list.0_list.#", "0"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.foo", "options_list.0.restricted_roles.0", "abc"), + "datadog_synthetics_test.foo", "options_list.0.restricted_roles.#", "1"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options_list.0.ci.0.execution_rule", "blocking"), resource.TestCheckResourceAttr( @@ -631,6 +633,10 @@ func createSyntheticsAPITestStep(ctx context.Context, accProvider func() (*schem func createSyntheticsAPITestConfig(uniq string) string { return fmt.Sprintf(` +resource "datadog_role" "bar" { + name = "%[1]s" +} + resource "datadog_synthetics_test" "foo" { type = "api" subtype = "http" @@ -639,6 +645,7 @@ resource "datadog_synthetics_test" "foo" { method = "GET" url = "https://www.datadoghq.com" body = "this is a body" + body_type = "text/plain" timeout = 30 no_saving_response_body = true } @@ -698,7 +705,7 @@ resource "datadog_synthetics_test" "foo" { } monitor_name = "%[1]s-monitor" monitor_priority = 5 - restricted_roles = ["abc"] + restricted_roles = ["${datadog_role.bar.id}"] ci { execution_rule = "blocking" } @@ -2237,7 +2244,7 @@ func createSyntheticsBrowserTestStep(ctx context.Context, accProvider func() (*s resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options_list.0.monitor_priority", "5"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.bar", "options_list.0.restricted_roles.0", "abc"), + "datadog_synthetics_test.bar", "options_list.0.restricted_roles.#", "1"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options_list.0.rum_settings.0.is_enabled", "true"), resource.TestCheckResourceAttr( @@ -2302,6 +2309,9 @@ func createSyntheticsBrowserTestStep(ctx context.Context, accProvider func() (*s func createSyntheticsBrowserTestConfig(uniq string) string { return fmt.Sprintf(` +resource "datadog_role" "bar" { + name = "%[1]s" +} resource "datadog_synthetics_test" "bar" { type = "browser" @@ -2349,7 +2359,7 @@ resource "datadog_synthetics_test" "bar" { } monitor_name = "%[1]s-monitor" monitor_priority = 5 - restricted_roles = ["abc"] + restricted_roles = ["${datadog_role.bar.id}"] no_screenshot = true @@ -3516,7 +3526,7 @@ func createSyntheticsMultistepAPITest(ctx context.Context, accProvider func() (* resource.TestCheckResourceAttr( "datadog_synthetics_test.multi", "options_list.0.min_location_failed", "1"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.multi", "options_list.0.restricted_roles.0", "abc"), + "datadog_synthetics_test.multi", "options_list.0.restricted_roles.#", "1"), resource.TestCheckResourceAttr( "datadog_synthetics_test.multi", "name", testName), resource.TestCheckResourceAttr( @@ -3629,6 +3639,10 @@ func createSyntheticsMultistepAPITest(ctx context.Context, accProvider func() (* func createSyntheticsMultistepAPITestConfig(testName string, variableName string) string { return fmt.Sprintf(` +resource "datadog_role" "bar" { + name = "%[1]s" +} + resource "datadog_synthetics_global_variable" "global_variable" { name = "%[2]s" description = "a global variable" @@ -3644,8 +3658,8 @@ resource "datadog_synthetics_test" "multi" { tick_every = 900 min_failure_duration = 0 min_location_failed = 1 - restricted_roles = ["abc"] - } + restricted_roles = ["${datadog_role.bar.id}"] +} name = "%[1]s" message = "Notify @datadog.user" tags = ["multistep"] @@ -3748,6 +3762,9 @@ func testSyntheticsTestExists(accProvider func() (*schema.Provider, error)) reso auth := providerConf.Auth for _, r := range s.RootModule().Resources { + if r.Type != "datadog_synthetics_test" { + continue + } if _, _, err := apiInstances.GetSyntheticsApiV1().GetTest(auth, r.Primary.ID); err != nil { return fmt.Errorf("received an error retrieving synthetics test %s", err) } diff --git a/docs/resources/synthetics_test.md b/docs/resources/synthetics_test.md index eb51d01525..b4f45ac07f 100644 --- a/docs/resources/synthetics_test.md +++ b/docs/resources/synthetics_test.md @@ -446,6 +446,7 @@ Optional: - `allow_insecure` (Boolean) Allows loading insecure content for an HTTP test. - `body` (String) The request body. +- `body_type` (String) Type of the request body. Valid values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `graphql`. - `certificate_domains` (List of String) By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificate_domains`. - `dns_server` (String) DNS server to use for DNS tests (`subtype = "dns"`). - `dns_server_port` (Number) DNS server port to use for DNS tests. @@ -750,6 +751,7 @@ Optional: Optional: - `body` (String) The request body. +- `body_type` (String) Type of the request body. Valid values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `graphql`. - `certificate_domains` (List of String) By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificate_domains`. - `dns_server` (String) DNS server to use for DNS tests (`subtype = "dns"`). - `dns_server_port` (Number) DNS server port to use for DNS tests. diff --git a/go.mod b/go.mod index e2b4d23974..59dd9c2602 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/terraform-providers/terraform-provider-datadog require ( - github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221108101128-e9dfeefa073e + github.com/DataDog/datadog-api-client-go/v2 v2.5.0 github.com/DataDog/dd-sdk-go-testing v0.0.0-20211116174033-1cd082e322ad github.com/dnaeon/go-vcr v1.0.1 github.com/hashicorp/go-cleanhttp v0.5.2 diff --git a/go.sum b/go.sum index 5bd579257e..9175d63662 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221108101128-e9dfeefa073e h1:betPumOqvY98AdoZagIKyPmght7lbysK59Jh5mBa1HM= -github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221108101128-e9dfeefa073e/go.mod h1:98b/MtTwSAr/yhTfhCR1oxAqQ/4tMkdrgKH7fYiDA0g= +github.com/DataDog/datadog-api-client-go/v2 v2.5.0 h1:+FRtNnR+IZ4D5lGqEk+f0+dSP7XhKtrlHvdcnTdyny8= +github.com/DataDog/datadog-api-client-go/v2 v2.5.0/go.mod h1:98b/MtTwSAr/yhTfhCR1oxAqQ/4tMkdrgKH7fYiDA0g= github.com/DataDog/datadog-go v4.4.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/datadog-go v4.8.3+incompatible h1:fNGaYSuObuQb5nzeTQqowRAd9bpDIRRV4/gUtIBjh8Q= github.com/DataDog/datadog-go v4.8.3+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=