title: Create jenkins JLNP slave programmatically
body: <p>I am able to create a new node via the Jenkins web GUI and then have the node running in a container connect back to the Jenkins master via the name and -secret value </p>
  
  <p>ex. 
  <code>docker run jenkinsci/jnlp-slave -url http://jenkins-server:port &lt;secret&gt; &lt;slave name&gt;</code></p>
  
  <p>Is there a way to programmatically create a Jenkins node and get the secret and slave name so I don't have to do it via the GUI?</p>