Skip to content

Releases: magodo/terraform-provider-restful

v0.12.0

04 Dec 02:16
Compare
Choose a tag to compare

0.12.0 (Dec 4, 2023)

BREAKING CHANGES

  • restful_resource & restful_operation - Remove query for poll_xxx block. During polling, the actual query used is either from the polling url_locator (as the polling URL is expected to contain the complete URL, including the query needed), or inherit from the originating request if url_locator not specified. (#73)
  • restful_resource - Update import_spec to remove some unnecessary properties, and allow body to be optional (#71)

ENHANCEMENTS

  • restful_resource data source: Support precheck (#65)
  • restful_resource data source: Supports method for GET, HEAD and (read-only) POST (#67)
  • restful_resource resource & data source: Extend the output_attrs to support arrays (#70)
  • restful_resouce (res&ds) & restful_operation: Support retry(_(create|read|update|delete)) (#75)
  • restful_operation - Support delete_(method|body|path), (precheck|poll|retry)_delete and output_attrs (#79)

BUG FIXES

  • Fix resty client TLS client config setting error: current transport is not an *http.Transport instance (#72)
  • precheck|poll expose API error if the status_locator is not code, instead of returning the error indicating the status locating from header/response failed (#78)

v0.11.1

20 Oct 02:20
fa2fa1d
Compare
Choose a tag to compare

0.11.1 (Oct 20, 2023)

BUG FIXES:

  • Provider: Fix oauth2.password decoding issue (#62)

v0.11.0

26 Apr 01:48
80c1ebb
Compare
Choose a tag to compare

0.11.0 (Apr 26, 2023)

ENHANCEMENTS:

  • Provider: New option tls_insecure_skip_verify (#58)

BUG FIXES:

  • Fix incorrect error message for data source restful_resource on read error (fc6a636)

v0.10.0

28 Feb 02:45
101101a
Compare
Choose a tag to compare

0.10.0 (Feb 28, 2023)

BREAKING CHANGES:

  • restful_{resource|operation}: Change precheck(_xxx) to be a list nested attribute (#54)
  • restful_{resource|operation}: precheck(_xxx) supports api and mutex (#55)

v0.9.0

11 Feb 03:46
c3a26fd
Compare
Choose a tag to compare

0.9.0 (Feb 11, 2023)

ENHANCEMENTS:

  • Provider - only initialize once (#49)
  • restful_resource - Introduce output_attrs to choose which attributes to export to output (#46)
  • restful_resource - data source: New attribute allow_not_exist to suppress error on 404 status code (#50)

BUG FIXES

  • Provider - Fix security.apikey validation issue (#48)

v0.8.0

03 Jan 07:29
7aeaecf
Compare
Choose a tag to compare

0.8.0 (Jan 3, 2023)

DEPENDENCY UPDATES:

  • Update hashicorp/terraform-plugin-framework to v1.0.0 (eb7bc21)

ENHANCEMENTS:

  • restful_resource - Introduce check_existance to make on-demand existance check (#35)
  • Defaults to use urlencoded when xxx_path expands with form $(body.x.y.z) (#36)
  • restful_resource - Update supports POST (7370cab)
  • restful_resource - Support {read|create}_selector to select the target body from the response of create or read, in case the response is an array of multiple bodies (#39)
  • restful_resource - Introduce force_new_attrs to support conditional replace resource (#37)

BUG FIXES

  • poll_xxx: Fix double urlencoding the URL and introduce the query attribute (#42)

v0.7.0

06 Dec 06:45
d8384c2
Compare
Choose a tag to compare

0.7.0 (Dec 6, 2022)

BREAKING CHANGES

  • Provider: refactor the security block to support more auth method (#23)
  • Provider: introduce cookie_enabled for enable/disable(default) the cookie during API contract, which was always enabled before (#29)

DEPENDENCY UPDATES:

  • Update hashicorp/terraform-plugin-framework to v0.17.0 (3bef06c)

ENHANCEMENTS:

  • restful_resource (resource): suppress the unnecessary "known after apply" for attributes like create_method, update_method, etc during update when those attributes are not set at resource level (#25)
  • restful_resource (resource): add precheck_{check|update|delete} (#26)
  • restful_operation: adds precheck (#26)

v0.6.0

24 Nov 10:51
50efe37
Compare
Choose a tag to compare

0.6.0 (Nov 24, 2022)

BREAKING CHANGES

  • name_path and id_path in restful_resource schema is now replaced by read_path (#19)
  • path is now required in the import spec for restful_resource, which was implicitly deduced by id and create_method (#19)
  • Change the syntax of status_locator and url_locator from scope[path] to scope.path. This is to be consistent as the format used in xxx_path when enclosed in $() or #() (e.g. $(body.path) (#21)

DEPENDENCY UPDATES:

  • Update hashicorp/terraform-plugin-framework to v0.16.0 (aae00cf)

ENHANCEMENTS:

  • Provider block adds delete_method (#19)
  • azurerm_restful supports delete_method to be POST (#19)
  • Optional keys update_path, delete_path, update_method, delete_method and header are added in the import spec for restful_resource` (#19)
  • Set resource id to state prior to polling (if any) (#20)

v0.5.0

02 Nov 06:36
Compare
Choose a tag to compare

0.5.0 (Nov 2, 2022)

DEPENDENCY UPDATES:

  • Update hashicorp/terraform-plugin-framework to v0.15.0 (233c932)

ENHANCEMENTS:

  • New resource option update_path: supporting some weired API that uses special URL to update (#15)

v0.4.0

24 Aug 07:36
e637523
Compare
Choose a tag to compare

0.4.0 (Aug 24, 2022)

DEPENDENCY UPDATES:

  • Update hashicorp/terraform-plugin-framework to v0.11.0 (4ea2fd2)

ENHANCEMENTS:

  • New provider/resource option merge_patch_enabled: To toggle on whether creating a JSON Merge Patch for patch update (3257061)
  • New resource restful_operation that allows users to send a POST, PUT, PATCH, DELETE request on create/update (#13)