lord-kyron / terraform-provider-phpipam

Terrform provider for PHPIPAM
https://registry.terraform.io/providers/lord-kyron/phpipam/latest
Apache License 2.0
54 stars 30 forks source link

Feature Request: Please implement new phpipam_location resource and data source #75

Closed JonTheNiceGuy closed 5 months ago

JonTheNiceGuy commented 1 year ago

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

JonTheNiceGuy commented 1 year ago

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.

lord-kyron commented 1 year ago

@pavel-z1

pavel-z1 commented 1 year ago

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.

lord-kyron commented 5 months ago

Closing for long inactivity.