After creating a pipe line in code stream, we need to add a task and select the Rest for task type and POST as action because we need to get a token from vCenter Server
In the header section we must define authorization with basic method and provide the value like in screenshot. Basic + (username:password)in base64 format
As you see here is the result of task 0
Now the first task can get a token and after that the second task can execute and run an additional API request to get the info from vCenter server .
I added the new header and mapped the value to a variable which comes from previous task :
If I run the pipe line, and check the execution section in the left pane you see the result of the last running