Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Basyuk
Contributor
Jump to solution

Custom Application Site from Web API

Hi!

How can I get object Custom Application Site from Web API?

Method "show-application-site" return only standart Application Site.

0 Kudos
1 Solution

Accepted Solutions
Basyuk
Contributor

Turns out it's a rights issue.

I tried to send a request from another profile and got an object.

Thank you!

View solution in original post

0 Kudos
9 Replies
PhoneBoy
Admin
Admin

That is the correct API to use.
What version of management?
When you query a specific custom application, what is the precise call you make and what is the precise result you receive?

0 Kudos
Basyuk
Contributor

Management Sever version R80.40

API version 1.6.

I am use method show-application-site.
In result I am receive "Requested object [TestApp] not found".

But the object is on Management Server.

1.JPG

0 Kudos
(1)
PhoneBoy
Admin
Admin

Appears to work for me.
I am using the Demo Mode server in R80.40 and using something like:

mgmt_cli -m x.y.z.w --session-id xxxx show application-site name "mycompany.com"

mycompany.com is a Custom Application/Site that exists in the Demo Mode server.
I get the expected result.

This suggests you are not calling the API correctly or there is an underlying bug that would be fixed by applying the most recent GA JHF.
In any case, more precise details about how you are calling the API are needed.

0 Kudos
Basyuk
Contributor
0 Kudos
PhoneBoy
Admin
Admin

Right, but that doesn't tell me exactly how you are calling the API.
What precise code are you using?

0 Kudos
Basyuk
Contributor

I am use Python library cpapi.

The request looks like this:

client.api_call("show-application-site",{"name" : "TestApp"})

0 Kudos
PhoneBoy
Admin
Admin

Can you try mgmt_cli like I did above?
Also paging @chkp-royl @Omer_Kleinstern 

0 Kudos
Basyuk
Contributor

Yes, I can.

mgmt_cli calling return the correct result.

 

 

0 Kudos
Basyuk
Contributor

Turns out it's a rights issue.

I tried to send a request from another profile and got an object.

Thank you!

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events