CiscoISE / terraform-provider-ciscoise

Terraform Provider for Cisco ISE
https://registry.terraform.io/providers/CiscoISE/ciscoise/latest/docs
MIT License
9 stars 4 forks source link

Error when creating new ciscoise_endpoint or trying to update #112

Open Aswertus opened 5 months ago

Aswertus commented 5 months ago

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 commented 4 months ago

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"
}