prydin / vrealize-automation-plugin-for-jenkins

vRealize Automation Plugin for Jenkins
Other
1 stars 5 forks source link

400 Bad Request #6

Closed DevOpsDCC closed 3 years ago

DevOpsDCC commented 3 years ago

I believe there is something wrong with my credential. What is the full format for the credential and what type should I use?

When accessing the API with Postman I need to specify the refresh token in the body of the POST as well as the API token from the csp gateway.

com.vmware.vra.jenkinsplugin.vra.VRAException: HTTP/1.1 400 Bad Request URL:https://host/iaas/api/login at com.vmware.vra.jenkinsplugin.vra.VraClient.executeRequest(VraClient.java:168) at com.vmware.vra.jenkinsplugin.vra.VraClient.post(VraClient.java:142) at com.vmware.vra.jenkinsplugin.vra.VraClient.post(VraClient.java:116) at com.vmware.vra.jenkinsplugin.vra.VraClient.(VraClient.java:70) at com.vmware.vra.jenkinsplugin.vra.VraApi.(VraApi.java:77) at com.vmware.vra.jenkinsplugin.pipeline.AbstractStep.getClient(AbstractStep.java:53) at com.vmware.vra.jenkinsplugin.pipeline.DeployFromCatalogExecution.run(DeployFromCatalogExecution.java:71) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Finished: FAILURE

prydin commented 3 years ago

You only need the refresh token. We're also working on a username/password login to be released soon.

DevOpsDCC commented 3 years ago

Thanks! I will test it out – If you need some help testing things let me know. I have vRA 8.2 up in our lab with some other vRealize tools as well

Daniel Clydesdale-Cotter

From: Pontus Rydinmailto:notifications@github.com Sent: Tuesday, November 3, 2020 12:28 PM To: prydin/vrealize-automation-plugin-for-jenkinsmailto:vrealize-automation-plugin-for-jenkins@noreply.github.com Cc: Daniel Clydesdale-Cottermailto:danielccotter@hotmail.com; Authormailto:author@noreply.github.com Subject: Re: [prydin/vrealize-automation-plugin-for-jenkins] 400 Bad Request (#6)

You only need the refresh token. We're also working on a username/password login to be released soon.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fprydin%2Fvrealize-automation-plugin-for-jenkins%2Fissues%2F6%23issuecomment-721271103&data=04%7C01%7C%7C1728051463d641ae55a708d8801dd3bc%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637400212871715066%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=JAytXJPTRVfF6jedUTAw9UnUUfmpCfLzmDBkDWu4LuY%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALIAWGY4TJ2Z4LQCUH4HPETSOA4SNANCNFSM4TH7SIAQ&data=04%7C01%7C%7C1728051463d641ae55a708d8801dd3bc%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637400212871730039%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=o%2Fjap0g2DKRGQfqdRrQX2LKtDwu8%2FOJIwM8DS47%2BJ78%3D&reserved=0.

DevOpsDCC commented 3 years ago

The refresh token worked great ! Thanks