05-11-2017 09:48 AM - edited 03-18-2019 01:06 PM
I am trying to access the API from my CMS server by going through the HTTPS route and I believe I am missing one piece or more. This is a all in one server we are using just as a proof of concept.
I have created the user account from MMP by doing
user add apiadmin api and then I applied the password twice.
Going to the https://<ipaddress>:445 of the server is the admin page also
Going through Firefox poster only gets me a 404 error below.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /api/v1/callProfiles was not found on this server.</p>
</body></html>
I have included my webadmin status which http redirect is turned off currently as it is enabled on the webbridge
Solved! Go to Solution.
05-11-2017 11:19 AM
No, you're missing the point, the ONLY thing you need to configure in your server to use the API, is the Web Admin.
You're not using port 443 (which is the port you're trying to use due to https:), you said you changed it to 445, your https request needs to go to port 445 as well.
https://<ip address of server>:port/api/v1/something
In your case, it would be <IP>:445
05-11-2017 10:23 AM
What are you using as the URL?
05-11-2017 10:28 AM
Thanks Jaime for the response. I guess what I should have asked is what is the correct URL that I should be using to access it the API
https://<ip address> gets to the webpage where the Meeting App client will be downloaded
https://<ip address> get to the MMP login (tried the apiadmin login and it fails)
05-11-2017 10:33 AM
Same as web admin and same port you configured is used for API
Start on page 160 to see some examples
http://www.cisco.com/c/dam/en/us/td/docs/conferencing/ciscoMeetingServer/Deployment_Guide/Version-2-1/Cisco-Meeting-Server-2-1-Scalable-and-Resilient-Deployments.pdf
05-11-2017 11:10 AM
Jaime,
If I enter https://<ip address of server>/api/v1/outboundDialPlanRules I receive "Page could not be found"
If I enter the command callbridge
In the address field: There is "none"
Is that the issue? If so, how is an address inputed in there?
I have attached the callbridge output along with a restart for you
05-11-2017 11:19 AM
No, you're missing the point, the ONLY thing you need to configure in your server to use the API, is the Web Admin.
You're not using port 443 (which is the port you're trying to use due to https:), you said you changed it to 445, your https request needs to go to port 445 as well.
https://<ip address of server>:port/api/v1/something
In your case, it would be <IP>:445
05-11-2017 11:33 AM
Amazing what putting a :445 will get you. I was able to perform a GET for the information. The document which provided the examples was a big help also.
Thanks for the help
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide