title: API Connect on IBM Cloud: error when trying to expose an local API through API connect on cloud
body: <p>I'm not able to expose a local rest API through API connect on cloud.</p>
  
  <blockquote>
    <p>API Connect on Cloud  : error</p>
  </blockquote>
  
  <p>I created a Rest API in my laptop using IIS, and I want to expose it through API Connect on IBM Cloud.  Since the "Push Rest API" option in IIB Web Admin is not working, I used the <code>swagger.json</code> file to get the API details manually to APIC on Cloud.  I followed the following steps:</p>
  
  <ol>
  <li><p>In IBM Cloud created resources for API Connect and Secure Gateway cloud foundry services</p></li>
  <li><p>Created a Secure Gateway Destination and have the SG client running in my laptop</p></li>
  <li><p>Created a simple Rest API using IIB V10 and deployed it to my local Integration Node.</p></li>
  <li><p>Tried to push the Rest API using the IIB Web admin by giving host as <code>api.us-south.apiconnect.appdomain.cloud</code> and my IBM Cloud account username/pwd, but it failed saying unable to connect:</p>
  
  <blockquote>
    <p>Unable to connect to IBM API Connect at host 'api.us-south.apiconnect.appdomain.cloud' port '443'</p>
  </blockquote></li>
  <li><p>Then I tried to create an API manually using the <code>swagger.json</code> file available in the IIB RestAPI project.  I used the option to create new API using "from file or URL" option in the APIC on IBM Cloud.</p></li>
  <li><p>I gave my laptop IP as the "Host" value in APIC designer</p></li>
  <li><p>In the "Assembly", I included a "Proxy" policy and updated its Target URL to <code>cap-sg-prd-2.securegateway.appdomain.cloud:17041</code></p></li>
  <li><p>When I try to test the above, I get the following error:</p>
  
  <pre><code>&lt;httpMessage&gt;Internal Server Error&lt;/httpMessage&gt;
  &lt;moreInformation&gt;Backside URL invalid&lt;/moreInformation&gt;
  </code></pre></li>
  </ol>
  
  <p>Can you please help to resolve it?</p>