Destroy meraki_networks_devices_claim resource

Solved
niklash
Comes here often

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

1 Accepted Solution
Oren
Meraki Employee
Meraki Employee

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’).

View solution in original post

4 Replies 4
alemabrahao
Kind of a big deal

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.

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
niklash
Comes here often

But this is some missing functionality in the provider, isn't it? Because using the API I can unclaim the devices.

alemabrahao
Kind of a big deal

Because the feature does not exist.

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Oren
Meraki Employee
Meraki Employee

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’).

Get notified when there are additional replies to this discussion.