Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

Need help on Rest API call

Hi,

Please provide some steps how use the Rest API call CPO.

My requirement: Need to access Service Item from portal and get/update. some information using REST API (if any other solution provide it).                  

Thanks and regards,

Vignesh

Everyone's tags (4)
6 REPLIES
Cisco Employee

Need help on Rest API call

If you want to call into CPO, use something like SOAP UI and plug into CPO's NBWS and then you'll get the XML payloads.

If you want to call out of it, use the HTTP request activity.

otherwise if you need more help and you have a support contract, open a TAC case.

-shaun

--Shaun Roberts

Technical Leader, Services

shaurobe@cisco.com

Community Member

Need help on Rest API call

Hi Christopher,

Thanks for reply.

When i use HTTP reqest activity i am getting this error as below:

Unable to fully resolve expression, as Reference to Property ResolvedUser.Id of ProcessInstance . could not be resolved.

Relative Url Syntax:

http:///RequestCenter/nsapi/serviceitem//?Condition

Eg:

http:///RequestCenter/nsapi/serviceitem/SiDynamicDataCenterPilot/Name?ciacDDCID_PK=CBU:None:DDC5

Method: GET

Version: 1.1

Target: Cisco Cloud Portal Request Center API

Provide some inputs to resolve this.

Community Member

Need help on Rest API call

Hi Christopher,

Thanks for reply.

below is my requirement:    

Need to get Service Item data using CPO process.

1) Is there any way to get Service Item information in CPO?

If it is the Web HTTP Request, is there any wsdl url to access service item?

CCP Providing RES API to acess the si data below is the url for it.

http:///RequestCenter/nsapi/serviceitem//?Condition

How to use this in Web HTTP Request CPO activity to get the xml data ??

Regards,

Sivaram

Cisco Employee

Need help on Rest API call

yes there is. This is the way CIAC 3.0 or 3.0.1 works. You should look in that content for examples. I will not paste examples here as that's developed information and this is a public forum. If you have the CIAC 3.0+ content look in the Export Service Items process and you'll see how it has been developed. If not, then you need to get that content.

--Shaun Roberts

Technical Leader, Services

shaurobe@cisco.com

Community Member

Need help on Rest API call

Thanks Christopher,

I have verified the Export Service Items process and tried an example as follows:

1) Establish Session ID

2) Login

3) Query the Service item.

When i run the process I am able to complete the first 2 activities and in 3rd step unauthorizaion exception was occured.

Error message:

       The remote server returned an error: (401) Unauthorized.

       User does not have proper authentication..

When I tried in explorer with same query it is able to get XML as ouput.

What might be the error in this scenario? Is is it related to CCP admin previlages or it is from CPO end?

Please provide some inputs to resolve this?

Thanks and regards,

sivaram.

Cisco Employee

Need help on Rest API call

you need to make sure you are passing cookies properly from the login on. Also what user are you using?? It is the same one?

In standard CIAC, the NSAPI user must be a member of the site administration group, CPTA group, and site admin OU, and CPTA OU with the CPTA OU being their home OU.

--Shaun Roberts

Technical Leader, Services

shaurobe@cisco.com

587
Views
0
Helpful
6
Replies
CreatePlease to create content