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

Error when creating new ciscoise_endpoint or trying to update #112

Open
Aswertus opened this issue Mar 24, 2024 · 1 comment
Open

Error when creating new ciscoise_endpoint or trying to update #112

Aswertus opened this issue Mar 24, 2024 · 1 comment

Comments

@Aswertus
Copy link

When trying to create an endpoint i receive the following error:
ciscoise_endpoint.Test: Creating... Error: Failure when setting GetEndpointByID response with ciscoise_endpoint.Test, on enpoint.tf line 2, in resource "ciscoise_endpoint" "Test": 2: resource "ciscoise_endpoint" "Test" { parameters.0.custom_attributes.0.custom_attributes: '' expected type 'string', got unconvertible type 'isegosdk.ResponseEndpointGetEndpointByIDERSEndPointCustomAttributesCustomAttributes', value: 'map[]'

Im trying it with the following TF code:
resource "ciscoise_endpoint" "Test" {
provider = ciscoise
parameters {
description = "Test"
mac = "FF:FF:FF:FF:FF:FF"
name = "Test"
static_group_assignment = "false"
static_profile_assignment = "false"
}
}

ISE version and patch: 3.2 Patch 5
Terraform version: 1.7.5
ISE provider version: 0.7.0

I fear its some kind of incompatibility :( Thank you very much for your help!

@kuba-mazurkiewicz
Copy link

kuba-mazurkiewicz commented Apr 18, 2024

Hey you can try using CiscoDevNet/ise provider: https://registry.terraform.io/providers/CiscoDevNet/ise/latest/docs/resources/endpoint

TF code can look like this:

resource "ise_endpoint" "example" {
  description               = "Test"
  mac                       = "FF:FF:FF:FF:FF:FF"
  name                      = "FF:FF:FF:FF:FF:FF"
  static_group_assignment   = "false"
  static_profile_assignment = "false"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants