When i try to add publickey as one of the authentication type for cluster admin user, i am getting "duplicate entry" error. Below is the payload
{
"applications": [
{
"application": "ssh",
"authentication_methods": ["publickey"],
"second_authentication_method": "none"
}
],
"name": "admin",
"owner": {
"name": "cluster01"
},
"role": {
"name": "admin"
}
}
Below is the response
{
"error": {
"message": "duplicate entry",
"code": "1",
"target": "name"
}
}
Attached screenshot shows the current authentication method for admin user. publickey type authentication does not exist. Any idea why ONTAP is throwing duplicate entry error when its clear that publickey type auth method doesnot exist?