Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add importing of resources #51

Closed
amhn opened this issue Mar 14, 2021 · 1 comment · Fixed by #53
Closed

Add importing of resources #51

amhn opened this issue Mar 14, 2021 · 1 comment · Fixed by #53
Assignees
Labels
enhancement New feature or request

Comments

@amhn
Copy link
Contributor

amhn commented Mar 14, 2021

Summary

Add import functions to resources to allow importing of resources defined in netbox.

Example

Usage

$ terraform import netbox_ip_addresses.ip_test 1

Use this to import the address with ID 1 into the terraform state.

Implementation

See amhn@9b13e59 for possible implementation.
Tested with terraform 0.14.8 and 0.13.6 and netbox 3e4c35ffd9f6 (v2.10.6)

Tested ressources:

  • ipam_aggreagate
  • ipam_ip_addresses
  • ipam_prefix
  • ipam_service
  • ipam_vlan
  • ipam_vlan_group
  • virtualization_interface
  • virtualization_vm

Not tested:

  • tenancy_tenant
  • tenancy_tenant_group
@amhn amhn added the enhancement New feature or request label Mar 14, 2021
@smutel
Copy link
Owner

smutel commented Mar 14, 2021

Hello. Could you please open a PR ? Thanks.

amhn pushed a commit to amhn/terraform-provider-netbox that referenced this issue Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants