Release Automation

 View Only
  • 1.  CA RA 5.5 REST API Action Authentication

    Posted Jun 20, 2016 03:52 PM

    Does someone have an example of using the REST Operation action to call the CA RA REST API?  I am attempting to call the get-artifact-versions operation, and I keep getting a "Not Authenticated" error. 

     

    Here are my action parameters:

    URI: [_CARA_REST_URL_Base]/get-artifact-versions

    Rest Verb: POST

    Expected Code: 200

    Parameters:

       application:JMApp

       artifactType:GWImport

       artifactDefinition:PCAdminPatch

    Include HTTP Headers In Response:  (no value)

    Authentication Method: BASIC

    Domain  (no value)

    Realm (no value)

    User name: Superuser

    Password: xxxxx 

    Use Preemptive authentication: false

     

    I am not currently running the action as any specific user, though I also tried this running as my CA RA service account and got the same result. 

     

    Would appreciate any help ...   Thanks!

     



  • 2.  Re: CA RA 5.5 REST API Action Authentication
    Best Answer

    Posted Jun 20, 2016 04:13 PM

    Can you change "Use Preemptive authentication" to true and try again?



  • 3.  Re: CA RA 5.5 REST API Action Authentication

    Posted Jun 20, 2016 04:15 PM

    if you enable preemptive auth, do you get the same result?

     


    Jeremy



  • 4.  Re: CA RA 5.5 REST API Action Authentication

    Posted Jun 20, 2016 05:54 PM

    Preemptive auth was the ticket!  Thanks to both of you that suggested it.

     

    Also for those that may see this in the future, using the parameters array field does not work. I instead built the JSON package into the body as {"application":"JMApp","artifactType":"GWImportFile","artifactDefinition":"PCAdminImport"}