magodo / terraform-provider-restful

Terraform provider to manage RESTful resources
https://registry.terraform.io/providers/magodo/restful
Mozilla Public License 2.0
15 stars 5 forks source link

Add support for to only include a list of attributes in the output attribute #44

Closed LaurentLesle closed 1 year ago

LaurentLesle commented 1 year ago

Add an optional attribute to list the paths to be exported in the output attribute.

resources impacted:

If it sets to ["properties.loginServer", "properties.policies.quarantinePolicy.status"], it will set the following json to computed property output.

{
  "properties" : {
    "loginServer" : "registry1.azurecr.io"
    "policies" : {
      "quarantinePolicy" = {
        "status" = "disabled"
      }
    }
  }
}

Similar to https://registry.terraform.io/providers/Azure/azapi/0.1.0/docs/resources/azapi_resource#response_export_values