Orion.Credential.UpdateUsernamePasswordWithContentCredentials Content parameters

Howdy,

Looking for additional documentation on this method in Orion.Credential.  Assuming this can be used to update cloud credentials that have additional fields beyond just the typical username/password.

Thanks

  • Some update here.  It looks like this may have worked and I figured out the arguments, but it doesn't appear that the Content argument will do what I expected.  Additionally, it appears just because the cloud account is in Orion.Credentials, it doesn't appear to be manipulatable from the API.  I could not identify a way to pass the owner or credentialtype to make SWIS happy:

    Unable to find credential with ID = <ID>, owner = and credentialType =

    I was hoping for something along the lines of being able to pass the CredentialProperty.Name = ApplicationSecretKey in the content argument, but alas, not love. 

  • Hello,

    Form what I can tell, the updatewithcontent verb is used for updating credential types used by PaloAlto REST API polling. What is the cloud credential type you are seeing listed as in Orion.Credentials?

  • Yeah I saw that in later when looking through the schema, but I was hoping it was a generic enough endpoint to be able to manipulate a more complicated credential that wasn't just a username and password.  

    The credential type I was testing with was for Azure SolarWinds.CloudMonitoring.Contract.Credentials.AzureCredentials, but the assumption is that an AWS credential would show up the same way.  

  • You are correct here, it is not manipulatable via the API. Only credentials of type SolarWinds.Orion.Core.SharedCredentials.Credentials.UsernamePasswordCredential can be updated

  • I have looked through the source code, and it seems that the UpdateUsernamePasswordWithContentCredentials verb can only be used with Palo Alto credentials at this point in time.

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