Im getting same error Unable to find credential with ID = <ID>, owner = and credentialType =...
how to passowner and credentialType ?
what to pass in content.
below is my code
curl -v --tlsv1.2 --cacert 'file.pem -H "Accept: application/json" -H "Content-Type: application/json" -H 'Authorization: Basic {key}' -X POST SolarWinds-Orion:17778/.../UpdateUsernamePasswordCredentials -H "Content-Type: application/json" -d '{"credentialId":13,"name":"name0225_snmp","username":"username0225_snmp","password":"123456","content":"","CredentialOwner":"APM","CredentialType":"SolarWinds.APM.Common.Credentials.ApmUsernamePasswordCredential"}'
"Message":"Unable to find credential with ID = 13, owner = and credentialType = SolarWinds.Orion.Core.SharedCredentials.Credentials.UsernamePasswordCredentialWithContent","ExceptionType":"SolarWinds.Orion.Core.SharedCredentials.Exceptions.CredentialNotFoundException","FullException":"SolarWinds.Orion.Core.SharedCredentials.Exceptions.CredentialNotFoundException: Unable to find credential with ID = 13, owner = and credentialType = SolarWinds.Orion.Core.SharedCredentials.Credentials.UsernamePasswordCredentialWithContent\r\n at SolarWinds.Orion.Core.SharedCredentials.CredentialDAL.GetCredentialInner[TCredential](String owner, Int32 id, Boolean ignoreDecryptErrors, Boolean includeDerivedTypes)\r\n at SolarWinds.Orion.Core.SharedCredentials.CredentialDAL.GetCredential[TCredential](Int32 id)\r\n at SolarWinds.Data.Providers.Orion.Verbs.Credentials.UpdateUsernamePasswordWithContentCredentials(Int32 credentialId, String name, String username, String password, String content)\r\n--- End of stack trace from pr* Connection #0 to host SolarWinds-Orion left intact
evious location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at SolarWinds.InformationService.Verb.VerbExecutor.ReflectionInvocation(Object hostInstance, Object[] parameters)\r\n at SolarWinds.InformationService.Verb.VerbExecutorContext.Invoke()\r\n at SolarWinds.InformationService.Core.InformationService.Invoke[T](String entity, String verb, Action`1 setupParameters, Func`2 extractReturnValue)"}