diff --git a/internal/v6provider/resource_ip_test.go b/internal/v6provider/resource_ip_test.go index 6173220..932ba90 100644 --- a/internal/v6provider/resource_ip_test.go +++ b/internal/v6provider/resource_ip_test.go @@ -121,54 +121,6 @@ func TestAccKatapultIP_minimal(t *testing.T) { ImportState: true, ImportStateVerify: true, }, - }, - }) -} - -func TestAccKatapultIP_import_by_addr(t *testing.T) { - tt := newTestTools(t) - - res, err := tt.Meta.Core.GetDataCenterDefaultNetworkWithResponse(tt.Ctx, - &core.GetDataCenterDefaultNetworkParams{ - DataCenterPermalink: &tt.Meta.confDataCenter, - }) - require.NoError(t, err) - require.NotNil(t, res) - require.NotNil(t, res.JSON200) - - network := res.JSON200.Network - require.NotNil(t, network.Id) - - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, - ProtoV6ProviderFactories: tt.ProviderFactories, - - CheckDestroy: testAccCheckKatapultIPDestroy(tt), - Steps: []resource.TestStep{ - { - Config: `resource "katapult_ip" "web" {}`, - Check: resource.ComposeAggregateTestCheckFunc( - testAccCheckKatapultIPAttrs(tt, "katapult_ip.web"), - resource.TestCheckResourceAttr( - "katapult_ip.web", "network_id", *network.Id, - ), - resource.TestMatchResourceAttr( - "katapult_ip.web", - "address", regexp.MustCompile( - `^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$`, - ), - ), - resource.TestCheckResourceAttr( - "katapult_ip.web", "version", "4", - ), - resource.TestCheckResourceAttr( - "katapult_ip.web", "vip", "false", - ), - resource.TestCheckResourceAttr( - "katapult_ip.web", "label", "", - ), - ), - }, { ResourceName: "katapult_ip.web", ImportStateIdFunc: func(s *terraform.State) (string, error) { diff --git a/internal/v6provider/testdata/IP_import_by_addr.cassette.yaml b/internal/v6provider/testdata/IP_import_by_addr.cassette.yaml deleted file mode 100644 index 45946e8..0000000 --- a/internal/v6provider/testdata/IP_import_by_addr.cassette.yaml +++ /dev/null @@ -1,420 +0,0 @@ ---- -version: 1 -interactions: -- request: - body: "" - form: {} - headers: - User-Agent: - - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/data_centers/:data_center/default_network?data_center%5Bpermalink%5D=uk-lon-01 - method: GET - response: - body: '{"network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01"}}}' - headers: - Access-Control-Allow-Headers: - - Authorization, Content-Type - Access-Control-Allow-Methods: - - GET, POST, PUT, PATCH, DELETE, OPTIONS - Access-Control-Allow-Origin: - - '*' - Cache-Control: - - max-age=0, private, must-revalidate - Content-Length: - - "181" - Content-Type: - - application/json - Date: - - Mon, 12 Aug 2024 14:53:28 GMT - Etag: - - W/"d60d47b2ba0b179327bb89a97b1c0e77" - Strict-Transport-Security: - - max-age=63072000; includeSubDomains - Vary: - - Accept-Encoding - X-Ratelimit-Permitted: - - "1000" - X-Ratelimit-Remaining: - - "991" - X-Request-Id: - - 0dd19ebc-9efd-4054-9c04-e7bae555706f - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/data_centers/:data_center/default_network?data_center%5Bpermalink%5D=uk-lon-01 - method: GET - response: - body: '{"network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01"}}}' - headers: - Access-Control-Allow-Headers: - - Authorization, Content-Type - Access-Control-Allow-Methods: - - GET, POST, PUT, PATCH, DELETE, OPTIONS - Access-Control-Allow-Origin: - - '*' - Cache-Control: - - max-age=0, private, must-revalidate - Content-Length: - - "181" - Content-Type: - - application/json - Date: - - Mon, 12 Aug 2024 14:53:28 GMT - Etag: - - W/"d60d47b2ba0b179327bb89a97b1c0e77" - Strict-Transport-Security: - - max-age=63072000; includeSubDomains - Vary: - - Accept-Encoding - X-Ratelimit-Permitted: - - "1000" - X-Ratelimit-Remaining: - - "990" - X-Request-Id: - - 9e0078a5-1503-4fb6-ab13-27106cd941ea - status: 200 OK - code: 200 - duration: "" -- request: - body: '{"network":{"id":"netw_gVRkZdSKczfNg34P"},"organization":{"sub_domain":"terraform-acc-test"},"version":"ipv4"}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/organizations/:organization/ip_addresses - method: POST - response: - body: '{"ip_address":{"id":"ip_ax6jM4AVdKNM0EZP","address":"185.44.253.28","reverse_dns":"185-44-253-28.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"185.44.253.28/22","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public - Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United - Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null}}' - headers: - Access-Control-Allow-Headers: - - Authorization, Content-Type - Access-Control-Allow-Methods: - - GET, POST, PUT, PATCH, DELETE, OPTIONS - Access-Control-Allow-Origin: - - '*' - Cache-Control: - - max-age=0, private, must-revalidate - Content-Length: - - "543" - Content-Type: - - application/json - Date: - - Mon, 12 Aug 2024 14:53:28 GMT - Etag: - - W/"84dd41fedbf56cd20b0ef169ab32024b" - Strict-Transport-Security: - - max-age=63072000; includeSubDomains - Vary: - - Accept-Encoding - X-Ratelimit-Permitted: - - "1000" - X-Ratelimit-Remaining: - - "989" - X-Request-Id: - - c94c64dd-dc7e-4af3-a5a6-15e5a8640f7d - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Bid%5D=ip_ax6jM4AVdKNM0EZP - method: GET - response: - body: '{"ip_address":{"id":"ip_ax6jM4AVdKNM0EZP","address":"185.44.253.28","reverse_dns":"185-44-253-28.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"185.44.253.28/22","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public - Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United - Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null},"allocation":null}' - headers: - Access-Control-Allow-Headers: - - Authorization, Content-Type - Access-Control-Allow-Methods: - - GET, POST, PUT, PATCH, DELETE, OPTIONS - Access-Control-Allow-Origin: - - '*' - Cache-Control: - - max-age=0, private, must-revalidate - Content-Length: - - "561" - Content-Type: - - application/json - Date: - - Mon, 12 Aug 2024 14:53:28 GMT - Etag: - - W/"a2e9216ddf3314ce98f56b793c27c0d4" - Strict-Transport-Security: - - max-age=63072000; includeSubDomains - Vary: - - Accept-Encoding - X-Ratelimit-Permitted: - - "1000" - X-Ratelimit-Remaining: - - "988" - X-Request-Id: - - 2100b8d3-48bb-4f66-90fe-fa233e87ef06 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Bid%5D=ip_ax6jM4AVdKNM0EZP - method: GET - response: - body: '{"ip_address":{"id":"ip_ax6jM4AVdKNM0EZP","address":"185.44.253.28","reverse_dns":"185-44-253-28.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"185.44.253.28/22","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public - Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United - Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null},"allocation":null}' - headers: - Access-Control-Allow-Headers: - - Authorization, Content-Type - Access-Control-Allow-Methods: - - GET, POST, PUT, PATCH, DELETE, OPTIONS - Access-Control-Allow-Origin: - - '*' - Cache-Control: - - max-age=0, private, must-revalidate - Content-Length: - - "561" - Content-Type: - - application/json - Date: - - Mon, 12 Aug 2024 14:53:28 GMT - Etag: - - W/"a2e9216ddf3314ce98f56b793c27c0d4" - Strict-Transport-Security: - - max-age=63072000; includeSubDomains - Vary: - - Accept-Encoding - X-Ratelimit-Permitted: - - "1000" - X-Ratelimit-Remaining: - - "987" - X-Request-Id: - - 5bd6c7b6-0581-4e87-874c-c86dd3afc9e8 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Bid%5D=ip_ax6jM4AVdKNM0EZP - method: GET - response: - body: '{"ip_address":{"id":"ip_ax6jM4AVdKNM0EZP","address":"185.44.253.28","reverse_dns":"185-44-253-28.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"185.44.253.28/22","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public - Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United - Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null},"allocation":null}' - headers: - Access-Control-Allow-Headers: - - Authorization, Content-Type - Access-Control-Allow-Methods: - - GET, POST, PUT, PATCH, DELETE, OPTIONS - Access-Control-Allow-Origin: - - '*' - Cache-Control: - - max-age=0, private, must-revalidate - Content-Length: - - "561" - Content-Type: - - application/json - Date: - - Mon, 12 Aug 2024 14:53:29 GMT - Etag: - - W/"a2e9216ddf3314ce98f56b793c27c0d4" - Strict-Transport-Security: - - max-age=63072000; includeSubDomains - Vary: - - Accept-Encoding - X-Ratelimit-Permitted: - - "1000" - X-Ratelimit-Remaining: - - "986" - X-Request-Id: - - 83ed9b11-235d-41c0-9f55-e66edb3fcc1b - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Baddress%5D=185.44.253.28 - method: GET - response: - body: '{"ip_address":{"id":"ip_ax6jM4AVdKNM0EZP","address":"185.44.253.28","reverse_dns":"185-44-253-28.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"185.44.253.28/22","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public - Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United - Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null},"allocation":null}' - headers: - Access-Control-Allow-Headers: - - Authorization, Content-Type - Access-Control-Allow-Methods: - - GET, POST, PUT, PATCH, DELETE, OPTIONS - Access-Control-Allow-Origin: - - '*' - Cache-Control: - - max-age=0, private, must-revalidate - Content-Length: - - "561" - Content-Type: - - application/json - Date: - - Mon, 12 Aug 2024 14:53:29 GMT - Etag: - - W/"a2e9216ddf3314ce98f56b793c27c0d4" - Strict-Transport-Security: - - max-age=63072000; includeSubDomains - Vary: - - Accept-Encoding - X-Ratelimit-Permitted: - - "1000" - X-Ratelimit-Remaining: - - "985" - X-Request-Id: - - b432b1f9-9f6c-4bc9-b638-ddd25728ce72 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Bid%5D=ip_ax6jM4AVdKNM0EZP - method: GET - response: - body: '{"ip_address":{"id":"ip_ax6jM4AVdKNM0EZP","address":"185.44.253.28","reverse_dns":"185-44-253-28.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"185.44.253.28/22","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public - Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United - Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null},"allocation":null}' - headers: - Access-Control-Allow-Headers: - - Authorization, Content-Type - Access-Control-Allow-Methods: - - GET, POST, PUT, PATCH, DELETE, OPTIONS - Access-Control-Allow-Origin: - - '*' - Cache-Control: - - max-age=0, private, must-revalidate - Content-Length: - - "561" - Content-Type: - - application/json - Date: - - Mon, 12 Aug 2024 14:53:29 GMT - Etag: - - W/"a2e9216ddf3314ce98f56b793c27c0d4" - Strict-Transport-Security: - - max-age=63072000; includeSubDomains - Vary: - - Accept-Encoding - X-Ratelimit-Permitted: - - "1000" - X-Ratelimit-Remaining: - - "984" - X-Request-Id: - - 033bcc76-5000-4b43-8dec-223228332ded - status: 200 OK - code: 200 - duration: "" -- request: - body: '{"ip_address":{"id":"ip_ax6jM4AVdKNM0EZP"}}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/ip_addresses/:ip_address - method: DELETE - response: - body: '{}' - headers: - Access-Control-Allow-Headers: - - Authorization, Content-Type - Access-Control-Allow-Methods: - - GET, POST, PUT, PATCH, DELETE, OPTIONS - Access-Control-Allow-Origin: - - '*' - Cache-Control: - - max-age=0, private, must-revalidate - Content-Length: - - "2" - Content-Type: - - application/json - Date: - - Mon, 12 Aug 2024 14:53:29 GMT - Etag: - - W/"44136fa355b3678a1146ad16f7e8649e" - Strict-Transport-Security: - - max-age=63072000; includeSubDomains - Vary: - - Accept-Encoding - X-Ratelimit-Permitted: - - "1000" - X-Ratelimit-Remaining: - - "983" - X-Request-Id: - - ff5c4eeb-1147-4fc4-ae3f-470111778050 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Bid%5D=ip_ax6jM4AVdKNM0EZP - method: GET - response: - body: '{"error":{"code":"ip_address_not_found","description":"No IP addresses - were found matching any of the criteria provided in the arguments","detail":{}}}' - headers: - Access-Control-Allow-Headers: - - Authorization, Content-Type - Access-Control-Allow-Methods: - - GET, POST, PUT, PATCH, DELETE, OPTIONS - Access-Control-Allow-Origin: - - '*' - Cache-Control: - - no-cache - Content-Length: - - "151" - Content-Type: - - application/json - Date: - - Mon, 12 Aug 2024 14:53:30 GMT - Strict-Transport-Security: - - max-age=63072000; includeSubDomains - Vary: - - Accept-Encoding - X-Api-Schema: - - json-error - X-Ratelimit-Permitted: - - "1000" - X-Ratelimit-Remaining: - - "982" - X-Request-Id: - - 943d5ada-b166-47e0-9172-f921cbc88a32 - status: 404 Not Found - code: 404 - duration: "" diff --git a/internal/v6provider/testdata/IP_minimal.cassette.yaml b/internal/v6provider/testdata/IP_minimal.cassette.yaml index 9678b4a..12164db 100644 --- a/internal/v6provider/testdata/IP_minimal.cassette.yaml +++ b/internal/v6provider/testdata/IP_minimal.cassette.yaml @@ -25,7 +25,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 12 Dec 2024 15:46:59 GMT + - Mon, 12 Aug 2024 15:15:03 GMT Etag: - W/"2c9b33d800419097f42e5eccf7b390c3" Strict-Transport-Security: @@ -35,9 +35,9 @@ interactions: X-Ratelimit-Permitted: - "1000" X-Ratelimit-Remaining: - - "951" + - "999" X-Request-Id: - - 814d5983-944d-46b2-871f-a85a92d0f712 + - 65205507-ac77-4e3a-bf9a-68ec9a7e1360 status: 200 OK code: 200 duration: "" @@ -65,7 +65,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 12 Dec 2024 15:47:00 GMT + - Mon, 12 Aug 2024 15:15:03 GMT Etag: - W/"2c9b33d800419097f42e5eccf7b390c3" Strict-Transport-Security: @@ -75,9 +75,9 @@ interactions: X-Ratelimit-Permitted: - "1000" X-Ratelimit-Remaining: - - "995" + - "998" X-Request-Id: - - b301e705-3842-43d1-b00c-283326ea9fad + - c4016341-50d5-4f0c-baba-4b5c7f10bc2f status: 200 OK code: 200 duration: "" @@ -92,8 +92,8 @@ interactions: url: https://api.katapult.io/core/v1/organizations/organization/ip_addresses method: POST response: - body: '{"ip_address":{"id":"ip_l3OzU3u8C9tVIVPk","address":"185.44.253.65","reverse_dns":"185-44-253-65.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"185.44.253.65/22","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public - Network","permalink":"uk-lon-01-public","default":true,"data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United + body: '{"ip_address":{"id":"ip_f4YtK21wB7zuOXYu","address":"77.72.7.110","reverse_dns":"77-72-7-110.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"77.72.7.110/24","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public + Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null}}' headers: Access-Control-Allow-Headers: @@ -105,13 +105,55 @@ interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - "558" + - "537" + Content-Type: + - application/json + Date: + - Mon, 12 Aug 2024 15:15:05 GMT + Etag: + - W/"9f90f7990d02fe3118e627be91c6023b" + Strict-Transport-Security: + - max-age=63072000; includeSubDomains + Vary: + - Accept-Encoding + X-Ratelimit-Permitted: + - "1000" + X-Ratelimit-Remaining: + - "997" + X-Request-Id: + - 01319e13-5bbf-4e91-be0c-ba4a2a172f95 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult + url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Bid%5D=ip_f4YtK21wB7zuOXYu + method: GET + response: + body: '{"ip_address":{"id":"ip_f4YtK21wB7zuOXYu","address":"77.72.7.110","reverse_dns":"77-72-7-110.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"77.72.7.110/24","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public + Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United + Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null},"allocation":null}' + headers: + Access-Control-Allow-Headers: + - Authorization, Content-Type + Access-Control-Allow-Methods: + - GET, POST, PUT, PATCH, DELETE, OPTIONS + Access-Control-Allow-Origin: + - '*' + Cache-Control: + - max-age=0, private, must-revalidate + Content-Length: + - "555" Content-Type: - application/json Date: - - Thu, 12 Dec 2024 15:47:00 GMT + - Mon, 12 Aug 2024 15:15:05 GMT Etag: - - W/"f3eab3347b4f61f03018bee74a35155b" + - W/"45e9bf1e6587af84a6f901f4edb66a0a" Strict-Transport-Security: - max-age=63072000; includeSubDomains Vary: @@ -119,9 +161,51 @@ interactions: X-Ratelimit-Permitted: - "1000" X-Ratelimit-Remaining: - - "987" + - "996" + X-Request-Id: + - d29d2a4b-f1af-43f7-a7bd-ee4e67966b7e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult + url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Bid%5D=ip_f4YtK21wB7zuOXYu + method: GET + response: + body: '{"ip_address":{"id":"ip_f4YtK21wB7zuOXYu","address":"77.72.7.110","reverse_dns":"77-72-7-110.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"77.72.7.110/24","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public + Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United + Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null},"allocation":null}' + headers: + Access-Control-Allow-Headers: + - Authorization, Content-Type + Access-Control-Allow-Methods: + - GET, POST, PUT, PATCH, DELETE, OPTIONS + Access-Control-Allow-Origin: + - '*' + Cache-Control: + - max-age=0, private, must-revalidate + Content-Length: + - "555" + Content-Type: + - application/json + Date: + - Mon, 12 Aug 2024 15:15:05 GMT + Etag: + - W/"45e9bf1e6587af84a6f901f4edb66a0a" + Strict-Transport-Security: + - max-age=63072000; includeSubDomains + Vary: + - Accept-Encoding + X-Ratelimit-Permitted: + - "1000" + X-Ratelimit-Remaining: + - "995" X-Request-Id: - - 4da418fd-e741-4065-bd87-cfcced3d4b99 + - 9c71e9fc-cab6-4a18-b53a-528f3aefbed1 status: 200 OK code: 200 duration: "" @@ -131,11 +215,11 @@ interactions: headers: User-Agent: - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/ip_addresses/ip_address?ip_address%5Bid%5D=ip_l3OzU3u8C9tVIVPk + url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Bid%5D=ip_f4YtK21wB7zuOXYu method: GET response: - body: '{"ip_address":{"id":"ip_l3OzU3u8C9tVIVPk","address":"185.44.253.65","reverse_dns":"185-44-253-65.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"185.44.253.65/22","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public - Network","permalink":"uk-lon-01-public","default":true,"data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United + body: '{"ip_address":{"id":"ip_f4YtK21wB7zuOXYu","address":"77.72.7.110","reverse_dns":"77-72-7-110.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"77.72.7.110/24","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public + Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null},"allocation":null}' headers: Access-Control-Allow-Headers: @@ -147,13 +231,13 @@ interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - "576" + - "555" Content-Type: - application/json Date: - - Thu, 12 Dec 2024 15:47:00 GMT + - Mon, 12 Aug 2024 15:15:05 GMT Etag: - - W/"fa42e097314b3853893e791f4ed47655" + - W/"45e9bf1e6587af84a6f901f4edb66a0a" Strict-Transport-Security: - max-age=63072000; includeSubDomains Vary: @@ -161,9 +245,9 @@ interactions: X-Ratelimit-Permitted: - "1000" X-Ratelimit-Remaining: - - "972" + - "994" X-Request-Id: - - 6c4518ec-323d-47fd-9b20-7ac039b7bce6 + - 588513b4-e477-4a3c-8d26-4bb4c46be0eb status: 200 OK code: 200 duration: "" @@ -173,11 +257,11 @@ interactions: headers: User-Agent: - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/ip_addresses/ip_address?ip_address%5Bid%5D=ip_l3OzU3u8C9tVIVPk + url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Bid%5D=ip_f4YtK21wB7zuOXYu method: GET response: - body: '{"ip_address":{"id":"ip_l3OzU3u8C9tVIVPk","address":"185.44.253.65","reverse_dns":"185-44-253-65.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"185.44.253.65/22","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public - Network","permalink":"uk-lon-01-public","default":true,"data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United + body: '{"ip_address":{"id":"ip_f4YtK21wB7zuOXYu","address":"77.72.7.110","reverse_dns":"77-72-7-110.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"77.72.7.110/24","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public + Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null},"allocation":null}' headers: Access-Control-Allow-Headers: @@ -189,13 +273,13 @@ interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - "576" + - "555" Content-Type: - application/json Date: - - Thu, 12 Dec 2024 15:47:00 GMT + - Mon, 12 Aug 2024 15:15:05 GMT Etag: - - W/"fa42e097314b3853893e791f4ed47655" + - W/"45e9bf1e6587af84a6f901f4edb66a0a" Strict-Transport-Security: - max-age=63072000; includeSubDomains Vary: @@ -203,9 +287,9 @@ interactions: X-Ratelimit-Permitted: - "1000" X-Ratelimit-Remaining: - - "968" + - "993" X-Request-Id: - - aaf81f73-8179-4459-aee3-63e9c8778081 + - 786e40d9-133a-44dc-b087-8c9e0d43ed26 status: 200 OK code: 200 duration: "" @@ -215,11 +299,11 @@ interactions: headers: User-Agent: - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/ip_addresses/ip_address?ip_address%5Bid%5D=ip_l3OzU3u8C9tVIVPk + url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Baddress%5D=77.72.7.110 method: GET response: - body: '{"ip_address":{"id":"ip_l3OzU3u8C9tVIVPk","address":"185.44.253.65","reverse_dns":"185-44-253-65.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"185.44.253.65/22","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public - Network","permalink":"uk-lon-01-public","default":true,"data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United + body: '{"ip_address":{"id":"ip_f4YtK21wB7zuOXYu","address":"77.72.7.110","reverse_dns":"77-72-7-110.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"77.72.7.110/24","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public + Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null},"allocation":null}' headers: Access-Control-Allow-Headers: @@ -231,13 +315,13 @@ interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - "576" + - "555" Content-Type: - application/json Date: - - Thu, 12 Dec 2024 15:47:01 GMT + - Mon, 12 Aug 2024 15:15:05 GMT Etag: - - W/"fa42e097314b3853893e791f4ed47655" + - W/"45e9bf1e6587af84a6f901f4edb66a0a" Strict-Transport-Security: - max-age=63072000; includeSubDomains Vary: @@ -245,9 +329,9 @@ interactions: X-Ratelimit-Permitted: - "1000" X-Ratelimit-Remaining: - - "963" + - "992" X-Request-Id: - - f0f55fb1-6fc2-4250-9961-9763b2a8b357 + - 3c27224c-42ba-4f93-b7ca-4220d4299572 status: 200 OK code: 200 duration: "" @@ -257,11 +341,11 @@ interactions: headers: User-Agent: - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/ip_addresses/ip_address?ip_address%5Bid%5D=ip_l3OzU3u8C9tVIVPk + url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Bid%5D=ip_f4YtK21wB7zuOXYu method: GET response: - body: '{"ip_address":{"id":"ip_l3OzU3u8C9tVIVPk","address":"185.44.253.65","reverse_dns":"185-44-253-65.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"185.44.253.65/22","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public - Network","permalink":"uk-lon-01-public","default":true,"data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United + body: '{"ip_address":{"id":"ip_f4YtK21wB7zuOXYu","address":"77.72.7.110","reverse_dns":"77-72-7-110.rdns.katapult.io","vip":false,"label":null,"address_with_mask":"77.72.7.110/24","network":{"id":"netw_gVRkZdSKczfNg34P","name":"Public + Network","permalink":"uk-lon-01-public","data_center":{"id":"loc_UUhPmoCbpic6UX0Y","name":"London","permalink":"uk-lon-01","country":{"id":"ctry_6AO9tYYugvTGnd5b","name":"United Kingdom","iso_code2":"GB","iso_code3":"GBR","time_zone":"Europe/London","eu":false}}},"allocation_id":null,"allocation_type":null},"allocation":null}' headers: Access-Control-Allow-Headers: @@ -273,13 +357,13 @@ interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - "576" + - "555" Content-Type: - application/json Date: - - Thu, 12 Dec 2024 15:47:01 GMT + - Mon, 12 Aug 2024 15:15:05 GMT Etag: - - W/"fa42e097314b3853893e791f4ed47655" + - W/"45e9bf1e6587af84a6f901f4edb66a0a" Strict-Transport-Security: - max-age=63072000; includeSubDomains Vary: @@ -287,14 +371,14 @@ interactions: X-Ratelimit-Permitted: - "1000" X-Ratelimit-Remaining: - - "955" + - "991" X-Request-Id: - - 6ca46d6d-6a81-4a55-a851-040c7d4f6699 + - 80d71570-ed4a-426b-8aa0-848a53a764db status: 200 OK code: 200 duration: "" - request: - body: '{"ip_address":{"id":"ip_l3OzU3u8C9tVIVPk"}}' + body: '{"ip_address":{"id":"ip_f4YtK21wB7zuOXYu"}}' form: {} headers: Content-Type: @@ -319,7 +403,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 12 Dec 2024 15:47:01 GMT + - Mon, 12 Aug 2024 15:15:06 GMT Etag: - W/"44136fa355b3678a1146ad16f7e8649e" Strict-Transport-Security: @@ -329,9 +413,9 @@ interactions: X-Ratelimit-Permitted: - "1000" X-Ratelimit-Remaining: - - "950" + - "990" X-Request-Id: - - 3ce2655e-f08d-4744-910f-744926ee4a88 + - eaf7c70d-05af-401a-8c66-f243f8c18889 status: 200 OK code: 200 duration: "" @@ -341,7 +425,7 @@ interactions: headers: User-Agent: - Terraform/ (+https://www.terraform.io) Terraform-Plugin-Framework terraform-provider-katapult - url: https://api.katapult.io/core/v1/ip_addresses/ip_address?ip_address%5Bid%5D=ip_l3OzU3u8C9tVIVPk + url: https://api.katapult.io/core/v1/ip_addresses/:ip_address?ip_address%5Bid%5D=ip_f4YtK21wB7zuOXYu method: GET response: body: '{"error":{"code":"ip_address_not_found","description":"No IP addresses @@ -360,7 +444,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 12 Dec 2024 15:47:01 GMT + - Mon, 12 Aug 2024 15:15:06 GMT Strict-Transport-Security: - max-age=63072000; includeSubDomains Vary: @@ -370,9 +454,9 @@ interactions: X-Ratelimit-Permitted: - "1000" X-Ratelimit-Remaining: - - "948" + - "989" X-Request-Id: - - be4e00f8-ebf0-4982-bc68-f78140897749 + - c4efce93-2e3e-4d8b-8f0b-4fef583c3ec7 status: 404 Not Found code: 404 duration: ""