get a reference for the resource you want to import (ex. by using curl tool): What does this mean?
Opened this issue · 3 comments
Seen at https://github.com/infobloxopen/terraform-provider-infoblox/blob/master/docs/index.md?plain=1#L77
What does "get a reference for the resource you want to import (ex. by using curl tool)" mean? Please provide an example curl command or something that is descriptive besides "use something like curl to get a reference."
I have a feeling this is to describe the ID of the resource you want to import. The ID is a guid resource in the infoblox grid, the easiest way to get it is to query the infoblox WAPI for the object you are looking for.
I have a feeling this is to describe the ID of the resource you want to import. The ID is a guid resource in the infoblox grid, the easiest way to get it is to query the infoblox WAPI for the object you are looking for.
query how?
there are two types of reference you can use to import your object
- call by reference that we use in our .tf files to call a object we created in the same .tf file read more blog
- other by obtaining a reference via a wapi call you can fetch objects via a simple curl command wapi documentation you will always get a reference id in the response with ref:xx***********xx format you can use this reference ID as well for importing your resource
- you can also obtain this similar reference ID in your terminal when you create a object via your terraform configuration file