title: Rancher API call with environment API key to call console app container
body: <p>I have a requirement to call a container from Rancher UI using environment API key.</p>
  
  <p>Here's my situation:</p>
  
  <p>I have a .NetCore 2.0 console application with a test project(c# library)
  Once I build my console application with the test project, I've deployed all dll's to a Unix server from which I build my image and container using Docker.</p>
  
  <p>I am using rancher for front-end apps mgmt and setup all the necessary variables. my container is running fine and the project is doing what it's supposed to do.</p>
  
  <p>I have to make the whole project automated like windows task scheduler which can run every 5 mins if setup correctly, I would like to call the Main.cs every 5mins but in my case, I have to use  <a href="http://rancher.com/docs/rancher/v1.6/en/api/v2-beta/" rel="nofollow noreferrer">http://rancher.com/docs/rancher/v1.6/en/api/v2-beta/</a>  and call the Main.cs.</p>
  
  <p>I have created environment API key which can use to call the API and need to figure out how to make that call.</p>
  
  <p>any help will be greatly appreciated!</p>