- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Destroy meraki_networks_devices_claim resource
Good morning together,
I am currently doing some experiments with the cisco-open Terraform provider.
I claimed the serials into the network using the meraki_networks_devices_claim resource.
Claiming the devices works fine here, but when I want to destory my environment, the devices do not get unclaimed.
Is there any way to do this using terraform?
Kind regards,
Niklas
Solved! Go to solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Correct. The current API operations for claiming and unclaiming devices does not play well with Terraform.
We’re working on getting the underlying API operation fixed instead of adding complex logic into the provider. That will make easier for all IaC tools (TF, Ansible, Pulumi, etc’).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately, Terraform does not support unclaiming devices directly. But, you can unclaim devices via Dashboard.
First, you need to remove the devices from the network using the Meraki Dashboard or API.
So you can unclaim the devices from the organization via Dashboard.
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But this is some missing functionality in the provider, isn't it? Because using the API I can unclaim the devices.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Because the feature does not exist.
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Correct. The current API operations for claiming and unclaiming devices does not play well with Terraform.
We’re working on getting the underlying API operation fixed instead of adding complex logic into the provider. That will make easier for all IaC tools (TF, Ansible, Pulumi, etc’).
