profile
viewpoint

Ask questionsHow to set object ID correctly based on response ?

Posting forward zone to Infoblox correctly but getting this Error: Internal validation failed. Object ID is not set.

resource "restapi_object" "Demo_fwd" {
  path = "/zone_forward"
  data = "{\"fqdn\":\"testapi139.me360.com\",\"forward_to\":[{\"address\":\"10.10.10.10\", \"name\":\"testapi.shared360dev.com\"}]}"
  id_attribute = "_ref"
}

When doing the same from Postman I am getting response like below, so not sure how to setup id_attribute in the resource above

"zone_forward/ZG5zLnpvbmUkLl9kZWZhdWx0LmNvbS5hZHZpc29yMzYwLnRlc3RhcGkyMDE:testapi139.me360.com/Internal"

Mastercard/terraform-provider-restapi

Answer questions irom77

Described it here , basically making infoblox return object (?_return_as_object=1)

useful!
source:https://uonfu.com/
answerer
Irek Romaniuk irom77 Self United States Small dev in Python, Go and JS. Automation and Security
Github User Rank List