From acaeba8be043294890b8394750274fe797f33c8f Mon Sep 17 00:00:00 2001 From: Stefan Ristovski Date: Mon, 9 Jan 2023 11:58:52 +0100 Subject: [PATCH 01/12] update gv --- ...urce_datadog_synthetics_global_variable.go | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/datadog/resource_datadog_synthetics_global_variable.go b/datadog/resource_datadog_synthetics_global_variable.go index 2c25a509af..4fa9ce91dc 100644 --- a/datadog/resource_datadog_synthetics_global_variable.go +++ b/datadog/resource_datadog_synthetics_global_variable.go @@ -107,6 +107,38 @@ func resourceDatadogSyntheticsGlobalVariable() *schema.Resource { }, }, }, + "options": { + Description: "Additional options to add for the variable, such as an MFA token.", + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "totp_parameters": { + Description: "Parameters needed for MFA/TOTP.", + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "digits": { + Description: "Number of digits for the OTP.", + Type: schema.TypeInt, + Required: true, + ValidateFunc: validation.IntBetween(4, 10), + }, + "refresh_interval": { + Description: "Interval for which to refresh the token (in seconds).", + Type: schema.TypeInt, + Required: true, + ValidateFunc: validation.IntBetween(0, 999), + }, + }, + }, + }, + }, + }, + }, "restricted_roles": { Description: "A list of role identifiers to associate with the Synthetics global variable.", Type: schema.TypeSet, @@ -232,6 +264,19 @@ func buildSyntheticsGlobalVariableStruct(d *schema.ResourceData) *datadogV1.Synt syntheticsGlobalVariableValue.SetValue(d.Get("value").(string)) syntheticsGlobalVariableValue.SetSecure(d.Get("secure").(bool)) + if options, ok := d.GetOk("options.0"); ok { + variableOptions := datadogV1.SyntheticsGlobalVariableOptions{} + totpParameters := datadogV1.SyntheticsGlobalVariableTOTPParameters{} + if digits, ok := options.GetOk("totp_parameters.0.digits"); ok { + totpParameters.SetDigits(digits.(int)) + } + if refresh_interval, ok := options.GetOk("totp_parameters.0.refresh_interval"); ok { + totpParameters.SetRefreshInterval(refresh_interval.(int)) + } + variableOptions.SetTotpParameters(totpParameters) + syntheticsGlobalVariableValue.SetOptions(variableOptions) + } + syntheticsGlobalVariable.SetValue(syntheticsGlobalVariableValue) if parseTestID, ok := d.GetOk("parse_test_id"); ok { From ed2bd97f7d70520c353861c2272c505ff7ee4392 Mon Sep 17 00:00:00 2001 From: Stefan Ristovski Date: Mon, 9 Jan 2023 12:38:31 +0100 Subject: [PATCH 02/12] fmt fix --- datadog/resource_datadog_synthetics_global_variable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datadog/resource_datadog_synthetics_global_variable.go b/datadog/resource_datadog_synthetics_global_variable.go index 4fa9ce91dc..a38b50542e 100644 --- a/datadog/resource_datadog_synthetics_global_variable.go +++ b/datadog/resource_datadog_synthetics_global_variable.go @@ -118,7 +118,7 @@ func resourceDatadogSyntheticsGlobalVariable() *schema.Resource { Description: "Parameters needed for MFA/TOTP.", Type: schema.TypeList, Optional: true, - MaxItems: 1, + MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "digits": { From 22f914f8d9754a141f52d40286d21f698ef55498 Mon Sep 17 00:00:00 2001 From: Stefan Ristovski Date: Mon, 9 Jan 2023 12:46:06 +0100 Subject: [PATCH 03/12] fix --- datadog/resource_datadog_synthetics_global_variable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datadog/resource_datadog_synthetics_global_variable.go b/datadog/resource_datadog_synthetics_global_variable.go index a38b50542e..a5408b81a8 100644 --- a/datadog/resource_datadog_synthetics_global_variable.go +++ b/datadog/resource_datadog_synthetics_global_variable.go @@ -118,7 +118,7 @@ func resourceDatadogSyntheticsGlobalVariable() *schema.Resource { Description: "Parameters needed for MFA/TOTP.", Type: schema.TypeList, Optional: true, - MaxItems: 1, + MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "digits": { From bd2fb00da60595f600334b2efc2fb2163ddf7cb2 Mon Sep 17 00:00:00 2001 From: Stefan Ristovski Date: Thu, 12 Jan 2023 14:00:42 +0100 Subject: [PATCH 04/12] change getOk --- datadog/resource_datadog_synthetics_global_variable.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/datadog/resource_datadog_synthetics_global_variable.go b/datadog/resource_datadog_synthetics_global_variable.go index a5408b81a8..705547692e 100644 --- a/datadog/resource_datadog_synthetics_global_variable.go +++ b/datadog/resource_datadog_synthetics_global_variable.go @@ -267,11 +267,11 @@ func buildSyntheticsGlobalVariableStruct(d *schema.ResourceData) *datadogV1.Synt if options, ok := d.GetOk("options.0"); ok { variableOptions := datadogV1.SyntheticsGlobalVariableOptions{} totpParameters := datadogV1.SyntheticsGlobalVariableTOTPParameters{} - if digits, ok := options.GetOk("totp_parameters.0.digits"); ok { - totpParameters.SetDigits(digits.(int)) + if digits, ok := d.GetOk("options.0.totp_parameters.0.digits"); ok { + totpParameters.SetDigits(digits.(int32)) } - if refresh_interval, ok := options.GetOk("totp_parameters.0.refresh_interval"); ok { - totpParameters.SetRefreshInterval(refresh_interval.(int)) + if refresh_interval, ok := d.GetOk("options.0.totp_parameters.0.refresh_interval"); ok { + totpParameters.SetRefreshInterval(refresh_interval.(int32)) } variableOptions.SetTotpParameters(totpParameters) syntheticsGlobalVariableValue.SetOptions(variableOptions) From 79cb9ce9edb292136262465cf5cc9cdca9431d90 Mon Sep 17 00:00:00 2001 From: Stefan Ristovski Date: Thu, 12 Jan 2023 14:04:29 +0100 Subject: [PATCH 05/12] remove unused value --- datadog/resource_datadog_synthetics_global_variable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datadog/resource_datadog_synthetics_global_variable.go b/datadog/resource_datadog_synthetics_global_variable.go index 705547692e..4c79329792 100644 --- a/datadog/resource_datadog_synthetics_global_variable.go +++ b/datadog/resource_datadog_synthetics_global_variable.go @@ -264,7 +264,7 @@ func buildSyntheticsGlobalVariableStruct(d *schema.ResourceData) *datadogV1.Synt syntheticsGlobalVariableValue.SetValue(d.Get("value").(string)) syntheticsGlobalVariableValue.SetSecure(d.Get("secure").(bool)) - if options, ok := d.GetOk("options.0"); ok { + if _, ok := d.GetOk("options.0"); ok { variableOptions := datadogV1.SyntheticsGlobalVariableOptions{} totpParameters := datadogV1.SyntheticsGlobalVariableTOTPParameters{} if digits, ok := d.GetOk("options.0.totp_parameters.0.digits"); ok { From 5ee7ea3cb68cc5752b63c6de8a1b7e770f7941a8 Mon Sep 17 00:00:00 2001 From: Stefan Ristovski Date: Thu, 12 Jan 2023 14:10:06 +0100 Subject: [PATCH 06/12] make docs --- docs/resources/synthetics_global_variable.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/resources/synthetics_global_variable.md b/docs/resources/synthetics_global_variable.md index b03e9ae97f..653e4962d7 100644 --- a/docs/resources/synthetics_global_variable.md +++ b/docs/resources/synthetics_global_variable.md @@ -32,6 +32,7 @@ resource "datadog_synthetics_global_variable" "test_variable" { ### Optional - `description` (String) Description of the global variable. +- `options` (Block List, Max: 1) Additional options to add for the variable, such as an MFA token. (see [below for nested schema](#nestedblock--options)) - `parse_test_id` (String) Id of the Synthetics test to use for a variable from test. - `parse_test_options` (Block List, Max: 1) ID of the Synthetics test to use a source of the global variable value. (see [below for nested schema](#nestedblock--parse_test_options)) - `restricted_roles` (Set of String) A list of role identifiers to associate with the Synthetics global variable. @@ -42,6 +43,23 @@ resource "datadog_synthetics_global_variable" "test_variable" { - `id` (String) The ID of this resource. + +### Nested Schema for `options` + +Optional: + +- `totp_parameters` (Block List, Max: 1) Parameters needed for MFA/TOTP. (see [below for nested schema](#nestedblock--options--totp_parameters)) + + +### Nested Schema for `options.totp_parameters` + +Required: + +- `digits` (Number) Number of digits for the OTP. +- `refresh_interval` (Number) Interval for which to refresh the token (in seconds). + + + ### Nested Schema for `parse_test_options` From d9346e767c2535b2ac10778285aa38e550801afd Mon Sep 17 00:00:00 2001 From: Stefan Ristovski Date: Thu, 12 Jan 2023 15:00:01 +0100 Subject: [PATCH 07/12] updates updateSyntheticsGlobalVariableLocalState --- ...source_datadog_synthetics_global_variable.go | 17 +++++++++++++++++ go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/datadog/resource_datadog_synthetics_global_variable.go b/datadog/resource_datadog_synthetics_global_variable.go index 4c79329792..b0b1c33de3 100644 --- a/datadog/resource_datadog_synthetics_global_variable.go +++ b/datadog/resource_datadog_synthetics_global_variable.go @@ -371,6 +371,23 @@ func updateSyntheticsGlobalVariableLocalState(d *schema.ResourceData, synthetics d.Set("parse_test_options", []map[string]interface{}{localParseTestOptions}) } + if syntheticsGlobalVariableValue.HasOptions() { + syntheticsGlobalVariableOptions := syntheticsGlobalVariableValue.GetOptions() + localVariableOptions := make(map[string]interface{}) + if syntheticsGlobalVariableOptions.HasTotpParameters() { + syntheticsGlobalVariableTOTPParameters := syntheticsGlobalVariableOptions.GetTotpParameters() + localTotpParameters := make(map[string]interface{}) + if syntheticsGlobalVariableTOTPParameters.HasDigits() { + localTotpParameters["digits"] = syntheticsGlobalVariableTOTPParameters.GetDigits() + } + if syntheticsGlobalVariableTOTPParameters.HasRefreshInterval() { + localTotpParameters["refresh_interval"] = syntheticsGlobalVariableTOTPParameters.GetRefreshInterval() + } + localVariableOptions["totp_parameters"] = localTotpParameters + } + d.Set("options", []map[string]interface{}{localVariableOptions}) + } + if syntheticsGlobalVariable.HasAttributes() { attributes := syntheticsGlobalVariable.GetAttributes() variableRestrictedRoles := attributes.GetRestrictedRoles() diff --git a/go.mod b/go.mod index b0d93bcd0a..d2936ceb13 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.7.0 + github.com/DataDog/datadog-api-client-go/v2 v2.7.1-0.20230111182427-83361af91abe 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 cf5e19ab4c..328726caa9 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.7.0 h1:ntksthF3deJ67aPg6GxO7lDaMUXI9LIKnPj044E54aA= -github.com/DataDog/datadog-api-client-go/v2 v2.7.0/go.mod h1:sHt3EuVMN8PSYJu065qwp3pZxCwR3RZP4sJnYwj/ZQY= +github.com/DataDog/datadog-api-client-go/v2 v2.7.1-0.20230111182427-83361af91abe h1:/e03MoNXq5+fEPA1dSPtikHrLatIzUfqpqEW91UjLmI= +github.com/DataDog/datadog-api-client-go/v2 v2.7.1-0.20230111182427-83361af91abe/go.mod h1:sHt3EuVMN8PSYJu065qwp3pZxCwR3RZP4sJnYwj/ZQY= 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= From 315ab03fa498c65b3a0c8cba162a25eebc1e912d Mon Sep 17 00:00:00 2001 From: Stefan Ristovski Date: Thu, 12 Jan 2023 16:25:31 +0100 Subject: [PATCH 08/12] updates test --- datadog/resource_datadog_synthetics_global_variable.go | 4 ++-- ...resource_datadog_synthetics_global_variable_test.go | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/datadog/resource_datadog_synthetics_global_variable.go b/datadog/resource_datadog_synthetics_global_variable.go index b0b1c33de3..44232b7dda 100644 --- a/datadog/resource_datadog_synthetics_global_variable.go +++ b/datadog/resource_datadog_synthetics_global_variable.go @@ -268,10 +268,10 @@ func buildSyntheticsGlobalVariableStruct(d *schema.ResourceData) *datadogV1.Synt variableOptions := datadogV1.SyntheticsGlobalVariableOptions{} totpParameters := datadogV1.SyntheticsGlobalVariableTOTPParameters{} if digits, ok := d.GetOk("options.0.totp_parameters.0.digits"); ok { - totpParameters.SetDigits(digits.(int32)) + totpParameters.SetDigits(int32(digits.(int))) } if refresh_interval, ok := d.GetOk("options.0.totp_parameters.0.refresh_interval"); ok { - totpParameters.SetRefreshInterval(refresh_interval.(int32)) + totpParameters.SetRefreshInterval(int32(refresh_interval.(int))) } variableOptions.SetTotpParameters(totpParameters) syntheticsGlobalVariableValue.SetOptions(variableOptions) diff --git a/datadog/tests/resource_datadog_synthetics_global_variable_test.go b/datadog/tests/resource_datadog_synthetics_global_variable_test.go index 784ad5dbc0..9b87961d70 100644 --- a/datadog/tests/resource_datadog_synthetics_global_variable_test.go +++ b/datadog/tests/resource_datadog_synthetics_global_variable_test.go @@ -227,6 +227,10 @@ func createSyntheticsGlobalVariableSecureStep(ctx context.Context, accProvider f "datadog_synthetics_global_variable.foo", "value", "variable-secure-value"), resource.TestCheckResourceAttr( "datadog_synthetics_global_variable.foo", "secure", "true"), + resource.TestCheckResourceAttr( + "datadog_synthetics_global_variable.foo", "options.totp_parameters.digits", "6"), + resource.TestCheckResourceAttr( + "datadog_synthetics_global_variable.foo", "options.totp_parameters.refresh_interval", "30"), ), } } @@ -239,6 +243,12 @@ resource "datadog_synthetics_global_variable" "foo" { tags = ["foo:bar", "baz"] value = "variable-secure-value" secure = true + options { + totp_parameters { + digits = 6 + refresh_interval = 30 + } + } }`, uniq) } From a5d93e16c5c2ec159175aaa4c14d6dd5e588604d Mon Sep 17 00:00:00 2001 From: Stefan Ristovski Date: Thu, 12 Jan 2023 16:30:30 +0100 Subject: [PATCH 09/12] documentation fixes --- datadog/resource_datadog_synthetics_global_variable.go | 2 +- docs/resources/synthetics_global_variable.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datadog/resource_datadog_synthetics_global_variable.go b/datadog/resource_datadog_synthetics_global_variable.go index 44232b7dda..7e87c5a30f 100644 --- a/datadog/resource_datadog_synthetics_global_variable.go +++ b/datadog/resource_datadog_synthetics_global_variable.go @@ -108,7 +108,7 @@ func resourceDatadogSyntheticsGlobalVariable() *schema.Resource { }, }, "options": { - Description: "Additional options to add for the variable, such as an MFA token.", + Description: "Additional options for the variable, such as a MFA token.", Type: schema.TypeList, Optional: true, MaxItems: 1, diff --git a/docs/resources/synthetics_global_variable.md b/docs/resources/synthetics_global_variable.md index 653e4962d7..667e6bee38 100644 --- a/docs/resources/synthetics_global_variable.md +++ b/docs/resources/synthetics_global_variable.md @@ -32,7 +32,7 @@ resource "datadog_synthetics_global_variable" "test_variable" { ### Optional - `description` (String) Description of the global variable. -- `options` (Block List, Max: 1) Additional options to add for the variable, such as an MFA token. (see [below for nested schema](#nestedblock--options)) +- `options` (Block List, Max: 1) Additional options for the variable, such as a MFA token. (see [below for nested schema](#nestedblock--options)) - `parse_test_id` (String) Id of the Synthetics test to use for a variable from test. - `parse_test_options` (Block List, Max: 1) ID of the Synthetics test to use a source of the global variable value. (see [below for nested schema](#nestedblock--parse_test_options)) - `restricted_roles` (Set of String) A list of role identifiers to associate with the Synthetics global variable. From 5a9b1a9d3c8ca8583091338b214370d6ae0f9e5c Mon Sep 17 00:00:00 2001 From: Stefan Ristovski Date: Thu, 12 Jan 2023 21:27:36 +0100 Subject: [PATCH 10/12] updates tests --- ...urce_datadog_synthetics_global_variable.go | 2 +- ...yntheticsGlobalVariableSecure_Basic.freeze | 2 +- ...gSyntheticsGlobalVariableSecure_Basic.yaml | 37 +++++---- ...dogSyntheticsGlobalVariable_Updated.freeze | 2 +- ...tadogSyntheticsGlobalVariable_Updated.yaml | 82 +++++++++---------- ...datadog_synthetics_global_variable_test.go | 14 +++- 6 files changed, 77 insertions(+), 62 deletions(-) diff --git a/datadog/resource_datadog_synthetics_global_variable.go b/datadog/resource_datadog_synthetics_global_variable.go index 7e87c5a30f..8dac0958fd 100644 --- a/datadog/resource_datadog_synthetics_global_variable.go +++ b/datadog/resource_datadog_synthetics_global_variable.go @@ -383,7 +383,7 @@ func updateSyntheticsGlobalVariableLocalState(d *schema.ResourceData, synthetics if syntheticsGlobalVariableTOTPParameters.HasRefreshInterval() { localTotpParameters["refresh_interval"] = syntheticsGlobalVariableTOTPParameters.GetRefreshInterval() } - localVariableOptions["totp_parameters"] = localTotpParameters + localVariableOptions["totp_parameters"] = []map[string]interface{}{localTotpParameters} } d.Set("options", []map[string]interface{}{localVariableOptions}) } diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Basic.freeze index 9cbe5f47ed..0a8b74d8d9 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Basic.freeze @@ -1 +1 @@ -2021-12-20T13:23:17.559165-05:00 \ No newline at end of file +2023-01-12T21:26:27.910617+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Basic.yaml index 162d95bb29..8b9a3cae2c 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Basic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"a secure global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_BASIC_LOCAL_1640024597","tags":["foo:bar","baz"],"value":{"secure":true,"value":"variable-secure-value"}} + {"description":"a secure global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_BASIC_LOCAL_1673555187","tags":["foo:bar","baz"],"value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true,"value":"variable-secure-value"}} form: {} headers: Accept: @@ -13,7 +13,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 secure global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":true},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"943db2dc-9886-46a4-a704-104b7f3e5ab8","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_BASIC_LOCAL_1640024597"}' + body: | + {"parse_test_options":null,"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"7e5ec491-23ad-4dc0-a6b2-44d933f75c67","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_BASIC_LOCAL_1673555187"} headers: Content-Type: - application/json @@ -26,10 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/943db2dc-9886-46a4-a704-104b7f3e5ab8 + url: https://api.datadoghq.com/api/v1/synthetics/variables/7e5ec491-23ad-4dc0-a6b2-44d933f75c67 method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"943db2dc-9886-46a4-a704-104b7f3e5ab8","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_BASIC_LOCAL_1640024597","created_at":"2021-12-20T18:23:19.331925+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2021-12-20T18:23:19.331925+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"7e5ec491-23ad-4dc0-a6b2-44d933f75c67","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_BASIC_LOCAL_1673555187","created_at":"2023-01-12T20:26:29.738174+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:26:29.738174+00:00","value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -42,10 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/943db2dc-9886-46a4-a704-104b7f3e5ab8 + url: https://api.datadoghq.com/api/v1/synthetics/variables/7e5ec491-23ad-4dc0-a6b2-44d933f75c67 method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"943db2dc-9886-46a4-a704-104b7f3e5ab8","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_BASIC_LOCAL_1640024597","created_at":"2021-12-20T18:23:19.331925+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2021-12-20T18:23:19.331925+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"7e5ec491-23ad-4dc0-a6b2-44d933f75c67","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_BASIC_LOCAL_1673555187","created_at":"2023-01-12T20:26:29.738174+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:26:29.738174+00:00","value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -58,10 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/943db2dc-9886-46a4-a704-104b7f3e5ab8 + url: https://api.datadoghq.com/api/v1/synthetics/variables/7e5ec491-23ad-4dc0-a6b2-44d933f75c67 method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"943db2dc-9886-46a4-a704-104b7f3e5ab8","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_BASIC_LOCAL_1640024597","created_at":"2021-12-20T18:23:19.331925+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2021-12-20T18:23:19.331925+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"7e5ec491-23ad-4dc0-a6b2-44d933f75c67","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_BASIC_LOCAL_1673555187","created_at":"2023-01-12T20:26:29.738174+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:26:29.738174+00:00","value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -74,10 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/943db2dc-9886-46a4-a704-104b7f3e5ab8 + url: https://api.datadoghq.com/api/v1/synthetics/variables/7e5ec491-23ad-4dc0-a6b2-44d933f75c67 method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"943db2dc-9886-46a4-a704-104b7f3e5ab8","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_BASIC_LOCAL_1640024597","created_at":"2021-12-20T18:23:19.331925+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2021-12-20T18:23:19.331925+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"7e5ec491-23ad-4dc0-a6b2-44d933f75c67","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_BASIC_LOCAL_1673555187","created_at":"2023-01-12T20:26:29.738174+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:26:29.738174+00:00","value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -89,14 +94,14 @@ interactions: form: {} headers: Accept: - - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/943db2dc-9886-46a4-a704-104b7f3e5ab8 + - '*/*' + url: https://api.datadoghq.com/api/v1/synthetics/variables/7e5ec491-23ad-4dc0-a6b2-44d933f75c67 method: DELETE response: - body: '{}' + body: "" headers: Content-Type: - - application/json + - text/html; charset=utf-8 status: 200 OK code: 200 duration: "" @@ -106,10 +111,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/943db2dc-9886-46a4-a704-104b7f3e5ab8 + url: https://api.datadoghq.com/api/v1/synthetics/variables/7e5ec491-23ad-4dc0-a6b2-44d933f75c67 method: GET response: - body: '{"errors": ["Synthetics global variable not found"]}' + body: '{"errors":["Synthetics global variable not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.freeze index f2bb241af3..39ba4a34aa 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.freeze @@ -1 +1 @@ -2022-12-08T15:18:16.17812+01:00 \ No newline at end of file +2023-01-12T21:26:59.968141+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.yaml index 310edf157d..d9787f3ffd 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.yaml @@ -2,16 +2,19 @@ version: 1 interactions: - request: - body: "" + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673555219"},"relationships":{},"type":"roles"}} form: {} headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/permissions - method: GET + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST 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":"Case and Incident Management","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":"Case and Incident Management","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":"Case and Incident Management","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":"Case and Incident Management","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":"Case and Incident Management","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}},{"type":"permissions","id":"4ee674f6-55d9-11ed-b10d-da7ad0900002","attributes":{"name":"appsec_protect_read","display_name":"Application Security Management Protect Read","description":"View blocked attackers.","created":"2022-10-27T09:25:33.834253+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"4ee7e46c-55d9-11ed-b10e-da7ad0900002","attributes":{"name":"appsec_protect_write","display_name":"Application Security Management Protect Write","description":"Manage blocked attackers.","created":"2022-10-27T09:25:33.843656+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"4ee5731c-55d9-11ed-b10b-da7ad0900002","attributes":{"name":"appsec_activation_read","display_name":"Application Security Management Activation Read","description":"View whether Application Security Management is enabled or disabled on services.","created":"2022-10-27T09:25:33.827076+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"4ee60688-55d9-11ed-b10c-da7ad0900002","attributes":{"name":"appsec_activation_write","display_name":"Application Security Management Activation Write","description":"Enable or disable Application Security Management on services.","created":"2022-10-27T09:25:33.831383+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}}]} + {"data":{"type":"roles","id":"787d5e72-92b7-11ed-ad8d-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673555219","created_at":"2023-01-12T20:27:01.649935+00:00","modified_at":"2023-01-12T20:27:01.693049+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"},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -19,19 +22,16 @@ interactions: code: 200 duration: "" - request: - body: | - {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1670509096"},"relationships":{},"type":"roles"}} + body: "" form: {} headers: Accept: - application/json - Content-Type: - - application/json - url: https://api.datadoghq.com/api/v2/roles - method: POST + url: https://api.datadoghq.com/api/v2/roles/787d5e72-92b7-11ed-ad8d-da7ad0900002 + method: GET response: body: | - {"data":{"type":"roles","id":"2938a8e6-7703-11ed-8095-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1670509096","created_at":"2022-12-08T14:18:17.853243+00:00","modified_at":"2022-12-08T14:18:17.948951+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"}]}}}} + {"data":{"type":"roles","id":"787d5e72-92b7-11ed-ad8d-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673555219","created_at":"2023-01-12T20:27:01.649935+00:00","modified_at":"2023-01-12T20:27:01.693049+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"},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/roles/2938a8e6-7703-11ed-8095-da7ad0900002 + url: https://api.datadoghq.com/api/v2/permissions method: GET response: body: | - {"data":{"type":"roles","id":"2938a8e6-7703-11ed-8095-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1670509096","created_at":"2022-12-08T14:18:17.853243+00:00","modified_at":"2022-12-08T14:18:17.948951+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"}]}}}} + {"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":"Case and Incident Management","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":"Case and Incident Management","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":"Case and Incident Management","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":"Case and Incident Management","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":"f4473c60-4792-11ec-a27b-da7ad0900002","attributes":{"name":"security_monitoring_cws_agent_rules_read","display_name":"Cloud Workload Security Agent Rules Read","description":"Read Cloud Workload Security Agent Rules.","created":"2021-11-17T10:41:43.074031+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"f4473c61-4792-11ec-a27b-da7ad0900002","attributes":{"name":"security_monitoring_cws_agent_rules_write","display_name":"Cloud Workload Security Agent Rules Write","description":"Create, edit, and delete Cloud Workload Security Agent Rules.","created":"2021-11-17T10:41:43.077905+00:00","group_name":"Cloud Security Platform","display_type":"write","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":"Case and Incident Management","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}},{"type":"permissions","id":"4ee674f6-55d9-11ed-b10d-da7ad0900002","attributes":{"name":"appsec_protect_read","display_name":"Application Security Management Protect Read","description":"View blocked attackers.","created":"2022-10-27T09:25:33.834253+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"4ee7e46c-55d9-11ed-b10e-da7ad0900002","attributes":{"name":"appsec_protect_write","display_name":"Application Security Management Protect Write","description":"Manage blocked attackers.","created":"2022-10-27T09:25:33.843656+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"4ee5731c-55d9-11ed-b10b-da7ad0900002","attributes":{"name":"appsec_activation_read","display_name":"Application Security Management Activation Read","description":"View whether Application Security Management is enabled or disabled on services.","created":"2022-10-27T09:25:33.827076+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"4ee60688-55d9-11ed-b10c-da7ad0900002","attributes":{"name":"appsec_activation_write","display_name":"Application Security Management Activation Write","description":"Enable or disable Application Security Management on services.","created":"2022-10-27T09:25:33.831383+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"8247acc4-7a4c-11ed-958f-da7ad0900002","attributes":{"name":"cases_read","display_name":"Cases Read","description":"View Cases.","created":"2022-12-12T18:40:54.018521+00:00","group_name":"Case and Incident Management","display_type":"read","restricted":false}},{"type":"permissions","id":"824851a6-7a4c-11ed-9590-da7ad0900002","attributes":{"name":"cases_write","display_name":"Cases Write","description":"Create and update cases.","created":"2022-12-12T18:40:54.023280+00:00","group_name":"Case and Incident Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002","attributes":{"name":"ci_visibility_read","display_name":"CI Visibility Read","description":"View CI Visibility.","created":"2022-12-13T16:01:37.149406+00:00","group_name":"CI Visibility","display_type":"read","restricted":true}},{"type":"permissions","id":"6c5c1090-7aff-11ed-a5cf-da7ad0900002","attributes":{"name":"ci_visibility_write","display_name":"CI Visibility Write","description":"Create, edit and delete CI Visibility tests and pipelines.","created":"2022-12-13T16:01:37.157428+00:00","group_name":"CI Visibility","display_type":"write","restricted":false}},{"type":"permissions","id":"6c59ae72-7aff-11ed-a5cc-da7ad0900002","attributes":{"name":"ci_provider_settings_write","display_name":"CI Provider Settings Write","description":"Edit CI Provider settings. Manage GitHub accounts and repositories for enabling CI Visibility and job logs collection.","created":"2022-12-13T16:01:37.141217+00:00","group_name":"CI Visibility","display_type":"write","restricted":false}},{"type":"permissions","id":"6c5b7428-7aff-11ed-a5ce-da7ad0900002","attributes":{"name":"ci_visibility_settings_write","display_name":"CI Visibility Settings Write","description":"Configure CI Visibility settings. Set a repository default branch, enable GitHub comments, and delete test services.","created":"2022-12-13T16:01:37.153418+00:00","group_name":"CI Visibility","display_type":"write","restricted":false}},{"type":"permissions","id":"6c5d0892-7aff-11ed-a5d0-da7ad0900002","attributes":{"name":"intelligent_test_runner_activation_write","display_name":"Intelligent Test Runner Activation Write","description":"Enable or disable Intelligent Test Runner.","created":"2022-12-13T16:01:37.163771+00:00","group_name":"CI Visibility","display_type":"write","restricted":false}},{"type":"permissions","id":"6c5de654-7aff-11ed-a5d1-da7ad0900002","attributes":{"name":"intelligent_test_runner_settings_write","display_name":"Intelligent Test Runner Settings Write","description":"Edit Intelligent Test Runner settings, such as modifying ITR excluded branch list.","created":"2022-12-13T16:01:37.169430+00:00","group_name":"CI Visibility","display_type":"write","restricted":false}},{"type":"permissions","id":"c13a2368-7d61-11ed-b5b7-da7ad0900002","attributes":{"name":"continuous_profiler_read","display_name":"Continuous Profiler Read","description":"View data in Continuous Profiler.","created":"2022-12-16T16:50:32.545882+00:00","group_name":"APM","display_type":"read","restricted":false}}]} headers: Content-Type: - application/json @@ -57,7 +57,7 @@ interactions: duration: "" - request: body: | - {"attributes":{"restricted_roles":["2938a8e6-7703-11ed-8095-da7ad0900002"]},"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1670509096","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} + {"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} form: {} headers: Accept: @@ -68,7 +68,7 @@ interactions: method: POST response: body: | - {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"id":"e64639f3-b726-4537-bd1e-91c588ed2404","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1670509096","is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["2938a8e6-7703-11ed-8095-da7ad0900002"]},"type":"variable"} + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"id":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"type":"variable"} headers: Content-Type: - application/json @@ -81,11 +81,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/e64639f3-b726-4537-bd1e-91c588ed2404 + url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 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":"e64639f3-b726-4537-bd1e-91c588ed2404","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1670509096","created_at":"2022-12-08T14:18:18.344585+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-12-08T14:18:18.344585+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["2938a8e6-7703-11ed-8095-da7ad0900002"]},"type":"variable"} + {"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":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:02.247424+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"type":"variable"} headers: Content-Type: - application/json @@ -98,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/e64639f3-b726-4537-bd1e-91c588ed2404 + url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 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":"e64639f3-b726-4537-bd1e-91c588ed2404","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1670509096","created_at":"2022-12-08T14:18:18.344585+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-12-08T14:18:18.344585+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["2938a8e6-7703-11ed-8095-da7ad0900002"]},"type":"variable"} + {"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":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:02.247424+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"type":"variable"} headers: Content-Type: - application/json @@ -115,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/e64639f3-b726-4537-bd1e-91c588ed2404 + url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 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":"e64639f3-b726-4537-bd1e-91c588ed2404","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1670509096","created_at":"2022-12-08T14:18:18.344585+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-12-08T14:18:18.344585+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["2938a8e6-7703-11ed-8095-da7ad0900002"]},"type":"variable"} + {"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":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:02.247424+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"type":"variable"} headers: Content-Type: - application/json @@ -132,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/roles/2938a8e6-7703-11ed-8095-da7ad0900002 + url: https://api.datadoghq.com/api/v2/roles/787d5e72-92b7-11ed-ad8d-da7ad0900002 method: GET response: body: | - {"data":{"type":"roles","id":"2938a8e6-7703-11ed-8095-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1670509096","created_at":"2022-12-08T14:18:17.853243+00:00","modified_at":"2022-12-08T14:18:17.948951+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"}]}}}} + {"data":{"type":"roles","id":"787d5e72-92b7-11ed-ad8d-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673555219","created_at":"2023-01-12T20:27:01.649935+00:00","modified_at":"2023-01-12T20:27:01.693049+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"},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -149,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/e64639f3-b726-4537-bd1e-91c588ed2404 + url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 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":"e64639f3-b726-4537-bd1e-91c588ed2404","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1670509096","created_at":"2022-12-08T14:18:18.344585+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-12-08T14:18:18.344585+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["2938a8e6-7703-11ed-8095-da7ad0900002"]},"type":"variable"} + {"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":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:02.247424+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"type":"variable"} headers: Content-Type: - application/json @@ -166,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/roles/2938a8e6-7703-11ed-8095-da7ad0900002 + url: https://api.datadoghq.com/api/v2/roles/787d5e72-92b7-11ed-ad8d-da7ad0900002 method: GET response: body: | - {"data":{"type":"roles","id":"2938a8e6-7703-11ed-8095-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1670509096","created_at":"2022-12-08T14:18:17.853243+00:00","modified_at":"2022-12-08T14:18:17.948951+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"}]}}}} + {"data":{"type":"roles","id":"787d5e72-92b7-11ed-ad8d-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673555219","created_at":"2023-01-12T20:27:01.649935+00:00","modified_at":"2023-01-12T20:27:01.693049+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"},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -183,11 +183,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/e64639f3-b726-4537-bd1e-91c588ed2404 + url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 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":"e64639f3-b726-4537-bd1e-91c588ed2404","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1670509096","created_at":"2022-12-08T14:18:18.344585+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-12-08T14:18:18.344585+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["2938a8e6-7703-11ed-8095-da7ad0900002"]},"type":"variable"} + {"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":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:02.247424+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"type":"variable"} headers: Content-Type: - application/json @@ -200,7 +200,7 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v2/roles/2938a8e6-7703-11ed-8095-da7ad0900002 + url: https://api.datadoghq.com/api/v2/roles/787d5e72-92b7-11ed-ad8d-da7ad0900002 method: DELETE response: body: "" @@ -212,18 +212,18 @@ interactions: duration: "" - request: body: | - {"description":"an updated global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1670509096_UPDATED","tags":["foo:bar","baz","env:test"],"value":{"secure":false,"value":"variable-value-updated"}} + {"description":"an updated global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219_UPDATED","tags":["foo:bar","baz","env:test"],"value":{"secure":false,"value":"variable-value-updated"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/e64639f3-b726-4537-bd1e-91c588ed2404 + url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 method: PUT response: body: | - {"parse_test_options":null,"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value-updated"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"e64639f3-b726-4537-bd1e-91c588ed2404","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1670509096_UPDATED"} + {"parse_test_options":null,"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value-updated"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"df0d05b3-d2ed-4c7e-9088-c395951501d9","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219_UPDATED"} headers: Content-Type: - application/json @@ -236,11 +236,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/e64639f3-b726-4537-bd1e-91c588ed2404 + url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 method: GET response: body: | - {"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"e64639f3-b726-4537-bd1e-91c588ed2404","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1670509096_UPDATED","created_at":"2022-12-08T14:18:18.344585+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-12-08T14:18:21.096647+00:00","value":{"secure":false,"value":"variable-value-updated"},"parse_test_name":null,"type":"variable"} + {"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219_UPDATED","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:04.993471+00:00","value":{"secure":false,"value":"variable-value-updated"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -253,11 +253,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/e64639f3-b726-4537-bd1e-91c588ed2404 + url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 method: GET response: body: | - {"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"e64639f3-b726-4537-bd1e-91c588ed2404","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1670509096_UPDATED","created_at":"2022-12-08T14:18:18.344585+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-12-08T14:18:21.096647+00:00","value":{"secure":false,"value":"variable-value-updated"},"parse_test_name":null,"type":"variable"} + {"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219_UPDATED","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:04.993471+00:00","value":{"secure":false,"value":"variable-value-updated"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -270,11 +270,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/e64639f3-b726-4537-bd1e-91c588ed2404 + url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 method: GET response: body: | - {"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"e64639f3-b726-4537-bd1e-91c588ed2404","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1670509096_UPDATED","created_at":"2022-12-08T14:18:18.344585+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-12-08T14:18:21.096647+00:00","value":{"secure":false,"value":"variable-value-updated"},"parse_test_name":null,"type":"variable"} + {"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219_UPDATED","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:04.993471+00:00","value":{"secure":false,"value":"variable-value-updated"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -287,7 +287,7 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v1/synthetics/variables/e64639f3-b726-4537-bd1e-91c588ed2404 + url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 method: DELETE response: body: "" @@ -303,7 +303,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/e64639f3-b726-4537-bd1e-91c588ed2404 + url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 method: GET response: body: '{"errors":["Synthetics global variable not found"]}' diff --git a/datadog/tests/resource_datadog_synthetics_global_variable_test.go b/datadog/tests/resource_datadog_synthetics_global_variable_test.go index 9b87961d70..93ad0d2a67 100644 --- a/datadog/tests/resource_datadog_synthetics_global_variable_test.go +++ b/datadog/tests/resource_datadog_synthetics_global_variable_test.go @@ -228,9 +228,9 @@ func createSyntheticsGlobalVariableSecureStep(ctx context.Context, accProvider f resource.TestCheckResourceAttr( "datadog_synthetics_global_variable.foo", "secure", "true"), resource.TestCheckResourceAttr( - "datadog_synthetics_global_variable.foo", "options.totp_parameters.digits", "6"), + "datadog_synthetics_global_variable.foo", "options.0.totp_parameters.0.digits", "6"), resource.TestCheckResourceAttr( - "datadog_synthetics_global_variable.foo", "options.totp_parameters.refresh_interval", "30"), + "datadog_synthetics_global_variable.foo", "options.0.totp_parameters.0.refresh_interval", "30"), ), } } @@ -274,6 +274,10 @@ func updateSyntheticsGlobalVariableSecureStep(ctx context.Context, accProvider f "datadog_synthetics_global_variable.foo", "value", "variable-secure-value-updated"), resource.TestCheckResourceAttr( "datadog_synthetics_global_variable.foo", "secure", "true"), + resource.TestCheckResourceAttr( + "datadog_synthetics_global_variable.foo", "options.0.totp_parameters.0.digits", "6"), + resource.TestCheckResourceAttr( + "datadog_synthetics_global_variable.foo", "options.0.totp_parameters.0.refresh_interval", "30"), ), } } @@ -286,6 +290,12 @@ resource "datadog_synthetics_global_variable" "foo" { tags = ["foo:bar", "baz", "env:test"] value = "variable-secure-value-updated" secure = true + options { + totp_parameters { + digits = 6 + refresh_interval = 30 + } + } }`, uniq) } From 746dd3d0f07845038a6b724d3738e96b12940ae8 Mon Sep 17 00:00:00 2001 From: Stefan Ristovski Date: Thu, 12 Jan 2023 21:43:31 +0100 Subject: [PATCH 11/12] updated test --- ...dogSyntheticsGlobalVariable_Updated.freeze | 2 +- ...tadogSyntheticsGlobalVariable_Updated.yaml | 64 +++++++++---------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.freeze index 39ba4a34aa..0576220535 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.freeze @@ -1 +1 @@ -2023-01-12T21:26:59.968141+01:00 \ No newline at end of file +2023-01-12T21:42:40.433145+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.yaml index d9787f3ffd..22996184df 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariable_Updated.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673555219"},"relationships":{},"type":"roles"}} + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673556160"},"relationships":{},"type":"roles"}} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"data":{"type":"roles","id":"787d5e72-92b7-11ed-ad8d-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673555219","created_at":"2023-01-12T20:27:01.649935+00:00","modified_at":"2023-01-12T20:27:01.693049+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"},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002"}]}}}} + {"data":{"type":"roles","id":"a9339e6c-92b9-11ed-b316-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673556160","created_at":"2023-01-12T20:42:42.368557+00:00","modified_at":"2023-01-12T20:42:42.401598+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"},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/roles/787d5e72-92b7-11ed-ad8d-da7ad0900002 + url: https://api.datadoghq.com/api/v2/roles/a9339e6c-92b9-11ed-b316-da7ad0900002 method: GET response: body: | - {"data":{"type":"roles","id":"787d5e72-92b7-11ed-ad8d-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673555219","created_at":"2023-01-12T20:27:01.649935+00:00","modified_at":"2023-01-12T20:27:01.693049+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"},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002"}]}}}} + {"data":{"type":"roles","id":"a9339e6c-92b9-11ed-b316-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673556160","created_at":"2023-01-12T20:42:42.368557+00:00","modified_at":"2023-01-12T20:42:42.401598+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"},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -57,7 +57,7 @@ interactions: duration: "" - request: body: | - {"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} + {"attributes":{"restricted_roles":["a9339e6c-92b9-11ed-b316-da7ad0900002"]},"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673556160","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} form: {} headers: Accept: @@ -68,7 +68,7 @@ interactions: method: POST response: body: | - {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"id":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"type":"variable"} + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"id":"bba6f456-84e7-4937-991d-e0c583f74e13","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673556160","is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["a9339e6c-92b9-11ed-b316-da7ad0900002"]},"type":"variable"} headers: Content-Type: - application/json @@ -81,11 +81,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/bba6f456-84e7-4937-991d-e0c583f74e13 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":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:02.247424+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"type":"variable"} + {"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":"bba6f456-84e7-4937-991d-e0c583f74e13","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673556160","created_at":"2023-01-12T20:42:42.930563+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:42:42.930563+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["a9339e6c-92b9-11ed-b316-da7ad0900002"]},"type":"variable"} headers: Content-Type: - application/json @@ -98,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/bba6f456-84e7-4937-991d-e0c583f74e13 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":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:02.247424+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"type":"variable"} + {"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":"bba6f456-84e7-4937-991d-e0c583f74e13","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673556160","created_at":"2023-01-12T20:42:42.930563+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:42:42.930563+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["a9339e6c-92b9-11ed-b316-da7ad0900002"]},"type":"variable"} headers: Content-Type: - application/json @@ -115,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/bba6f456-84e7-4937-991d-e0c583f74e13 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":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:02.247424+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"type":"variable"} + {"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":"bba6f456-84e7-4937-991d-e0c583f74e13","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673556160","created_at":"2023-01-12T20:42:42.930563+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:42:42.930563+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["a9339e6c-92b9-11ed-b316-da7ad0900002"]},"type":"variable"} headers: Content-Type: - application/json @@ -132,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/roles/787d5e72-92b7-11ed-ad8d-da7ad0900002 + url: https://api.datadoghq.com/api/v2/roles/a9339e6c-92b9-11ed-b316-da7ad0900002 method: GET response: body: | - {"data":{"type":"roles","id":"787d5e72-92b7-11ed-ad8d-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673555219","created_at":"2023-01-12T20:27:01.649935+00:00","modified_at":"2023-01-12T20:27:01.693049+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"},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002"}]}}}} + {"data":{"type":"roles","id":"a9339e6c-92b9-11ed-b316-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673556160","created_at":"2023-01-12T20:42:42.368557+00:00","modified_at":"2023-01-12T20:42:42.401598+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"},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -149,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/bba6f456-84e7-4937-991d-e0c583f74e13 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":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:02.247424+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"type":"variable"} + {"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":"bba6f456-84e7-4937-991d-e0c583f74e13","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673556160","created_at":"2023-01-12T20:42:42.930563+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:42:42.930563+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["a9339e6c-92b9-11ed-b316-da7ad0900002"]},"type":"variable"} headers: Content-Type: - application/json @@ -166,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v2/roles/787d5e72-92b7-11ed-ad8d-da7ad0900002 + url: https://api.datadoghq.com/api/v2/roles/a9339e6c-92b9-11ed-b316-da7ad0900002 method: GET response: body: | - {"data":{"type":"roles","id":"787d5e72-92b7-11ed-ad8d-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673555219","created_at":"2023-01-12T20:27:01.649935+00:00","modified_at":"2023-01-12T20:27:01.693049+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"},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002"}]}}}} + {"data":{"type":"roles","id":"a9339e6c-92b9-11ed-b316-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsGlobalVariable_Updated-local-1673556160","created_at":"2023-01-12T20:42:42.368557+00:00","modified_at":"2023-01-12T20:42:42.401598+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"},{"type":"permissions","id":"6c5ad874-7aff-11ed-a5cd-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -183,11 +183,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/bba6f456-84e7-4937-991d-e0c583f74e13 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":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:02.247424+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["787d5e72-92b7-11ed-ad8d-da7ad0900002"]},"type":"variable"} + {"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":"bba6f456-84e7-4937-991d-e0c583f74e13","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673556160","created_at":"2023-01-12T20:42:42.930563+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:42:42.930563+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"attributes":{"restricted_roles":["a9339e6c-92b9-11ed-b316-da7ad0900002"]},"type":"variable"} headers: Content-Type: - application/json @@ -200,7 +200,7 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v2/roles/787d5e72-92b7-11ed-ad8d-da7ad0900002 + url: https://api.datadoghq.com/api/v2/roles/a9339e6c-92b9-11ed-b316-da7ad0900002 method: DELETE response: body: "" @@ -212,18 +212,18 @@ interactions: duration: "" - request: body: | - {"description":"an updated global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219_UPDATED","tags":["foo:bar","baz","env:test"],"value":{"secure":false,"value":"variable-value-updated"}} + {"description":"an updated global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673556160_UPDATED","tags":["foo:bar","baz","env:test"],"value":{"secure":false,"value":"variable-value-updated"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/bba6f456-84e7-4937-991d-e0c583f74e13 method: PUT response: body: | - {"parse_test_options":null,"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value-updated"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"df0d05b3-d2ed-4c7e-9088-c395951501d9","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219_UPDATED"} + {"parse_test_options":null,"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value-updated"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"bba6f456-84e7-4937-991d-e0c583f74e13","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673556160_UPDATED"} headers: Content-Type: - application/json @@ -236,11 +236,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/bba6f456-84e7-4937-991d-e0c583f74e13 method: GET response: body: | - {"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219_UPDATED","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:04.993471+00:00","value":{"secure":false,"value":"variable-value-updated"},"parse_test_name":null,"type":"variable"} + {"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"bba6f456-84e7-4937-991d-e0c583f74e13","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673556160_UPDATED","created_at":"2023-01-12T20:42:42.930563+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:42:45.743802+00:00","value":{"secure":false,"value":"variable-value-updated"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -253,11 +253,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/bba6f456-84e7-4937-991d-e0c583f74e13 method: GET response: body: | - {"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219_UPDATED","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:04.993471+00:00","value":{"secure":false,"value":"variable-value-updated"},"parse_test_name":null,"type":"variable"} + {"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"bba6f456-84e7-4937-991d-e0c583f74e13","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673556160_UPDATED","created_at":"2023-01-12T20:42:42.930563+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:42:45.743802+00:00","value":{"secure":false,"value":"variable-value-updated"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -270,11 +270,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/bba6f456-84e7-4937-991d-e0c583f74e13 method: GET response: body: | - {"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"df0d05b3-d2ed-4c7e-9088-c395951501d9","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673555219_UPDATED","created_at":"2023-01-12T20:27:02.247424+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:27:04.993471+00:00","value":{"secure":false,"value":"variable-value-updated"},"parse_test_name":null,"type":"variable"} + {"parse_test_extracted_at":null,"description":"an updated global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"bba6f456-84e7-4937-991d-e0c583f74e13","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLE_UPDATED_LOCAL_1673556160_UPDATED","created_at":"2023-01-12T20:42:42.930563+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T20:42:45.743802+00:00","value":{"secure":false,"value":"variable-value-updated"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -287,7 +287,7 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/bba6f456-84e7-4937-991d-e0c583f74e13 method: DELETE response: body: "" @@ -303,7 +303,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/df0d05b3-d2ed-4c7e-9088-c395951501d9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/bba6f456-84e7-4937-991d-e0c583f74e13 method: GET response: body: '{"errors":["Synthetics global variable not found"]}' From 6b1db673795742372b87e96769e0a90b7a75c70a Mon Sep 17 00:00:00 2001 From: Stefan Ristovski Date: Thu, 12 Jan 2023 22:00:50 +0100 Subject: [PATCH 12/12] update secure test --- ...theticsGlobalVariableSecure_Updated.freeze | 2 +- ...yntheticsGlobalVariableSecure_Updated.yaml | 64 +++++++++++-------- 2 files changed, 38 insertions(+), 28 deletions(-) diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.freeze index 3b425290c7..3cb5227a17 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.freeze @@ -1 +1 @@ -2022-01-21T14:35:29.104191+01:00 \ No newline at end of file +2023-01-12T22:00:24.409785+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.yaml index 0267c04d10..1a56d04006 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"a secure global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129","tags":["foo:bar","baz"],"value":{"secure":true,"value":"variable-secure-value"}} + {"description":"a secure global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1673557224","tags":["foo:bar","baz"],"value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true,"value":"variable-secure-value"}} form: {} headers: Accept: @@ -13,7 +13,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 secure global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":true},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129"}' + body: | + {"parse_test_options":null,"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"c0184ae1-2234-4746-9d49-e0d1691e391b","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1673557224"} headers: Content-Type: - application/json @@ -26,10 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de + url: https://api.datadoghq.com/api/v1/synthetics/variables/c0184ae1-2234-4746-9d49-e0d1691e391b method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:30.724225+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"c0184ae1-2234-4746-9d49-e0d1691e391b","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1673557224","created_at":"2023-01-12T21:00:26.297044+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T21:00:26.297044+00:00","value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -42,10 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de + url: https://api.datadoghq.com/api/v1/synthetics/variables/c0184ae1-2234-4746-9d49-e0d1691e391b method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:30.724225+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"c0184ae1-2234-4746-9d49-e0d1691e391b","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1673557224","created_at":"2023-01-12T21:00:26.297044+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T21:00:26.297044+00:00","value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -58,10 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de + url: https://api.datadoghq.com/api/v1/synthetics/variables/c0184ae1-2234-4746-9d49-e0d1691e391b method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:30.724225+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"c0184ae1-2234-4746-9d49-e0d1691e391b","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1673557224","created_at":"2023-01-12T21:00:26.297044+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T21:00:26.297044+00:00","value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -74,10 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de + url: https://api.datadoghq.com/api/v1/synthetics/variables/c0184ae1-2234-4746-9d49-e0d1691e391b method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:30.724225+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"c0184ae1-2234-4746-9d49-e0d1691e391b","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1673557224","created_at":"2023-01-12T21:00:26.297044+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T21:00:26.297044+00:00","value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -90,10 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de + url: https://api.datadoghq.com/api/v1/synthetics/variables/c0184ae1-2234-4746-9d49-e0d1691e391b method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:30.724225+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"c0184ae1-2234-4746-9d49-e0d1691e391b","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1673557224","created_at":"2023-01-12T21:00:26.297044+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T21:00:26.297044+00:00","value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -102,17 +108,18 @@ interactions: duration: "" - request: body: | - {"description":"an updated secure global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129_UPDATED","tags":["foo:bar","baz","env:test"],"value":{"secure":true,"value":"variable-secure-value-updated"}} + {"description":"an updated secure global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1673557224_UPDATED","tags":["foo:bar","baz","env:test"],"value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true,"value":"variable-secure-value-updated"}} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de + url: https://api.datadoghq.com/api/v1/synthetics/variables/c0184ae1-2234-4746-9d49-e0d1691e391b method: PUT response: - body: '{"parse_test_options":null,"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"is_totp":null,"value":{"secure":true},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129_UPDATED"}' + body: | + {"parse_test_options":null,"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"is_totp":null,"value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"c0184ae1-2234-4746-9d49-e0d1691e391b","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1673557224_UPDATED"} headers: Content-Type: - application/json @@ -125,10 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de + url: https://api.datadoghq.com/api/v1/synthetics/variables/c0184ae1-2234-4746-9d49-e0d1691e391b method: GET response: - body: '{"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129_UPDATED","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:33.072594+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"c0184ae1-2234-4746-9d49-e0d1691e391b","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1673557224_UPDATED","created_at":"2023-01-12T21:00:26.297044+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T21:00:28.351622+00:00","value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -141,10 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de + url: https://api.datadoghq.com/api/v1/synthetics/variables/c0184ae1-2234-4746-9d49-e0d1691e391b method: GET response: - body: '{"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129_UPDATED","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:33.072594+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"c0184ae1-2234-4746-9d49-e0d1691e391b","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1673557224_UPDATED","created_at":"2023-01-12T21:00:26.297044+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T21:00:28.351622+00:00","value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -157,10 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de + url: https://api.datadoghq.com/api/v1/synthetics/variables/c0184ae1-2234-4746-9d49-e0d1691e391b method: GET response: - body: '{"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129_UPDATED","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:33.072594+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"c0184ae1-2234-4746-9d49-e0d1691e391b","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1673557224_UPDATED","created_at":"2023-01-12T21:00:26.297044+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2023-01-12T21:00:28.351622+00:00","value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":true},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -172,14 +182,14 @@ interactions: form: {} headers: Accept: - - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de + - '*/*' + url: https://api.datadoghq.com/api/v1/synthetics/variables/c0184ae1-2234-4746-9d49-e0d1691e391b method: DELETE response: - body: '{}' + body: "" headers: Content-Type: - - application/json + - text/html; charset=utf-8 status: 200 OK code: 200 duration: "" @@ -189,10 +199,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de + url: https://api.datadoghq.com/api/v1/synthetics/variables/c0184ae1-2234-4746-9d49-e0d1691e391b method: GET response: - body: '{"errors": ["Synthetics global variable not found"]}' + body: '{"errors":["Synthetics global variable not found"]}' headers: Content-Type: - application/json