a10networks / terraform-provider-thunder

terraform-provider-thunder
BSD 2-Clause "Simplified" License
15 stars 9 forks source link

JSON field cannot be handled. It might be undefined or disabled by other fields. #75

Closed choseh closed 6 days ago

choseh commented 6 days ago

Hey,

when trying to create a very simple client-ssl template we're receiving this issue. This is not a terraform provider issue, as it also happens when trying to interact with axapi. Anything changed here?

resource "thunder_slb_template_client_ssl" "client-test-cert" {
  name    = "client-test-tf"
  certificate_list {
    cert                = "Let_s_Encrypt.crt"
    chain_cert          = "Sub-CA-Lets_Encrypt_Authority_R10"
}
}

Error:

│ Error: axapi failure:JSON:err=Failed to handle json field "chain-cert". JSON field cannot be handled. It might be undefined or disabled by other fields.

aXAPI version: 3.0 on 5.2.1-P10,

choseh commented 6 days ago

Apparently key is now required, which is not in the docs.

choseh commented 6 days ago

https://github.com/a10networks/terraform-provider-thunder/blob/530353f5c2d58891cdbfe94880af4efff63596a4/thunder/resource_slb_template_client_ssl.go#L170C33-L170C48

should probably be Required: true now