‎2015 Dec 01 10:19 AM
Hello Experts,
I've been trying to implement SAP API Management on one project.
For one of the APIs,
1. I created an API Proxy to be authenticated with API Keys, Checked 'Publish API Product', marked 'Enable Direct Browser Access for Your API'.
2. Build the API.
3. Got an error message 'No environment named "test", so API proxy will not be automatically deployed.'
4. On the Overview page of the API Proxy, deployed it across all the environments.
However, the URLs for these deployments were not generated. it only shows NA under the URL column.
What am I doing wrong here. Any help is appreciated.
Thanks,
Pratik.
‎2015 Dec 01 2:19 PM
Hi Pratik,
You are seeing NA under deployed URLs because during on-boarding -> Creation of Virtual Hosts , You have not provided Virtual Host alias .
Updating the Virtual Hosts created with Alias name would show Urls under deployment .
Steps to update Virtual hosts :
1. Create an file *.xml in management Server system as shown
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<VirtualHost name="Enter Virtual Host Name">
<HostAliases>
<HostAlias>Give Fully qualified Domain Name1</HostAlias>
</HostAliases>
<Interfaces/>
<Port>Provide Port Details</Port>
</VirtualHost>
2. Update the existing Virtual host
curl -u <EmailId of Sysadmin/OrgAdmin>:<Password> -X PUT http://localhost:8080/v1/organization/<Org_Name>/environment/<Env_Name>/virtualhosts/<VirtualHostNam...> -d’@./<*.xml file name> -H "Content-Type:application/xml"
Note: Alias name should be the fully qualified DNS name of the system where Router /Message processor is installed .
Regards,
Suma
‎2015 Dec 01 2:19 PM
Hi Pratik,
You are seeing NA under deployed URLs because during on-boarding -> Creation of Virtual Hosts , You have not provided Virtual Host alias .
Updating the Virtual Hosts created with Alias name would show Urls under deployment .
Steps to update Virtual hosts :
1. Create an file *.xml in management Server system as shown
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<VirtualHost name="Enter Virtual Host Name">
<HostAliases>
<HostAlias>Give Fully qualified Domain Name1</HostAlias>
</HostAliases>
<Interfaces/>
<Port>Provide Port Details</Port>
</VirtualHost>
2. Update the existing Virtual host
curl -u <EmailId of Sysadmin/OrgAdmin>:<Password> -X PUT http://localhost:8080/v1/organization/<Org_Name>/environment/<Env_Name>/virtualhosts/<VirtualHostNam...> -d’@./<*.xml file name> -H "Content-Type:application/xml"
Note: Alias name should be the fully qualified DNS name of the system where Router /Message processor is installed .
Regards,
Suma
‎2015 Dec 01 2:27 PM
Hi Suma,
Many Thanks for your reply.
Is there a way to construct the URL somehow using which I can test the Proxy without updating the Virtual host. ?
Regards,
Pratik.
‎2015 Dec 01 2:42 PM
Hi Pratik,
Yes , you can test . Below is the Url Format
http://<Give Fully qualified Domain Name>:<port>/Basepath of the proxy
Regards,
Suma
‎2015 Dec 01 3:02 PM
Hi Suma,
I had already tried that.. But it gave me a 404 error.
I'll work on updating the Virtual Host.
Also, the Port number in the URL which hosts api management is different from the port number of the Default Virtual Host as visible in Environment configuration.
I tried with both port numbers.
Regards,
Pratik
‎2015 Dec 01 3:15 PM
Hi Pratik,
From your reply this is what I understand. Correct me if am wrong
http://<Management Server IP Address>:<port>/login ... Here by default port is 9000
Can you send me the details
Regards,
Suma