I am working on the automation of project creation in Jenkins and wrote a Python script for that. In the script, I am getting input from users for different fields like git credentials and SSH server and creating the job. For now, the user can provide any random input for these fields and the project will be created.
Do we have any REST API in Jenkins through which we can fetch the global configuration/parameters from Jenkins and verify user input against these parameters?
eg. While we take the SSH server name from the user we will verify it with Jenkins global SSH configuration and alert the user if the SSH server name is not from the configured ones.