cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question

How do you do a 'show access-layer' in a Web API request?

I am trying to right a web API request to one of our CMA domains to get the contents of 'show access-layer'.  I am able to get my sid from a login, but when I try to do POST https://<mgmt_server>:<port>/web_api/show-access-layers I get a "total" : 0 response when I am expecting 4 responses.  I also have tried POST https://<cma_ip>:<port>/web_api/show-access-layers and still get the same response.  Any ideas on what I am missing?  I am getting a 200 OK on both.

Thanks,

3 Replies
Employee+
Employee+

Re: How do you do a 'show access-layer' in a Web API request?

When trying to access CMA data, in the login command you must provide the domain field while using the MDS IP address in the https://<mdsip>/web_api/login.

Are you using the domain field in the login?

Re: How do you do a 'show access-layer' in a Web API request?

No, would that go into the body?

0 Kudos
Employee+
Employee+

Re: How do you do a 'show access-layer' in a Web API request?

It's in the request body or data of the POST payload in the json, same place you are putting username and password.

Check Point - Management API reference