terraform-provider-phpipam icon indicating copy to clipboard operation
terraform-provider-phpipam copied to clipboard

Feature Request: Please implement new phpipam_location resource and data source

Open JonTheNiceGuy opened this issue 1 year ago • 3 comments

It would be useful to be able to define, or look up a location from the PHPIPAM service.

JonTheNiceGuy avatar Jun 08 '23 07:06 JonTheNiceGuy

API endpoint is: /api/<API_NAME>/tools/locations/. e.g.

curl https://phpipam.example.org/api/terraform/tools/locations/ -H "token: DECAFBAD1234567890abcdefghijklmnopq"
{"code":200,"success":true,"data":[{"id":"1","name":"Greenwich","description":null,"address":null,"lat":"51.477928","long":"-0.001545"}],"time":0.003}

Required fields for the resource are:

name, description, address, lat and long.

JonTheNiceGuy avatar Jun 08 '23 07:06 JonTheNiceGuy

@pavel-z1

lord-kyron avatar Jun 08 '23 07:06 lord-kyron

Hi @JonTheNiceGuy We do not have a phpipam tools controller in either the PHPIMAM SDK or the PHPIPAM Terraform Provider I have no plans to develop this controller for SDK and Terraform Provider.

You feel free to develop this controller and create Pull requests to SDK project and here.

pavel-z1 avatar Sep 05 '23 09:09 pavel-z1

Closing for long inactivity.

lord-kyron avatar Jun 06 '24 08:06 lord-kyron