diff --git a/docs/resources/subaccount_environment_instance.md b/docs/resources/subaccount_environment_instance.md
index 529b5cfe..f3dcc464 100644
--- a/docs/resources/subaccount_environment_instance.md
+++ b/docs/resources/subaccount_environment_instance.md
@@ -43,6 +43,28 @@ resource "btp_subaccount_environment_instance" "cloudfoundry" {
instance_name = "my-cf-org-name"
})
}
+
+
+# creates a cloud foundry environment in a given account
+# in additon add a custom timeout for the create and delete operation
+resource "btp_subaccount_environment_instance" "cloudfoundry" {
+ subaccount_id = "6aa64c2f-38c1-49a9-b2e8-cf9fea769b7f"
+ name = "my-cf-environment"
+ environment_type = "cloudfoundry"
+ service_name = "cloudfoundry"
+ plan_name = "standard"
+ # some regions offer multiple environments of a kind and you must explicitly select the target environment in which
+ # the instance shall be created.
+ # available environments can be looked up using the btp_subaccount_environments datasource
+ parameters = jsonencode({
+ instance_name = "my-cf-org-name"
+ })
+ timeouts = {
+ create = "1h"
+ update = "35m"
+ delete = "30m"
+ }
+}
```
@@ -60,6 +82,7 @@ resource "btp_subaccount_environment_instance" "cloudfoundry" {
### Optional
- `landscape_label` (String) The name of the landscape within the logged in region on which the environment instance is created.
+- `timeouts` (Attributes) (see [below for nested schema](#nestedatt--timeouts))
### Read-Only
@@ -95,6 +118,15 @@ resource "btp_subaccount_environment_instance" "cloudfoundry" {
| `Update` | The environment instance is changed. |
| `Deprovision` | The environment instance is deleted. |
+
+### Nested Schema for `timeouts`
+
+Optional:
+
+- `create` (String) Timeout for creating the environment instance.
+- `delete` (String) Timeout for deleting the environment instance.
+- `update` (String) Timeout for updating the environment instance.
+
## Import
Import is supported using the following syntax:
diff --git a/docs/resources/subaccount_service_instance.md b/docs/resources/subaccount_service_instance.md
index 39f12847..c54566b0 100644
--- a/docs/resources/subaccount_service_instance.md
+++ b/docs/resources/subaccount_service_instance.md
@@ -31,6 +31,20 @@ resource "btp_subaccount_service_instance" "xsuaa_application" {
tenant-mode = "dedicated"
})
}
+
+# create an instance of the alert-notification service (no configuration necessary)
+# in additon add a custom timeout for the create and update operation
+resource "btp_subaccount_service_instance" "alert_notification_free" {
+ subaccount_id = "6aa64c2f-38c1-49a9-b2e8-cf9fea769b7f"
+ # The service plan ID can be looked up via the data source btp_subaccount_service_plan
+ serviceplan_id = "b50d1b0b-2059-4f21-a014-2ea87752eb48" # alert-notification - free
+ name = "my-alert-notification-instance-new"
+ timeouts = {
+ create = "25m"
+ update = "15m"
+ delete = "15m"
+ }
+}
```
@@ -46,6 +60,7 @@ resource "btp_subaccount_service_instance" "xsuaa_application" {
- `labels` (Map of Set of String) The set of words or phrases assigned to the service instance.
- `parameters` (String, Sensitive) The configuration parameters for the service instance.
+- `timeouts` (Attributes) (see [below for nested schema](#nestedatt--timeouts))
### Read-Only
@@ -60,6 +75,15 @@ resource "btp_subaccount_service_instance" "xsuaa_application" {
- `state` (String) The current state of the service instance.
- `usable` (Boolean) Shows whether the resource can be used.
+
+### Nested Schema for `timeouts`
+
+Optional:
+
+- `create` (String) Timeout for creating the service instance.
+- `delete` (String) Timeout for deleting the service instance.
+- `update` (String) Timeout for updating the service instance.
+
## Import
Import is supported using the following syntax:
diff --git a/examples/resources/btp_subaccount_environment_instance/resource.tf b/examples/resources/btp_subaccount_environment_instance/resource.tf
index 69b415cb..11c9bec1 100644
--- a/examples/resources/btp_subaccount_environment_instance/resource.tf
+++ b/examples/resources/btp_subaccount_environment_instance/resource.tf
@@ -13,3 +13,25 @@ resource "btp_subaccount_environment_instance" "cloudfoundry" {
instance_name = "my-cf-org-name"
})
}
+
+
+# creates a cloud foundry environment in a given account
+# in additon add a custom timeout for the create and delete operation
+resource "btp_subaccount_environment_instance" "cloudfoundry" {
+ subaccount_id = "6aa64c2f-38c1-49a9-b2e8-cf9fea769b7f"
+ name = "my-cf-environment"
+ environment_type = "cloudfoundry"
+ service_name = "cloudfoundry"
+ plan_name = "standard"
+ # some regions offer multiple environments of a kind and you must explicitly select the target environment in which
+ # the instance shall be created.
+ # available environments can be looked up using the btp_subaccount_environments datasource
+ parameters = jsonencode({
+ instance_name = "my-cf-org-name"
+ })
+ timeouts = {
+ create = "1h"
+ update = "35m"
+ delete = "30m"
+ }
+}
diff --git a/examples/resources/btp_subaccount_service_instance/resource.tf b/examples/resources/btp_subaccount_service_instance/resource.tf
index b595be68..5d3553ac 100644
--- a/examples/resources/btp_subaccount_service_instance/resource.tf
+++ b/examples/resources/btp_subaccount_service_instance/resource.tf
@@ -17,3 +17,17 @@ resource "btp_subaccount_service_instance" "xsuaa_application" {
tenant-mode = "dedicated"
})
}
+
+# create an instance of the alert-notification service (no configuration necessary)
+# in additon add a custom timeout for the create and update operation
+resource "btp_subaccount_service_instance" "alert_notification_free" {
+ subaccount_id = "6aa64c2f-38c1-49a9-b2e8-cf9fea769b7f"
+ # The service plan ID can be looked up via the data source btp_subaccount_service_plan
+ serviceplan_id = "b50d1b0b-2059-4f21-a014-2ea87752eb48" # alert-notification - free
+ name = "my-alert-notification-instance-new"
+ timeouts = {
+ create = "25m"
+ update = "15m"
+ delete = "15m"
+ }
+}
\ No newline at end of file
diff --git a/go.mod b/go.mod
index a968bbd9..477ed7fd 100644
--- a/go.mod
+++ b/go.mod
@@ -5,6 +5,7 @@ go 1.21
require (
github.com/hashicorp/go-uuid v1.0.3
github.com/hashicorp/terraform-plugin-framework v1.3.5
+ github.com/hashicorp/terraform-plugin-framework-timeouts v0.4.1
github.com/hashicorp/terraform-plugin-framework-validators v0.11.0
github.com/hashicorp/terraform-plugin-go v0.18.0
github.com/hashicorp/terraform-plugin-testing v1.4.0
diff --git a/go.sum b/go.sum
index 713395d3..ad877e94 100644
--- a/go.sum
+++ b/go.sum
@@ -71,6 +71,8 @@ github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQH
github.com/hashicorp/terraform-json v0.17.1/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o=
github.com/hashicorp/terraform-plugin-framework v1.3.5 h1:FJ6s3CVWVAxlhiF/jhy6hzs4AnPHiflsp9KgzTGl1wo=
github.com/hashicorp/terraform-plugin-framework v1.3.5/go.mod h1:2gGDpWiTI0irr9NSTLFAKlTi6KwGti3AoU19rFqU30o=
+github.com/hashicorp/terraform-plugin-framework-timeouts v0.4.1 h1:gm5b1kHgFFhaKFhm4h2TgvMUlNzFAtUqlcOWnWPm+9E=
+github.com/hashicorp/terraform-plugin-framework-timeouts v0.4.1/go.mod h1:MsjL1sQ9L7wGwzJ5RjcI6FzEMdyoBnw+XK8ZnOvQOLY=
github.com/hashicorp/terraform-plugin-framework-validators v0.11.0 h1:DKb1bX7/EPZUTW6F5zdwJzS/EZ/ycVD6JAW5RYOj4f8=
github.com/hashicorp/terraform-plugin-framework-validators v0.11.0/go.mod h1:dzxOiHh7O9CAwc6p8N4mR1H++LtRkl+u+21YNiBVNno=
github.com/hashicorp/terraform-plugin-go v0.18.0 h1:IwTkOS9cOW1ehLd/rG0y+u/TGLK9y6fGoBjXVUquzpE=
diff --git a/internal/provider/datasource_subaccount_environment_instance.go b/internal/provider/datasource_subaccount_environment_instance.go
index 7f45a2dc..1b675823 100644
--- a/internal/provider/datasource_subaccount_environment_instance.go
+++ b/internal/provider/datasource_subaccount_environment_instance.go
@@ -155,7 +155,7 @@ You must be assigned to the subaccount admin or viewer role.`,
}
func (ds *subaccountEnvironmentInstanceDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
- var data subaccountEnvironmentInstanceType
+ var data subaccountEnvironmentInstanceDataSourceType
diags := req.Config.Get(ctx, &data)
@@ -170,7 +170,7 @@ func (ds *subaccountEnvironmentInstanceDataSource) Read(ctx context.Context, req
return
}
- data, diags = subaccountEnvironmentInstanceValueFrom(ctx, cliRes)
+ data, diags = subaccountEnvironmentInstanceDataSourceValueFrom(ctx, cliRes)
resp.Diagnostics.Append(diags...)
diags = resp.State.Set(ctx, &data)
diff --git a/internal/provider/datasource_subaccount_service_instance.go b/internal/provider/datasource_subaccount_service_instance.go
index 3040b5f5..a7a3172d 100644
--- a/internal/provider/datasource_subaccount_service_instance.go
+++ b/internal/provider/datasource_subaccount_service_instance.go
@@ -121,7 +121,7 @@ func (ds *subaccountServiceInstanceDataSource) Schema(_ context.Context, _ datas
}
func (ds *subaccountServiceInstanceDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
- var data subaccountServiceInstanceType
+ var data subaccountServiceInstanceDataSourceType
diags := req.Config.Get(ctx, &data)
@@ -146,7 +146,7 @@ func (ds *subaccountServiceInstanceDataSource) Read(ctx context.Context, req dat
return
}
- data, diags = subaccountServiceInstanceValueFrom(ctx, cliRes)
+ data, diags = subaccountServiceInstanceDataSourceValueFrom(ctx, cliRes)
resp.Diagnostics.Append(diags...)
data.Parameters = types.StringNull() // TODO can be set once --show-parameters is works
diff --git a/internal/provider/fixtures/resource_subaccount_environment_instance.with_timeout.yaml b/internal/provider/fixtures/resource_subaccount_environment_instance.with_timeout.yaml
new file mode 100644
index 00000000..484301ee
--- /dev/null
+++ b/internal/provider/fixtures/resource_subaccount_environment_instance.with_timeout.yaml
@@ -0,0 +1,3749 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 6328a05c-d875-2e15-5bd6-4846c987b7ce
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"bf756679-a622-472f-99cb-b0a1727acaee","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:05 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 07ba69b9-41ac-483b-7ea0-20bfa0a70123
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 625.2526ms
+ - id: 1
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - bb193199-2bde-4b7e-ca3f-1c367d7ba564
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"606521fc-bb1a-41b5-94a6-b1445bf0074a","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:05 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 30e5ffd4-a33a-43a5-4607-157451d3799f
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 414.6334ms
+ - id: 2
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - a56833f7-fa6f-a28b-0542-899ea14d5358
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"0c96bf78-5d1c-481e-9e1d-f84c8a7d706c","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:06 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 7e908209-d2de-4eb5-7f1d-42b77bc47149
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 402.7756ms
+ - id: 3
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 348
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"displayName":"cloudFoundry-from-terraform","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","parameters":"{\"instance_name\":\"cf-terraform-org\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}]}","plan":"standard","service":"cloudfoundry","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 3267d48c-a76e-5055-13b3-86a76439c9b5
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?create
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:04:06 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?create
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 8a458cfc-3feb-4577-6acd-fc1fe23e2e79
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 130.9216ms
+ - id: 4
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 348
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"displayName":"cloudFoundry-from-terraform","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","parameters":"{\"instance_name\":\"cf-terraform-org\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}]}","plan":"standard","service":"cloudfoundry","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?create
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 3267d48c-a76e-5055-13b3-86a76439c9b5
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?create
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"provision","parameters":"{\"instance_name\":\"cf-terraform-org\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}]}","labels":"{\"API Endpoint\":\"https:\/\/api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\"}","customLabels":{},"type":"Provision","status":"Processing","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:04:07 AM","state":"CREATING","stateMessage":"Creating environment instance.","serviceName":"cloudfoundry","planName":"standard","jobId":"3531802"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:07 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 47e5f126-e715-4184-7118-20671638da37
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 522.3624ms
+ - id: 5
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 34209c7a-9f38-5b80-54f8-e144ad2e8eb4
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:04:43 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - b5657301-e12e-4994-60bc-e83f6b04674d
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 132.8747ms
+ - id: 6
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 34209c7a-9f38-5b80-54f8-e144ad2e8eb4
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"provision","parameters":"{\"instance_name\":\"cf-terraform-org\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\"}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Provision","status":"Processed","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:04:09 AM","state":"OK","stateMessage":"Environment instance created.","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:43 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 67dde723-1913-4532-7a11-4ac9a1b19be1
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 348.4142ms
+ - id: 7
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 39f3aaa1-b3cb-59ba-d887-4be5f901564a
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"b2e4cf38-0012-4ba6-8655-9aa9b443d98f","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:44 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - af6707b9-32e9-4f6a-7d3b-e799d14668c1
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 603.7294ms
+ - id: 8
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - ee885ae3-7c2e-dfe8-01ea-b61c5f1a8e0d
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"2582d19b-d257-4627-a290-b79be55c73d9","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:45 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 91b48a45-1eb2-444d-4f7b-8b068693d550
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 664.5179ms
+ - id: 9
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - bf9b99b1-04ff-b4dd-73cf-16eb01f620c9
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:04:45 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 440ab0f0-b068-41f0-4810-df3bbe1d0f60
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 149.0767ms
+ - id: 10
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - bf9b99b1-04ff-b4dd-73cf-16eb01f620c9
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"provision","parameters":"{\"instance_name\":\"cf-terraform-org\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\"}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Provision","status":"Processed","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:04:09 AM","state":"OK","stateMessage":"Environment instance created.","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:45 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 44548029-20bb-4d87-6afa-b5214886b1c6
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 335.1097ms
+ - id: 11
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - db337c13-b8ec-e2db-88db-c58d0af72f1a
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"c0d9476d-a0b2-4d07-8972-c1c0aa9bc1a1","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:46 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 97f5d16c-5556-45b3-4beb-c601c2b473a0
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 379.2538ms
+ - id: 12
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - bc036fee-4e13-e42a-f891-ee0b39625043
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"21093b08-d820-481e-8096-b176b63c45e6","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:46 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 9426771c-a9a4-4c9c-40be-d269d325aa50
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 409.816ms
+ - id: 13
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - d268184c-bc9f-43d6-7513-af2279930b2f
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:04:46 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 21643508-3d87-4136-7ca1-3a8d1c985b70
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 129.968ms
+ - id: 14
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - d268184c-bc9f-43d6-7513-af2279930b2f
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"provision","parameters":"{\"instance_name\":\"cf-terraform-org\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\"}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Provision","status":"Processed","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:04:09 AM","state":"OK","stateMessage":"Environment instance created.","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:46 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 5960f325-f77a-41aa-5398-b059bfd2a614
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 272.182ms
+ - id: 15
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 7f184e24-89fc-a9ea-ba9f-210810aa4c52
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"f3c3dd39-1e00-40b3-a238-f77534dd6381","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:47 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - a77f81e2-9817-4004-6d43-faaf42e32fcc
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 378.7739ms
+ - id: 16
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 4088f6d6-0536-1c42-7fe4-1307c80097ef
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"5d0fa0a7-9059-441f-9a05-60b6511e1a6e","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:47 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 52e6054e-7ea1-4a92-764d-22f7cb836778
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 350.4712ms
+ - id: 17
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 282
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}]}","plan":"standard","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 80a881fb-5e9e-ba4a-1122-9ec09e938f07
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?update
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:04:47 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?update
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 02191966-ad77-4518-79eb-32185da3d95a
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 141.045ms
+ - id: 18
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 282
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}]}","plan":"standard","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?update
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 80a881fb-5e9e-ba4a-1122-9ec09e938f07
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?update
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"jobId":"3531806"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:04:48 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 9134b315-c75e-4369-5fd2-646b817cc2b4
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 189.6549ms
+ - id: 19
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 0a2235ce-2738-8faf-197d-01087cae6d3b
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:05:00 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 50b9977a-8ce4-4ee6-4ca1-90b489919167
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 626.8572ms
+ - id: 20
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 0a2235ce-2738-8faf-197d-01087cae6d3b
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"update","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\"}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Update","status":"Processed","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:04:55 AM","state":"OK","stateMessage":"Environment instance updated.","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:05:01 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 9621bd6a-616d-455f-71ce-3d8f4cfb398b
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 328.6938ms
+ - id: 21
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 067399f2-509c-8ba9-54cf-6051507ec0cf
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"8790a98f-fdb2-4566-807b-6ac96c7c7a4d","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:05:01 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 372b649d-989e-46f5-50fe-f1fe2aef9156
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 399.3608ms
+ - id: 22
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 4ddf8685-23b1-285a-3de2-4a4689804952
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"47ddd1f0-3fc8-4d8f-9e64-caf61d68f76f","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:05:02 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 8c9ad99c-35a0-4fbd-77df-f7197d6169f4
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 507.5523ms
+ - id: 23
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 738b3e74-0a8f-31d4-733a-e21b51328b9a
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:05:02 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 2485c0fb-6fa3-4eb7-69a7-e67897a15d80
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 151.9967ms
+ - id: 24
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 738b3e74-0a8f-31d4-733a-e21b51328b9a
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"update","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\"}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Update","status":"Processed","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:04:55 AM","state":"OK","stateMessage":"Environment instance updated.","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:05:02 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - a82bcf20-986e-4910-4810-dd4e5b44b90d
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 251.9659ms
+ - id: 25
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - a05750be-2c2a-f022-bdf3-aa636b755ba2
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"336537c7-cfd3-4014-bb59-5385551d7de0","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:05:03 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - a52c188f-cc86-46ab-4976-14dc60913e58
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 437.2772ms
+ - id: 26
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - b3c754e9-0c5f-cef0-d0c1-562ae12b437c
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"30651d20-df80-420e-b56c-64644fd58c02","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:05:03 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - e62f6821-2f08-4624-40c2-4ca2e2556824
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 461.132ms
+ - id: 27
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 4a34c46a-8fbf-a862-56b2-270c5bd9a624
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"d82c7d16-26e4-42ea-96eb-de8a82ae2b1f","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:05:04 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 8db2bf79-08db-46fc-474a-ff53b8affcd7
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 366.833ms
+ - id: 28
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 142
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"confirm":"true","environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - e838f26e-4495-ad75-a05d-046d451404fd
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?delete
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:05:04 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?delete
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 99bfd653-943c-4c11-5c92-50300fad80c3
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 168.3067ms
+ - id: 29
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 142
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"confirm":"true","environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?delete
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - e838f26e-4495-ad75-a05d-046d451404fd
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?delete
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"update","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\"}","labels":"{\"API Endpoint\":\"https:\/\/api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Update","status":"Processed","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:04:55 AM","state":"OK","stateMessage":"Environment instance updated.","serviceName":"cloudfoundry","planName":"standard","jobId":"3531807"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:05:04 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 5b23928e-17c5-475b-75fd-99fe9d009ed3
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 149.8972ms
+ - id: 30
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 34cc1f09-90ec-29f2-ede3-958d1805274e
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:05:22 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - f7d1ad01-aeed-4f80-57b4-264ae50a1fbb
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 165.4585ms
+ - id: 31
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 34cc1f09-90ec-29f2-ede3-958d1805274e
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"deprovision","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\",\"purge\":false}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Deprovision","status":"Processing","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:05:05 AM","state":"DELETING","stateMessage":"Deleting org ID:[00480d52-f164-466c-a25a-db2c253bbceb]. Instance ID:[B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB].","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:05:22 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - cace3900-920d-43a2-51a8-7df1788ec644
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 204.4967ms
+ - id: 32
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - df2a3230-b83b-eabb-60d6-0e814ce0f039
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:05:40 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 0cfa4134-0257-41ec-555c-3bf9a9d48613
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 135.0918ms
+ - id: 33
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - df2a3230-b83b-eabb-60d6-0e814ce0f039
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"deprovision","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\",\"purge\":false}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Deprovision","status":"Processing","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:05:05 AM","state":"DELETING","stateMessage":"Deleting org ID:[00480d52-f164-466c-a25a-db2c253bbceb]. Instance ID:[B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB].","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:05:41 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 80552530-f8bd-4f52-7735-40321a9dd5fc
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 232.5835ms
+ - id: 34
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - caa06d49-cfde-35a2-57ff-810e8b4a77b8
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:05:51 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 5ea18d98-3b1b-4b04-6a04-d8f4942149b8
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 136.8875ms
+ - id: 35
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - caa06d49-cfde-35a2-57ff-810e8b4a77b8
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"deprovision","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\",\"purge\":false}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Deprovision","status":"Processing","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:05:05 AM","state":"DELETING","stateMessage":"Deleting org ID:[00480d52-f164-466c-a25a-db2c253bbceb]. Instance ID:[B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB].","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:05:51 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - b4bf5f13-b08a-4070-5ff5-4b6038bd69dc
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 188.3699ms
+ - id: 36
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 9faa1f0e-18bd-4cbd-4ff2-18dda53fae5b
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:06:01 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - e5582d60-a72f-41cd-52e5-0bdde3a2b999
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 143.2782ms
+ - id: 37
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 9faa1f0e-18bd-4cbd-4ff2-18dda53fae5b
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"deprovision","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\",\"purge\":false}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Deprovision","status":"Processing","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:05:05 AM","state":"DELETING","stateMessage":"Deleting org ID:[00480d52-f164-466c-a25a-db2c253bbceb]. Instance ID:[B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB].","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:06:01 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - fc2af562-64b5-4f4d-43bc-40e2c8ba8273
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 175.8164ms
+ - id: 38
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 2a1d21ad-c4c8-6858-fcf2-4051c59d34db
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:06:11 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 27db59a4-f678-4db3-4ec1-9eb525759ff2
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 117.9778ms
+ - id: 39
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 2a1d21ad-c4c8-6858-fcf2-4051c59d34db
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"deprovision","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\",\"purge\":false}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Deprovision","status":"Processing","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:05:05 AM","state":"DELETING","stateMessage":"Deleting org ID:[00480d52-f164-466c-a25a-db2c253bbceb]. Instance ID:[B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB].","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:06:12 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - af360fb9-313c-4ce4-7c88-b6081fcc21d7
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 175.8999ms
+ - id: 40
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - c4d3111f-d929-a94b-4beb-d33aa956d56a
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:06:22 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 0bbf943d-1fba-4d96-7ff4-13cc7d8cbf90
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 147.8075ms
+ - id: 41
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - c4d3111f-d929-a94b-4beb-d33aa956d56a
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"deprovision","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\",\"purge\":false}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Deprovision","status":"Processing","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:05:05 AM","state":"DELETING","stateMessage":"Deleting org ID:[00480d52-f164-466c-a25a-db2c253bbceb]. Instance ID:[B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB].","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:06:22 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - e065c76c-cbd5-4beb-5026-7d31a2f76fa4
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 149.4766ms
+ - id: 42
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 9b661438-b378-d534-5b45-a75c4254c375
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:06:32 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 8d0783a9-cae3-408f-6db8-f839b137c57e
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 186.3367ms
+ - id: 43
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 9b661438-b378-d534-5b45-a75c4254c375
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"deprovision","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\",\"purge\":false}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Deprovision","status":"Processing","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:05:05 AM","state":"DELETING","stateMessage":"Deleting org ID:[00480d52-f164-466c-a25a-db2c253bbceb]. Instance ID:[B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB].","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:06:32 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 46b8ac50-cc4e-4b4b-4bac-2aef79e239b1
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 192.5971ms
+ - id: 44
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - e6ca9c73-a917-9093-6536-8776e71a8a81
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:06:42 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 292db5b3-c760-4498-537c-336491ac6bf9
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 123.8223ms
+ - id: 45
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - e6ca9c73-a917-9093-6536-8776e71a8a81
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"deprovision","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\",\"purge\":false}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Deprovision","status":"Processing","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:05:05 AM","state":"DELETING","stateMessage":"Deleting org ID:[00480d52-f164-466c-a25a-db2c253bbceb]. Instance ID:[B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB].","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:06:43 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 410e3fc4-9b74-4d77-41c7-c6446f9c51c8
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 167.432ms
+ - id: 46
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - c1c97ae9-035b-0d9e-2413-38336e4f4445
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:06:53 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 24f43718-8d91-4d54-4cf8-ea68037f24ab
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 139.6183ms
+ - id: 47
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - c1c97ae9-035b-0d9e-2413-38336e4f4445
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"deprovision","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\",\"purge\":false}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Deprovision","status":"Processing","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:05:05 AM","state":"DELETING","stateMessage":"Deleting org ID:[00480d52-f164-466c-a25a-db2c253bbceb]. Instance ID:[B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB].","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:06:53 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - ad1b44ca-c858-432d-68cb-2587c2e4b7a1
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 211.584ms
+ - id: 48
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 9102218f-8338-4929-5468-9897ead300a1
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:07:03 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - a0575405-8f3a-44e0-52ee-bab64df302ae
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 159.2527ms
+ - id: 49
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 9102218f-8338-4929-5468-9897ead300a1
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","name":"cloudFoundry-from-terraform","brokerId":"1101E504-06B5-49B3-88E9-A21F1FEE35A2","globalAccountGUID":"03760ecf-9d89-4189-a92a-1c7efed09298","subaccountGUID":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","tenantId":"ef23ace8-6ade-4d78-9c1f-8df729548bbf","serviceId":"fa31b750-375f-4268-bee1-604811a89fd9","planId":"fc5abe63-2a7d-4848-babf-f63a5d316df1","operation":"deprovision","parameters":"{\"instance_name\":\"cf-terraform-org-updated\",\"users\":[{\"id\":\"john.doe@int.test\",\"email\":\"john.doe@int.test\"}],\"status\":\"ACTIVE\",\"purge\":false}","labels":"{\"API Endpoint\":\"https://api.cf.eu12.hana.ondemand.com\",\"Org Name\":\"cf-terraform-org\",\"Org ID\":\"00480d52-f164-466c-a25a-db2c253bbceb\",\"Org Memory Limit\":\"204,800MB\"}","customLabels":{},"type":"Deprovision","status":"Processing","environmentType":"cloudfoundry","landscapeLabel":"cf-eu12","platformId":"00480d52-f164-466c-a25a-db2c253bbceb","createdDate":"Sep 1, 2023, 11:04:07 AM","modifiedDate":"Sep 1, 2023, 11:05:05 AM","state":"DELETING","stateMessage":"Deleting org ID:[00480d52-f164-466c-a25a-db2c253bbceb]. Instance ID:[B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB].","serviceName":"cloudfoundry","planName":"standard"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:07:03 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json;charset=UTF-8
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - ded98330-d4bc-4b29-429d-81eeaedfb180
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 188.5727ms
+ - id: 50
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 116d1346-c8c8-5dc4-1478-963d5336f8ae
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:07:14 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - fe8b5e6a-01c9-47f5-635b-98d1e428833c
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 172.2141ms
+ - id: 51
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 125
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"environmentID":"B7E627EA-2CEB-47A7-BF9C-F16DBDC048EB","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 116d1346-c8c8-5dc4-1478-963d5336f8ae
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-acc-static-b8xxozer
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/accounts/environment-instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"error":"Environment instance not found [Error: 41000/404]"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:07:14 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json
+ X-Cpcli-Backend-Status:
+ - "404"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 1174eda1-9dee-4d9d-6d63-1f18863cae6e
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 134.3709ms
diff --git a/internal/provider/fixtures/resource_subaccount_service_instance_with_timeouts.yaml b/internal/provider/fixtures/resource_subaccount_service_instance_with_timeouts.yaml
new file mode 100644
index 00000000..baa8d13a
--- /dev/null
+++ b/internal/provider/fixtures/resource_subaccount_service_instance_with_timeouts.yaml
@@ -0,0 +1,2400 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 5065c826-5048-fa3c-2c46-5e0ae1a3a894
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"7332f137-ffb6-4bf0-83a0-8ecbfe23ce18","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:12:54 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - ea64e7ad-d517-4497-6e1a-2877a7087eae
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 629.7888ms
+ - id: 1
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 5af883d3-5bef-e83c-8311-c898955353e6
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"18693218-1e61-4954-8837-4bb57e1c6325","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:12:55 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 9cc70335-2d27-4c68-4d96-c844d493954d
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 458.8984ms
+ - id: 2
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 3971f97c-c3e6-2f90-ddc1-2c9e976c8f81
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"6a18fd38-fd93-4af9-b9c8-c820eb5d562c","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:12:56 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 931defea-b043-4f70-6855-f942e11f8853
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 686.5007ms
+ - id: 3
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 143
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"name":"tf-test-audit-log","plan":"02fed361-89c1-4560-82c3-0deaf93ac75b","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - a527a4ce-b5c4-8b20-0a18-01f5574cb93b
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?create
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:12:56 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?create
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 4a7ffb3a-3258-4677-61aa-251456b3eadf
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 152.9467ms
+ - id: 4
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 143
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"name":"tf-test-audit-log","plan":"02fed361-89c1-4560-82c3-0deaf93ac75b","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?create
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - a527a4ce-b5c4-8b20-0a18-01f5574cb93b
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?create
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","ready":true,"last_operation":{"id":"e692bbda-18b8-4c2e-8e21-73c2531fe9a2","ready":true,"type":"create","state":"succeeded","resource_id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","resource_type":"/v1/service_instances","platform_id":"service-manager","correlation_id":"a527a4ce-b5c4-8b20-0a18-01f5574cb93b","reschedule":false,"reschedule_timestamp":"0001-01-01T00:00:00Z","deletion_scheduled":"0001-01-01T00:00:00Z","created_at":"2023-09-01T11:12:56.514407Z","updated_at":"2023-09-01T11:12:56.820035Z"},"name":"tf-test-audit-log","service_plan_id":"02fed361-89c1-4560-82c3-0deaf93ac75b","platform_id":"service-manager","context":{"global_account_id":"03760ecf-9d89-4189-a92a-1c7efed09298","license_type":"SAPDEV","subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","env_type":"sapcp","crm_customer_id":"","origin":"sapcp","zone_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","region":"cf-eu12","platform":"sapcp","subdomain":"integration-test-services-4ie3yr1a","instance_name":"tf-test-audit-log"},"usable":true,"subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","protected":null,"created_at":"2023-09-01T11:12:56.514401Z","updated_at":"2023-09-01T11:12:56.81572128Z","labels":"subaccount_id = 59cd458e-e66e-4b60-b6d8-8f219379f9a5","username":"","password":""}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:12:56 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json
+ X-Cpcli-Backend-Status:
+ - "201"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 7754cc49-09bf-43e6-4277-fe41ef81f7eb
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 655.5962ms
+ - id: 5
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 098e0c01-1bed-21a0-40c1-6f670462de88
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:13:06 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - a68f20c8-9cfd-43af-7e72-6e5ab8d83790
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 177.3928ms
+ - id: 6
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 098e0c01-1bed-21a0-40c1-6f670462de88
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","ready":true,"last_operation":{"id":"e692bbda-18b8-4c2e-8e21-73c2531fe9a2","ready":true,"type":"create","state":"succeeded","resource_id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","resource_type":"/v1/service_instances","platform_id":"service-manager","correlation_id":"a527a4ce-b5c4-8b20-0a18-01f5574cb93b","reschedule":false,"reschedule_timestamp":"0001-01-01T00:00:00Z","deletion_scheduled":"0001-01-01T00:00:00Z","created_at":"2023-09-01T11:12:56.514407Z","updated_at":"2023-09-01T11:12:56.820035Z"},"name":"tf-test-audit-log","service_plan_id":"02fed361-89c1-4560-82c3-0deaf93ac75b","platform_id":"service-manager","context":{"global_account_id":"03760ecf-9d89-4189-a92a-1c7efed09298","license_type":"SAPDEV","subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","env_type":"sapcp","crm_customer_id":"","origin":"sapcp","zone_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","region":"cf-eu12","platform":"sapcp","subdomain":"integration-test-services-4ie3yr1a","instance_name":"tf-test-audit-log"},"usable":true,"subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","protected":null,"created_at":"2023-09-01T11:12:56.514401Z","updated_at":"2023-09-01T11:12:56.815721Z","labels":"subaccount_id = 59cd458e-e66e-4b60-b6d8-8f219379f9a5"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:06 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 446d9371-b865-438a-6b59-d1cef7bd9a56
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 197.4988ms
+ - id: 7
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - e954fba6-c838-938a-9183-bb0bfba971c8
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"63c7230e-903a-4082-8fb3-89eb6cb16c0c","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:06 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 0c3e60ac-94e6-4f54-7641-7919f046df7f
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 611.0211ms
+ - id: 8
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 472f4dab-9db9-a180-1e11-5e8edf97279b
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"6bd5cde8-91e4-4c44-b33d-063b078b5f89","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:07 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 772596bc-8977-4743-7aaa-f6f7efddd70b
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 425.3156ms
+ - id: 9
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 3099d36d-7ca4-d22c-1661-4fb8fd057296
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:13:07 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 30ef769f-1527-4df1-4a76-2861e3db47d2
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 163.3708ms
+ - id: 10
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 3099d36d-7ca4-d22c-1661-4fb8fd057296
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","ready":true,"last_operation":{"id":"e692bbda-18b8-4c2e-8e21-73c2531fe9a2","ready":true,"type":"create","state":"succeeded","resource_id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","resource_type":"/v1/service_instances","platform_id":"service-manager","correlation_id":"a527a4ce-b5c4-8b20-0a18-01f5574cb93b","reschedule":false,"reschedule_timestamp":"0001-01-01T00:00:00Z","deletion_scheduled":"0001-01-01T00:00:00Z","created_at":"2023-09-01T11:12:56.514407Z","updated_at":"2023-09-01T11:12:56.820035Z"},"name":"tf-test-audit-log","service_plan_id":"02fed361-89c1-4560-82c3-0deaf93ac75b","platform_id":"service-manager","context":{"global_account_id":"03760ecf-9d89-4189-a92a-1c7efed09298","license_type":"SAPDEV","subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","env_type":"sapcp","crm_customer_id":"","origin":"sapcp","zone_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","region":"cf-eu12","platform":"sapcp","subdomain":"integration-test-services-4ie3yr1a","instance_name":"tf-test-audit-log"},"usable":true,"subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","protected":null,"created_at":"2023-09-01T11:12:56.514401Z","updated_at":"2023-09-01T11:12:56.815721Z","labels":"subaccount_id = 59cd458e-e66e-4b60-b6d8-8f219379f9a5"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:07 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - e425475a-523a-48f1-4d81-51c5e2822a18
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 150.0864ms
+ - id: 11
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - cec0ec2c-22f9-a218-34a5-deea710060a7
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"028b5373-8acf-41cf-a73d-02732b849201","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:08 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 75c7d6c8-a0e1-423b-4731-a21e0af8ed77
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 480.5467ms
+ - id: 12
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 739949c9-c3ea-a702-2f8b-936552b27565
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"b8be5b4e-8a52-4913-9b9c-41ae34e7fcf3","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:08 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 207f1850-6dfa-4554-7cb8-d1cea1d77795
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 358.4918ms
+ - id: 13
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 75d3ea5a-3299-73e7-339e-94e5f0c028c2
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:13:08 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 09423784-c7ce-443f-5f23-61d9f0c3ff77
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 113.7871ms
+ - id: 14
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 75d3ea5a-3299-73e7-339e-94e5f0c028c2
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","ready":true,"last_operation":{"id":"e692bbda-18b8-4c2e-8e21-73c2531fe9a2","ready":true,"type":"create","state":"succeeded","resource_id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","resource_type":"/v1/service_instances","platform_id":"service-manager","correlation_id":"a527a4ce-b5c4-8b20-0a18-01f5574cb93b","reschedule":false,"reschedule_timestamp":"0001-01-01T00:00:00Z","deletion_scheduled":"0001-01-01T00:00:00Z","created_at":"2023-09-01T11:12:56.514407Z","updated_at":"2023-09-01T11:12:56.820035Z"},"name":"tf-test-audit-log","service_plan_id":"02fed361-89c1-4560-82c3-0deaf93ac75b","platform_id":"service-manager","context":{"global_account_id":"03760ecf-9d89-4189-a92a-1c7efed09298","license_type":"SAPDEV","subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","env_type":"sapcp","crm_customer_id":"","origin":"sapcp","zone_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","region":"cf-eu12","platform":"sapcp","subdomain":"integration-test-services-4ie3yr1a","instance_name":"tf-test-audit-log"},"usable":true,"subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","protected":null,"created_at":"2023-09-01T11:12:56.514401Z","updated_at":"2023-09-01T11:12:56.815721Z","labels":"subaccount_id = 59cd458e-e66e-4b60-b6d8-8f219379f9a5"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:09 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 4e040ceb-3fe6-4d61-6039-97005b3ff150
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 150.1598ms
+ - id: 15
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 45b48fb3-bc4f-a20e-8959-63354bc53481
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"96784546-41a6-4e92-8353-d0f82ca938c6","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:09 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - ef74e532-d5d5-44de-79dc-e1a0d0f1402e
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 626.023ms
+ - id: 16
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 8a2e4f63-b9df-e496-6576-2799c98569a3
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"c32d17a9-65b4-4f6a-a16e-953c427fe4b9","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:10 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - e984394a-2207-457d-5a42-5c1b995e2e97
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 422.8066ms
+ - id: 17
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 217
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","name":"tf-test-audit-log","newName":"TF-TEST-AUDIT-LOG","plan":"02fed361-89c1-4560-82c3-0deaf93ac75b","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 0fafae60-e384-2d7f-540c-658795614648
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?update
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:13:10 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?update
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 08980758-7b60-4172-4b76-88f1514b9110
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 173.5505ms
+ - id: 18
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 217
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","name":"tf-test-audit-log","newName":"TF-TEST-AUDIT-LOG","plan":"02fed361-89c1-4560-82c3-0deaf93ac75b","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?update
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 0fafae60-e384-2d7f-540c-658795614648
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?update
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: Use 'btp get services/instance da605ce1-5171-4195-b9f0-53dd9af5ec2d --subaccount 59cd458e-e66e-4b60-b6d8-8f219379f9a5' to check the status of the update instance operation you initiated.
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:10 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json
+ X-Cpcli-Backend-Status:
+ - "202"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - dae0035e-f1ec-478d-759a-5f7e6a22ae01
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 235.4355ms
+ - id: 19
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - c232fefd-eba4-b046-b70f-bb879d3a8522
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:13:10 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 64e35781-8bf8-4d19-56ce-0810b1ac1bbe
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 145.8562ms
+ - id: 20
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - c232fefd-eba4-b046-b70f-bb879d3a8522
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","ready":true,"last_operation":{"id":"a82b142e-882a-4899-9c93-a3c49e7e3cf3","ready":true,"type":"update","state":"succeeded","resource_id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","resource_type":"/v1/service_instances","platform_id":"service-manager","correlation_id":"0fafae60-e384-2d7f-540c-658795614648","reschedule":false,"reschedule_timestamp":"0001-01-01T00:00:00Z","deletion_scheduled":"0001-01-01T00:00:00Z","created_at":"2023-09-01T11:13:10.616103Z","updated_at":"2023-09-01T11:13:10.724709Z"},"name":"TF-TEST-AUDIT-LOG","service_plan_id":"02fed361-89c1-4560-82c3-0deaf93ac75b","platform_id":"service-manager","context":{"zone_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","region":"cf-eu12","env_type":"sapcp","crm_customer_id":"","platform":"sapcp","origin":"sapcp","global_account_id":"03760ecf-9d89-4189-a92a-1c7efed09298","license_type":"SAPDEV","subdomain":"integration-test-services-4ie3yr1a","instance_name":"TF-TEST-AUDIT-LOG"},"usable":true,"subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","protected":null,"created_at":"2023-09-01T11:12:56.514401Z","updated_at":"2023-09-01T11:13:10.713733Z","labels":"subaccount_id = 59cd458e-e66e-4b60-b6d8-8f219379f9a5"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:10 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - cbc98efe-f6d8-4445-7251-7e7a261cf2a9
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 164.7744ms
+ - id: 21
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 6d8a6018-834d-5dfa-4fc9-91f751827d5e
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:13:20 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 571b3d87-233c-4675-527b-c1cfa6e48d3e
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 133.6161ms
+ - id: 22
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 6d8a6018-834d-5dfa-4fc9-91f751827d5e
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","ready":true,"last_operation":{"id":"a82b142e-882a-4899-9c93-a3c49e7e3cf3","ready":true,"type":"update","state":"succeeded","resource_id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","resource_type":"/v1/service_instances","platform_id":"service-manager","correlation_id":"0fafae60-e384-2d7f-540c-658795614648","reschedule":false,"reschedule_timestamp":"0001-01-01T00:00:00Z","deletion_scheduled":"0001-01-01T00:00:00Z","created_at":"2023-09-01T11:13:10.616103Z","updated_at":"2023-09-01T11:13:10.724709Z"},"name":"TF-TEST-AUDIT-LOG","service_plan_id":"02fed361-89c1-4560-82c3-0deaf93ac75b","platform_id":"service-manager","context":{"zone_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","region":"cf-eu12","env_type":"sapcp","crm_customer_id":"","platform":"sapcp","origin":"sapcp","global_account_id":"03760ecf-9d89-4189-a92a-1c7efed09298","license_type":"SAPDEV","subdomain":"integration-test-services-4ie3yr1a","instance_name":"TF-TEST-AUDIT-LOG"},"usable":true,"subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","protected":null,"created_at":"2023-09-01T11:12:56.514401Z","updated_at":"2023-09-01T11:13:10.713733Z","labels":"subaccount_id = 59cd458e-e66e-4b60-b6d8-8f219379f9a5"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:20 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - a6a1fac3-0529-4822-74e1-cede33f07be8
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 190.2504ms
+ - id: 23
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 3d7b2e88-f958-0a65-0fbf-2aba41951ccb
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"de577985-6c02-4e9a-83c0-f8a8bce7db64","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:20 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - d6e3f5c5-9111-4101-5f97-98c4be244ee3
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 423.4976ms
+ - id: 24
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - aafb3e28-3a7f-429e-4da0-7ae03537155a
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"07620049-4a8c-42b7-b943-da37076c796e","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:21 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 915cb2de-b5bd-4f8a-7597-7bcbbb6f3cd5
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 397.0169ms
+ - id: 25
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - cb9184a4-c31e-d316-a0b8-c906b11fec38
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:13:21 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 17a537c8-914d-4585-65a8-549d1dd45f37
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 137.6972ms
+ - id: 26
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - cb9184a4-c31e-d316-a0b8-c906b11fec38
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","ready":true,"last_operation":{"id":"a82b142e-882a-4899-9c93-a3c49e7e3cf3","ready":true,"type":"update","state":"succeeded","resource_id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","resource_type":"/v1/service_instances","platform_id":"service-manager","correlation_id":"0fafae60-e384-2d7f-540c-658795614648","reschedule":false,"reschedule_timestamp":"0001-01-01T00:00:00Z","deletion_scheduled":"0001-01-01T00:00:00Z","created_at":"2023-09-01T11:13:10.616103Z","updated_at":"2023-09-01T11:13:10.724709Z"},"name":"TF-TEST-AUDIT-LOG","service_plan_id":"02fed361-89c1-4560-82c3-0deaf93ac75b","platform_id":"service-manager","context":{"zone_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","region":"cf-eu12","env_type":"sapcp","crm_customer_id":"","platform":"sapcp","origin":"sapcp","global_account_id":"03760ecf-9d89-4189-a92a-1c7efed09298","license_type":"SAPDEV","subdomain":"integration-test-services-4ie3yr1a","instance_name":"TF-TEST-AUDIT-LOG"},"usable":true,"subaccount_id":"59cd458e-e66e-4b60-b6d8-8f219379f9a5","protected":null,"created_at":"2023-09-01T11:12:56.514401Z","updated_at":"2023-09-01T11:13:10.713733Z","labels":"subaccount_id = 59cd458e-e66e-4b60-b6d8-8f219379f9a5"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:21 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 433058b1-9570-41cc-6487-42d9d772dbaf
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 102.175ms
+ - id: 27
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 46082056-7867-82a4-b3f2-c80c3712c954
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"37294a62-4dd1-47db-8aed-d8c0530d0230","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:22 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 4975599e-df6e-4f82-49d9-7b02cc791124
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 417.0554ms
+ - id: 28
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 401c1e40-d544-bc42-b440-89801fd52e0b
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"932fa79d-69ce-485c-a8e5-3064e2508c8e","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:22 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 927c509e-0325-4ef2-69b1-fc0c059703c4
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 350.5601ms
+ - id: 29
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 118
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"customIdp":"identityProvider","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"testUserPassword"}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - faafa281-c9a7-c965-bdc8-9c7f833af261
+ X-Cpcli-Format:
+ - json
+ url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 153
+ uncompressed: false
+ body: '{"issuer":"identity.provider.test","refreshToken":"57b6a190-e990-4521-b90b-3abcfa51541e","user":"john.doe@int.test","mail":"john.doe@int.test"}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "153"
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:22 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - ccdf8b00-131d-459f-73ed-acd9ac4b63d4
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 346.4566ms
+ - id: 30
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 131
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"confirm":"true","id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 7d81d451-295a-f800-7db6-69cb00b90a9c
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?delete
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:13:22 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?delete
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 1458cfb6-98ad-48a1-447d-b089fd58ce38
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 147.4265ms
+ - id: 31
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 131
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"confirm":"true","id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?delete
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - 7d81d451-295a-f800-7db6-69cb00b90a9c
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?delete
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: '{}'
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:23 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json
+ X-Cpcli-Backend-Status:
+ - "200"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 33d2cfa7-2948-4921-7275-84ec71b14ea5
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 328.4227ms
+ - id: 32
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: cpcli.cf.sap.hana.ondemand.com
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - d610e649-aa49-d329-b832-1adc1ef9323f
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - terraformintcanary
+ url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: 0
+ uncompressed: false
+ body: ""
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Length:
+ - "0"
+ Date:
+ - Fri, 01 Sep 2023 11:13:35 GMT
+ Expires:
+ - "0"
+ Location:
+ - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Frame-Options:
+ - DENY
+ X-Id-Token:
+ - redacted
+ X-Vcap-Request-Id:
+ - 34568145-cae8-4e75-596d-01b6c3f95899
+ X-Xss-Protection:
+ - "0"
+ status: 307 Temporary Redirect
+ code: 307
+ duration: 136.4424ms
+ - id: 33
+ request:
+ proto: ""
+ proto_major: 0
+ proto_minor: 0
+ content_length: 135
+ transfer_encoding: []
+ trailer: {}
+ host: ""
+ remote_addr: ""
+ request_uri: ""
+ body: |
+ {"paramValues":{"id":"da605ce1-5171-4195-b9f0-53dd9af5ec2d","parameters":"false","subaccount":"59cd458e-e66e-4b60-b6d8-8f219379f9a5"}}
+ form: {}
+ headers:
+ Content-Type:
+ - application/json
+ Referer:
+ - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/services/instance?get
+ User-Agent:
+ - Terraform/1.5.6 terraform-provider-btp/dev
+ X-Correlationid:
+ - d610e649-aa49-d329-b832-1adc1ef9323f
+ X-Cpcli-Customidp:
+ - identityProvider
+ X-Cpcli-Format:
+ - json
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Subdomain:
+ - integration-test-services-4ie3yr1a
+ X-Id-Token:
+ - redacted
+ url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/services/instance?get
+ method: POST
+ response:
+ proto: HTTP/2.0
+ proto_major: 2
+ proto_minor: 0
+ transfer_encoding: []
+ trailer: {}
+ content_length: -1
+ uncompressed: true
+ body: |
+ {"error":"NotFound","description":"could not find such /v1/service_instances"}
+ headers:
+ Cache-Control:
+ - no-cache, no-store, max-age=0, must-revalidate
+ Content-Type:
+ - application/json
+ Date:
+ - Fri, 01 Sep 2023 11:13:35 GMT
+ Expires:
+ - "0"
+ Pragma:
+ - no-cache
+ Referrer-Policy:
+ - no-referrer
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains; preload;
+ X-Content-Type-Options:
+ - nosniff
+ X-Cpcli-Backend-Mediatype:
+ - application/json
+ X-Cpcli-Backend-Status:
+ - "404"
+ X-Cpcli-Refreshtoken:
+ - redacted
+ X-Cpcli-Replacementrefreshtoken:
+ - redacted
+ X-Frame-Options:
+ - DENY
+ X-Vcap-Request-Id:
+ - 7df2e56a-2531-40a9-766d-4edbfe47e317
+ X-Xss-Protection:
+ - "0"
+ status: 200 OK
+ code: 200
+ duration: 135.4364ms
diff --git a/internal/provider/resource_subaccount_environment_instance.go b/internal/provider/resource_subaccount_environment_instance.go
index d8fa24d8..bc11b435 100644
--- a/internal/provider/resource_subaccount_environment_instance.go
+++ b/internal/provider/resource_subaccount_environment_instance.go
@@ -6,8 +6,8 @@ import (
"net/http"
"regexp"
"strings"
- "time"
+ "github.com/hashicorp/terraform-plugin-framework-timeouts/resource/timeouts"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -42,7 +42,7 @@ func (rs *subaccountEnvironmentInstanceResource) Configure(_ context.Context, re
rs.cli = req.ProviderData.(*btpcli.ClientFacade)
}
-func (rs *subaccountEnvironmentInstanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
+func (rs *subaccountEnvironmentInstanceResource) Schema(ctx context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
MarkdownDescription: `Creates an environment instance, such as a Cloud Foundry org, in a subaccount.
@@ -102,6 +102,14 @@ __Further documentation:__
stringplanmodifier.RequiresReplace(),
},
},
+ "timeouts": timeouts.Attributes(ctx, timeouts.Opts{
+ Create: true,
+ CreateDescription: "Timeout for creating the environment instance.",
+ Update: true,
+ UpdateDescription: "Timeout for updating the environment instance.",
+ Delete: true,
+ DeleteDescription: "Timeout for deleting the environment instance.",
+ }),
"id": schema.StringAttribute{
MarkdownDescription: "The ID of the environment instance.",
Computed: true,
@@ -195,6 +203,8 @@ func (rs *subaccountEnvironmentInstanceResource) Read(ctx context.Context, req r
return
}
+ timeoutsLocal := state.Timeouts
+
cliRes, _, err := rs.cli.Accounts.EnvironmentInstance.Get(ctx, state.SubaccountId.ValueString(), state.Id.ValueString())
if err != nil {
resp.Diagnostics.AddError("API Error Reading Resource Environment Instance (Subaccount)", fmt.Sprintf("%s", err))
@@ -202,6 +212,7 @@ func (rs *subaccountEnvironmentInstanceResource) Read(ctx context.Context, req r
}
updatedState, diags := subaccountEnvironmentInstanceValueFrom(ctx, cliRes)
+ updatedState.Timeouts = timeoutsLocal
if !state.Parameters.IsNull() {
updatedState.Parameters = state.Parameters
@@ -243,10 +254,15 @@ func (rs *subaccountEnvironmentInstanceResource) Create(ctx context.Context, req
return
}
+ timeoutsLocal := plan.Timeouts
plan, diags = subaccountEnvironmentInstanceValueFrom(ctx, cliRes)
plan.Parameters = types.StringValue(parameters)
resp.Diagnostics.Append(diags...)
+ createTimeout, diags := timeoutsLocal.Create(ctx, tfutils.DefaultTimeout)
+ resp.Diagnostics.Append(diags...)
+ delay, minTimeout := tfutils.CalculateDelayAndMinTimeOut(createTimeout)
+
createStateConf := &tfutils.StateChangeConf{
Pending: []string{provisioning.StateCreating},
Target: []string{provisioning.StateOK, provisioning.StateCreationFailed},
@@ -259,9 +275,9 @@ func (rs *subaccountEnvironmentInstanceResource) Create(ctx context.Context, req
return subRes, subRes.State, nil
},
- Timeout: 60 * time.Minute,
- Delay: 5 * time.Second,
- MinTimeout: 5 * time.Second,
+ Timeout: createTimeout,
+ Delay: delay,
+ MinTimeout: minTimeout,
}
updatedRes, err := createStateConf.WaitForStateContext(ctx)
@@ -271,6 +287,7 @@ func (rs *subaccountEnvironmentInstanceResource) Create(ctx context.Context, req
plan, diags = subaccountEnvironmentInstanceValueFrom(ctx, updatedRes.(provisioning.EnvironmentInstanceResponseObject))
plan.Parameters = types.StringValue(parameters)
+ plan.Timeouts = timeoutsLocal
resp.Diagnostics.Append(diags...)
diags = resp.State.Set(ctx, &plan)
@@ -296,6 +313,11 @@ func (rs *subaccountEnvironmentInstanceResource) Update(ctx context.Context, req
return
}
+ timeoutsLocal := plan.Timeouts
+ updateTimeout, diags := timeoutsLocal.Update(ctx, tfutils.DefaultTimeout)
+ resp.Diagnostics.Append(diags...)
+ delay, minTimeout := tfutils.CalculateDelayAndMinTimeOut(updateTimeout)
+
updateStateConf := &tfutils.StateChangeConf{
Pending: []string{provisioning.StateUpdating},
Target: []string{provisioning.StateOK, provisioning.StateUpdateFailed},
@@ -308,9 +330,9 @@ func (rs *subaccountEnvironmentInstanceResource) Update(ctx context.Context, req
return subRes, subRes.State, nil
},
- Timeout: 60 * time.Minute,
- Delay: 5 * time.Second,
- MinTimeout: 5 * time.Second,
+ Timeout: updateTimeout,
+ Delay: delay,
+ MinTimeout: minTimeout,
}
updatedRes, err := updateStateConf.WaitForStateContext(ctx)
@@ -321,6 +343,7 @@ func (rs *subaccountEnvironmentInstanceResource) Update(ctx context.Context, req
state, diags := subaccountEnvironmentInstanceValueFrom(ctx, updatedRes.(provisioning.EnvironmentInstanceResponseObject))
// TODO: this temporary workaround ignores the actual "parameters" value which is diverging from the planned state by an additional "status" attribute
state.Parameters = plan.Parameters
+ state.Timeouts = timeoutsLocal
resp.Diagnostics.Append(diags...)
diags = resp.State.Set(ctx, &state)
@@ -341,6 +364,10 @@ func (rs *subaccountEnvironmentInstanceResource) Delete(ctx context.Context, req
return
}
+ deleteTimeout, diags := state.Timeouts.Delete(ctx, tfutils.DefaultTimeout)
+ resp.Diagnostics.Append(diags...)
+ delay, minTimeout := tfutils.CalculateDelayAndMinTimeOut(deleteTimeout)
+
deleteStateConf := &tfutils.StateChangeConf{
Pending: []string{provisioning.StateDeleting},
Target: []string{"DELETED", provisioning.StateDeletionFailed},
@@ -357,9 +384,9 @@ func (rs *subaccountEnvironmentInstanceResource) Delete(ctx context.Context, req
return subRes, subRes.State, nil
},
- Timeout: 60 * time.Minute,
- Delay: 5 * time.Second,
- MinTimeout: 5 * time.Second,
+ Timeout: deleteTimeout,
+ Delay: delay,
+ MinTimeout: minTimeout,
}
_, err = deleteStateConf.WaitForStateContext(ctx)
diff --git a/internal/provider/resource_subaccount_environment_instance_test.go b/internal/provider/resource_subaccount_environment_instance_test.go
index 3b9562ae..1d0d0f97 100644
--- a/internal/provider/resource_subaccount_environment_instance_test.go
+++ b/internal/provider/resource_subaccount_environment_instance_test.go
@@ -58,6 +58,65 @@ func TestResourceSubaccountEnvironmentInstance(t *testing.T) {
})
})
+ t.Run("happy path - CF creation with timeout", func(t *testing.T) {
+ rec, user := setupVCR(t, "fixtures/resource_subaccount_environment_instance.with_timeout")
+ defer stopQuietly(rec)
+
+ resource.Test(t, resource.TestCase{
+ IsUnitTest: true,
+ ProtoV6ProviderFactories: getProviders(rec.GetDefaultClient()),
+ Steps: []resource.TestStep{
+ {
+ Config: hclProviderFor(user) + hclResourceSubaccountEnvironmentInstanceCFTimeout("uut",
+ "ef23ace8-6ade-4d78-9c1f-8df729548bbf",
+ "cloudFoundry-from-terraform",
+ "standard",
+ "cf-eu12",
+ "cf-terraform-org",
+ "john.doe@int.test",
+ "60m",
+ "20m",
+ "30m"),
+ Check: resource.ComposeAggregateTestCheckFunc(
+ resource.TestMatchResourceAttr("btp_subaccount_environment_instance.uut", "subaccount_id", regexpValidUUID),
+ resource.TestMatchResourceAttr("btp_subaccount_environment_instance.uut", "created_date", regexpValidRFC3999Format),
+ resource.TestMatchResourceAttr("btp_subaccount_environment_instance.uut", "last_modified", regexpValidRFC3999Format),
+ resource.TestCheckResourceAttr("btp_subaccount_environment_instance.uut", "type", "Provision"),
+ resource.TestMatchResourceAttr("btp_subaccount_environment_instance.uut", "labels", regexp.MustCompile(`"API Endpoint":"https:\/\/api\.cf\.eu12\.hana\.ondemand\.com"`)),
+ resource.TestCheckResourceAttrWith("btp_subaccount_environment_instance.uut", "parameters", containsCheckFunc(`"instance_name":"cf-terraform-org"`)),
+ resource.TestCheckResourceAttrWith("btp_subaccount_environment_instance.uut", "parameters", containsCheckFunc(`"id":"john.doe@int.test"`)),
+ resource.TestCheckResourceAttr("btp_subaccount_environment_instance.uut", "timeouts.create", "60m"),
+ resource.TestCheckResourceAttr("btp_subaccount_environment_instance.uut", "timeouts.update", "20m"),
+ resource.TestCheckResourceAttr("btp_subaccount_environment_instance.uut", "timeouts.delete", "30m"),
+ ),
+ },
+ {
+ Config: hclProviderFor(user) + hclResourceSubaccountEnvironmentInstanceCFTimeout("uut",
+ "ef23ace8-6ade-4d78-9c1f-8df729548bbf",
+ "cloudFoundry-from-terraform",
+ "standard",
+ "cf-eu12",
+ "cf-terraform-org-updated",
+ "john.doe@int.test",
+ "60m",
+ "20m",
+ "30m"),
+ Check: resource.ComposeAggregateTestCheckFunc(
+ resource.TestMatchResourceAttr("btp_subaccount_environment_instance.uut", "subaccount_id", regexpValidUUID),
+ resource.TestMatchResourceAttr("btp_subaccount_environment_instance.uut", "created_date", regexpValidRFC3999Format),
+ resource.TestMatchResourceAttr("btp_subaccount_environment_instance.uut", "last_modified", regexpValidRFC3999Format),
+ resource.TestCheckResourceAttr("btp_subaccount_environment_instance.uut", "type", "Update"),
+ resource.TestMatchResourceAttr("btp_subaccount_environment_instance.uut", "labels", regexp.MustCompile(`"API Endpoint":"https:\/\/api\.cf\.eu12\.hana\.ondemand\.com"`)),
+ resource.TestCheckResourceAttrWith("btp_subaccount_environment_instance.uut", "parameters", containsCheckFunc(`"instance_name":"cf-terraform-org-updated"`)),
+ resource.TestCheckResourceAttrWith("btp_subaccount_environment_instance.uut", "parameters", containsCheckFunc(`"id":"john.doe@int.test"`)),
+ resource.TestCheckResourceAttr("btp_subaccount_environment_instance.uut", "timeouts.create", "60m"),
+ resource.TestCheckResourceAttr("btp_subaccount_environment_instance.uut", "timeouts.update", "20m"),
+ resource.TestCheckResourceAttr("btp_subaccount_environment_instance.uut", "timeouts.delete", "30m"),
+ ),
+ },
+ },
+ })
+ })
t.Run("happy path - update", func(t *testing.T) {
rec, user := setupVCR(t, "fixtures/resource_subaccount_environment_instance.update")
defer stopQuietly(rec)
@@ -160,6 +219,36 @@ resource "btp_subaccount_environment_instance" "%s"{
}`, resourceName, subaccountId, name, planName, landscapeLabel, string(jsonCfParameters))
}
+func hclResourceSubaccountEnvironmentInstanceCFTimeout(resourceName string, subaccountId string, name string, planName string, landscapeLabel string, orgName string, user string, createTimeout string, updateTimeout string, deleteTimeout string) string {
+ cfParameters := cfOrgParameters{
+ InstanceName: orgName,
+ Users: []cfUsers{
+ {
+ Id: user,
+ Email: user,
+ },
+ },
+ }
+
+ jsonCfParameters, _ := json.Marshal(cfParameters)
+
+ return fmt.Sprintf(`
+resource "btp_subaccount_environment_instance" "%s"{
+ subaccount_id = "%s"
+ name = "%s"
+ environment_type = "cloudfoundry"
+ plan_name = "%s"
+ service_name = "cloudfoundry"
+ landscape_label = "%s"
+ parameters = %q
+ timeouts = {
+ create = "%s"
+ update = "%s"
+ delete = "%s"
+ }
+}`, resourceName, subaccountId, name, planName, landscapeLabel, string(jsonCfParameters), createTimeout, updateTimeout, deleteTimeout)
+}
+
func getEnvironmentInstanceIdForImport(resourceName string) resource.ImportStateIdFunc {
return func(state *terraform.State) (string, error) {
rs, ok := state.RootModule().Resources[resourceName]
diff --git a/internal/provider/resource_subaccount_service_instance.go b/internal/provider/resource_subaccount_service_instance.go
index e6a2e936..112fcccd 100644
--- a/internal/provider/resource_subaccount_service_instance.go
+++ b/internal/provider/resource_subaccount_service_instance.go
@@ -6,8 +6,8 @@ import (
"fmt"
"net/http"
"strings"
- "time"
+ "github.com/hashicorp/terraform-plugin-framework-timeouts/resource/timeouts"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -43,7 +43,7 @@ func (rs *subaccountServiceInstanceResource) Configure(_ context.Context, req re
rs.cli = req.ProviderData.(*btpcli.ClientFacade)
}
-func (rs *subaccountServiceInstanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
+func (rs *subaccountServiceInstanceResource) Schema(ctx context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
MarkdownDescription: `Creates a service instance in a subaccount.`,
Attributes: map[string]schema.Attribute{
@@ -78,6 +78,14 @@ func (rs *subaccountServiceInstanceResource) Schema(_ context.Context, _ resourc
jsonvalidator.ValidJSON(),
},
},
+ "timeouts": timeouts.Attributes(ctx, timeouts.Opts{
+ Create: true,
+ CreateDescription: "Timeout for creating the service instance.",
+ Update: true,
+ UpdateDescription: "Timeout for updating the service instance.",
+ Delete: true,
+ DeleteDescription: "Timeout for deleting the service instance.",
+ }),
"id": schema.StringAttribute{
MarkdownDescription: "The ID of the service instance.",
Computed: true,
@@ -135,6 +143,7 @@ func (rs *subaccountServiceInstanceResource) Read(ctx context.Context, req resou
if resp.Diagnostics.HasError() {
return
}
+ timeoutsLocal := state.Timeouts
cliRes, _, err := rs.cli.Services.Instance.GetById(ctx, state.SubaccountId.ValueString(), state.Id.ValueString())
if err != nil {
@@ -143,6 +152,7 @@ func (rs *subaccountServiceInstanceResource) Read(ctx context.Context, req resou
}
newState, diags := subaccountServiceInstanceValueFrom(ctx, cliRes)
+ newState.Timeouts = timeoutsLocal
if newState.Parameters.IsNull() {
newState.Parameters = state.Parameters
}
@@ -188,6 +198,11 @@ func (rs *subaccountServiceInstanceResource) Create(ctx context.Context, req res
state.Parameters = plan.Parameters
resp.Diagnostics.Append(diags...)
+ timeoutsLocal := plan.Timeouts
+ createTimeout, diags := timeoutsLocal.Create(ctx, tfutils.DefaultTimeout)
+ resp.Diagnostics.Append(diags...)
+ delay, minTimeout := tfutils.CalculateDelayAndMinTimeOut(createTimeout)
+
createStateConf := &tfutils.StateChangeConf{
Pending: []string{servicemanager.StateInProgress},
Target: []string{servicemanager.StateSucceeded},
@@ -205,9 +220,9 @@ func (rs *subaccountServiceInstanceResource) Create(ctx context.Context, req res
return subRes, subRes.LastOperation.State, nil
},
- Timeout: 60 * time.Minute,
- Delay: 5 * time.Second,
- MinTimeout: 5 * time.Second,
+ Timeout: createTimeout,
+ Delay: delay,
+ MinTimeout: minTimeout,
}
updatedRes, err := createStateConf.WaitForStateContext(ctx)
@@ -217,6 +232,7 @@ func (rs *subaccountServiceInstanceResource) Create(ctx context.Context, req res
state, diags = subaccountServiceInstanceValueFrom(ctx, updatedRes.(servicemanager.ServiceInstanceResponseObject))
state.Parameters = plan.Parameters
+ state.Timeouts = timeoutsLocal
resp.Diagnostics.Append(diags...)
diags = resp.State.Set(ctx, &state)
@@ -264,10 +280,15 @@ func (rs *subaccountServiceInstanceResource) Update(ctx context.Context, req res
return
}
+ timeoutsLocal := plan.Timeouts
state, diags := subaccountServiceInstanceValueFrom(ctx, cliRes)
state.Parameters = plan.Parameters
resp.Diagnostics.Append(diags...)
+ updateTimeout, diags := timeoutsLocal.Update(ctx, tfutils.DefaultTimeout)
+ resp.Diagnostics.Append(diags...)
+ delay, minTimeout := tfutils.CalculateDelayAndMinTimeOut(updateTimeout)
+
updateStateConf := &tfutils.StateChangeConf{
Pending: []string{servicemanager.StateInProgress},
Target: []string{servicemanager.StateSucceeded},
@@ -285,9 +306,9 @@ func (rs *subaccountServiceInstanceResource) Update(ctx context.Context, req res
return subRes, subRes.LastOperation.State, nil
},
- Timeout: 60 * time.Minute,
- Delay: 5 * time.Second,
- MinTimeout: 5 * time.Second,
+ Timeout: updateTimeout,
+ Delay: delay,
+ MinTimeout: minTimeout,
}
updatedRes, err := updateStateConf.WaitForStateContext(ctx)
@@ -297,6 +318,7 @@ func (rs *subaccountServiceInstanceResource) Update(ctx context.Context, req res
state, diags = subaccountServiceInstanceValueFrom(ctx, updatedRes.(servicemanager.ServiceInstanceResponseObject))
state.Parameters = plan.Parameters
+ state.Timeouts = timeoutsLocal
resp.Diagnostics.Append(diags...)
diags = resp.State.Set(ctx, state)
@@ -317,6 +339,10 @@ func (rs *subaccountServiceInstanceResource) Delete(ctx context.Context, req res
return
}
+ deleteTimeout, diags := state.Timeouts.Delete(ctx, tfutils.DefaultTimeout)
+ resp.Diagnostics.Append(diags...)
+ delay, minTimeout := tfutils.CalculateDelayAndMinTimeOut(deleteTimeout)
+
deleteStateConf := &tfutils.StateChangeConf{
Pending: []string{servicemanager.StateInProgress},
Target: []string{"DELETED"},
@@ -338,9 +364,9 @@ func (rs *subaccountServiceInstanceResource) Delete(ctx context.Context, req res
return subRes, subRes.LastOperation.State, nil
},
- Timeout: 60 * time.Minute,
- Delay: 5 * time.Second,
- MinTimeout: 5 * time.Second,
+ Timeout: deleteTimeout,
+ Delay: delay,
+ MinTimeout: minTimeout,
}
_, err = deleteStateConf.WaitForStateContext(ctx)
diff --git a/internal/provider/resource_subaccount_service_instance_test.go b/internal/provider/resource_subaccount_service_instance_test.go
index f9a5677f..7fbade68 100644
--- a/internal/provider/resource_subaccount_service_instance_test.go
+++ b/internal/provider/resource_subaccount_service_instance_test.go
@@ -78,6 +78,62 @@ func TestResourceSubaccountServiceInstance(t *testing.T) {
})
})
+ t.Run("happy path - simple service creation with timeout", func(t *testing.T) {
+ rec, user := setupVCR(t, "fixtures/resource_subaccount_service_instance_with_timeouts")
+ defer stopQuietly(rec)
+
+ resource.Test(t, resource.TestCase{
+ IsUnitTest: true,
+ ProtoV6ProviderFactories: getProviders(rec.GetDefaultClient()),
+ Steps: []resource.TestStep{
+ {
+ Config: hclProviderFor(user) + hclResourceSubaccountServiceInstanceWoParametersWithTimeouts("uut",
+ "59cd458e-e66e-4b60-b6d8-8f219379f9a5",
+ "tf-test-audit-log",
+ "02fed361-89c1-4560-82c3-0deaf93ac75b",
+ "15m",
+ "15m",
+ "20m"),
+ Check: resource.ComposeAggregateTestCheckFunc(
+ resource.TestMatchResourceAttr("btp_subaccount_service_instance.uut", "id", regexpValidUUID),
+ resource.TestMatchResourceAttr("btp_subaccount_service_instance.uut", "subaccount_id", regexpValidUUID),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "serviceplan_id", "02fed361-89c1-4560-82c3-0deaf93ac75b"),
+ resource.TestMatchResourceAttr("btp_subaccount_service_instance.uut", "created_date", regexpValidRFC3999Format),
+ resource.TestMatchResourceAttr("btp_subaccount_service_instance.uut", "last_modified", regexpValidRFC3999Format),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "usable", "true"),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "name", "tf-test-audit-log"),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "platform_id", "service-manager"),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "timeouts.create", "15m"),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "timeouts.update", "15m"),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "timeouts.delete", "20m"),
+ ),
+ },
+ {
+ Config: hclProviderFor(user) + hclResourceSubaccountServiceInstanceWoParametersWithTimeouts("uut",
+ "59cd458e-e66e-4b60-b6d8-8f219379f9a5",
+ "TF-TEST-AUDIT-LOG",
+ "02fed361-89c1-4560-82c3-0deaf93ac75b",
+ "15m",
+ "15m",
+ "20m"),
+ Check: resource.ComposeAggregateTestCheckFunc(
+ resource.TestMatchResourceAttr("btp_subaccount_service_instance.uut", "id", regexpValidUUID),
+ resource.TestMatchResourceAttr("btp_subaccount_service_instance.uut", "subaccount_id", regexpValidUUID),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "serviceplan_id", "02fed361-89c1-4560-82c3-0deaf93ac75b"),
+ resource.TestMatchResourceAttr("btp_subaccount_service_instance.uut", "created_date", regexpValidRFC3999Format),
+ resource.TestMatchResourceAttr("btp_subaccount_service_instance.uut", "last_modified", regexpValidRFC3999Format),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "usable", "true"),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "name", "TF-TEST-AUDIT-LOG"),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "platform_id", "service-manager"),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "timeouts.create", "15m"),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "timeouts.update", "15m"),
+ resource.TestCheckResourceAttr("btp_subaccount_service_instance.uut", "timeouts.delete", "20m"),
+ ),
+ },
+ },
+ })
+ })
+
t.Run("happy path - simple service creation with parameters", func(t *testing.T) {
rec, user := setupVCR(t, "fixtures/resource_subaccount_service_instance_with_parameters")
defer stopQuietly(rec)
@@ -175,6 +231,21 @@ func hclResourceSubaccountServiceInstanceWoParameters(resourceName string, subac
}`, resourceName, subaccountId, name, servicePlanId)
}
+func hclResourceSubaccountServiceInstanceWoParametersWithTimeouts(resourceName string, subaccountId string, name string, servicePlanId string, createTimeout string, updateTimeout string, deleteTimeout string) string {
+
+ return fmt.Sprintf(`
+ resource "btp_subaccount_service_instance" "%s"{
+ subaccount_id = "%s"
+ name = "%s"
+ serviceplan_id = "%s"
+ timeouts = {
+ create = "%s"
+ update = "%s"
+ delete = "%s"
+ }
+ }`, resourceName, subaccountId, name, servicePlanId, createTimeout, updateTimeout, deleteTimeout)
+}
+
func hclResourceSubaccountServiceInstanceWithParameters(resourceName string, subaccountId string, name string, servicePlanId string) string {
destinationInitData := testDestinationInitData{
diff --git a/internal/provider/type_subaccount_environment_instance.go b/internal/provider/type_subaccount_environment_instance.go
index 3c340a2b..123ed9f2 100644
--- a/internal/provider/type_subaccount_environment_instance.go
+++ b/internal/provider/type_subaccount_environment_instance.go
@@ -3,6 +3,7 @@ package provider
import (
"context"
+ "github.com/hashicorp/terraform-plugin-framework-timeouts/resource/timeouts"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
@@ -10,6 +11,65 @@ import (
)
type subaccountEnvironmentInstanceType struct {
+ SubaccountId types.String `tfsdk:"subaccount_id"`
+ Id types.String `tfsdk:"id"`
+ BrokerId types.String `tfsdk:"broker_id"`
+ CreatedDate types.String `tfsdk:"created_date"`
+ CustomLabels types.Map `tfsdk:"custom_labels"`
+ DashboardUrl types.String `tfsdk:"dashboard_url"`
+ Description types.String `tfsdk:"description"`
+ EnvironmentType types.String `tfsdk:"environment_type"`
+ Labels types.String `tfsdk:"labels"`
+ LandscapeLabel types.String `tfsdk:"landscape_label"`
+ LastModified types.String `tfsdk:"last_modified"`
+ Name types.String `tfsdk:"name"`
+ Operation types.String `tfsdk:"operation"`
+ Parameters types.String `tfsdk:"parameters"`
+ PlanId types.String `tfsdk:"plan_id"`
+ PlanName types.String `tfsdk:"plan_name"`
+ PlatformId types.String `tfsdk:"platform_id"`
+ ServiceId types.String `tfsdk:"service_id"`
+ ServiceName types.String `tfsdk:"service_name"`
+ State types.String `tfsdk:"state"`
+ TenantId types.String `tfsdk:"tenant_id"`
+ Type_ types.String `tfsdk:"type"`
+ Timeouts timeouts.Value `tfsdk:"timeouts"`
+}
+
+func subaccountEnvironmentInstanceValueFrom(ctx context.Context, value provisioning.EnvironmentInstanceResponseObject) (subaccountEnvironmentInstanceType, diag.Diagnostics) {
+ environmentInstance := subaccountEnvironmentInstanceType{
+ Id: types.StringValue(value.Id),
+ BrokerId: types.StringValue(value.BrokerId),
+ CreatedDate: timeToValue(value.CreatedDate.Time()),
+ DashboardUrl: types.StringValue(value.DashboardUrl),
+ Description: types.StringValue(value.Description),
+ EnvironmentType: types.StringValue(value.EnvironmentType),
+ Labels: types.StringValue(value.Labels),
+ LandscapeLabel: types.StringValue(value.LandscapeLabel),
+ LastModified: timeToValue(value.ModifiedDate.Time()),
+ Name: types.StringValue(value.Name),
+ Operation: types.StringValue(value.Operation),
+ Parameters: types.StringValue(value.Parameters),
+ PlanId: types.StringValue(value.PlanId),
+ PlanName: types.StringValue(value.PlanName),
+ PlatformId: types.StringValue(value.PlatformId),
+ ServiceId: types.StringValue(value.ServiceId),
+ ServiceName: types.StringValue(value.ServiceName),
+ SubaccountId: types.StringValue(value.SubaccountGUID),
+ State: types.StringValue(value.State),
+ TenantId: types.StringValue(value.TenantId),
+ Type_: types.StringValue(value.Type_),
+ }
+
+ var diags, diagnostics diag.Diagnostics
+
+ environmentInstance.CustomLabels, diags = types.MapValueFrom(ctx, types.SetType{ElemType: types.StringType}, value.CustomLabels)
+ diagnostics.Append(diags...)
+
+ return environmentInstance, diagnostics
+}
+
+type subaccountEnvironmentInstanceDataSourceType struct {
SubaccountId types.String `tfsdk:"subaccount_id"`
Id types.String `tfsdk:"id"`
BrokerId types.String `tfsdk:"broker_id"`
@@ -34,8 +94,8 @@ type subaccountEnvironmentInstanceType struct {
Type_ types.String `tfsdk:"type"`
}
-func subaccountEnvironmentInstanceValueFrom(ctx context.Context, value provisioning.EnvironmentInstanceResponseObject) (subaccountEnvironmentInstanceType, diag.Diagnostics) {
- environmentInstance := subaccountEnvironmentInstanceType{
+func subaccountEnvironmentInstanceDataSourceValueFrom(ctx context.Context, value provisioning.EnvironmentInstanceResponseObject) (subaccountEnvironmentInstanceDataSourceType, diag.Diagnostics) {
+ environmentInstanceDataSource := subaccountEnvironmentInstanceDataSourceType{
Id: types.StringValue(value.Id),
BrokerId: types.StringValue(value.BrokerId),
CreatedDate: timeToValue(value.CreatedDate.Time()),
@@ -61,8 +121,8 @@ func subaccountEnvironmentInstanceValueFrom(ctx context.Context, value provision
var diags, diagnostics diag.Diagnostics
- environmentInstance.CustomLabels, diags = types.MapValueFrom(ctx, types.SetType{ElemType: types.StringType}, value.CustomLabels)
+ environmentInstanceDataSource.CustomLabels, diags = types.MapValueFrom(ctx, types.SetType{ElemType: types.StringType}, value.CustomLabels)
diagnostics.Append(diags...)
- return environmentInstance, diagnostics
+ return environmentInstanceDataSource, diagnostics
}
diff --git a/internal/provider/type_subaccount_service_instance.go b/internal/provider/type_subaccount_service_instance.go
index 5e7fff44..614007e2 100644
--- a/internal/provider/type_subaccount_service_instance.go
+++ b/internal/provider/type_subaccount_service_instance.go
@@ -3,6 +3,7 @@ package provider
import (
"context"
+ "github.com/hashicorp/terraform-plugin-framework-timeouts/resource/timeouts"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
@@ -10,6 +11,52 @@ import (
)
type subaccountServiceInstanceType struct {
+ SubaccountId types.String `tfsdk:"subaccount_id"`
+ Id types.String `tfsdk:"id"`
+ Name types.String `tfsdk:"name"`
+ Parameters types.String `tfsdk:"parameters"`
+ Ready types.Bool `tfsdk:"ready"`
+ ServicePlanId types.String `tfsdk:"serviceplan_id"`
+ PlatformId types.String `tfsdk:"platform_id"`
+ ReferencedInstanceId types.String `tfsdk:"referenced_instance_id"`
+ Shared types.Bool `tfsdk:"shared"`
+ Context types.Map `tfsdk:"context"`
+ Usable types.Bool `tfsdk:"usable"`
+ State types.String `tfsdk:"state"`
+ CreatedDate types.String `tfsdk:"created_date"`
+ LastModified types.String `tfsdk:"last_modified"`
+ Labels types.Map `tfsdk:"labels"`
+ Timeouts timeouts.Value `tfsdk:"timeouts"`
+}
+
+func subaccountServiceInstanceValueFrom(ctx context.Context, value servicemanager.ServiceInstanceResponseObject) (subaccountServiceInstanceType, diag.Diagnostics) {
+ serviceInstance := subaccountServiceInstanceType{
+ SubaccountId: types.StringValue(value.SubaccountId),
+ Id: types.StringValue(value.Id),
+ Ready: types.BoolValue(value.Ready),
+ Name: types.StringValue(value.Name),
+ ServicePlanId: types.StringValue(value.ServicePlanId),
+ PlatformId: types.StringValue(value.PlatformId),
+ ReferencedInstanceId: types.StringValue(value.ReferencedInstanceId),
+ Shared: types.BoolValue(value.Shared),
+ Usable: types.BoolValue(value.Usable),
+ State: types.StringValue(value.LastOperation.State),
+ CreatedDate: timeToValue(value.CreatedAt),
+ LastModified: timeToValue(value.UpdatedAt),
+ }
+
+ var diags, diagnostics diag.Diagnostics
+
+ serviceInstance.Context, diags = types.MapValueFrom(ctx, types.StringType, value.Context)
+ diagnostics.Append(diags...)
+
+ serviceInstance.Labels, diags = types.MapValueFrom(ctx, types.SetType{ElemType: types.StringType}, value.Labels)
+ diagnostics.Append(diags...)
+
+ return serviceInstance, diagnostics
+}
+
+type subaccountServiceInstanceDataSourceType struct {
SubaccountId types.String `tfsdk:"subaccount_id"`
Id types.String `tfsdk:"id"`
Name types.String `tfsdk:"name"`
@@ -27,8 +74,8 @@ type subaccountServiceInstanceType struct {
Labels types.Map `tfsdk:"labels"`
}
-func subaccountServiceInstanceValueFrom(ctx context.Context, value servicemanager.ServiceInstanceResponseObject) (subaccountServiceInstanceType, diag.Diagnostics) {
- serviceInstance := subaccountServiceInstanceType{
+func subaccountServiceInstanceDataSourceValueFrom(ctx context.Context, value servicemanager.ServiceInstanceResponseObject) (subaccountServiceInstanceDataSourceType, diag.Diagnostics) {
+ serviceInstance := subaccountServiceInstanceDataSourceType{
SubaccountId: types.StringValue(value.SubaccountId),
Id: types.StringValue(value.Id),
Ready: types.BoolValue(value.Ready),
diff --git a/internal/tfutils/tfutils.go b/internal/tfutils/tfutils.go
index fcf5a50f..8e23dfc8 100644
--- a/internal/tfutils/tfutils.go
+++ b/internal/tfutils/tfutils.go
@@ -3,12 +3,17 @@ package tfutils
import (
"encoding/json"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework/types"
+ "math"
"reflect"
+ "time"
+
+ "github.com/hashicorp/terraform-plugin-framework/types"
)
const btpcliTag = "btpcli"
+const DefaultTimeout = 10 * time.Minute
+
type any interface{}
type equalityPredicate[E any] func(E, E) bool
@@ -142,3 +147,14 @@ func setContains[S ~[]E, E any](set S, element E, isEqual equalityPredicate[E])
}
return false
}
+
+func CalculateDelayAndMinTimeOut(timeout time.Duration) (delay time.Duration, minTimeout time.Duration) {
+ // We define the polling interval as 1/100 of the timeout value in seconds
+ // For 10 minutes this results in 6 seconds polling interval
+ // For 1 hour this results in 36 seconds polling interval
+ delay = time.Duration(math.Round(timeout.Seconds()/100)) * time.Second
+
+ // We set the minTimeout equal to the polling interval
+ minTimeout = delay
+ return
+}