cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
627
Views
0
Helpful
2
Replies

Bulk ServiceItems Creation though HTTP REST API call on CiscoPrimeServiceCatalog10

shalvi
Level 1
Level 1

Creating single service item is happening as mentioned below, but i want to know how to do it for bulk of service items can be processed in single request?

Please provide me xml or a way to do bulk create service items.

Create Service Item

Creates a service item.

POST URL:

http://<ServerURL>/RequestCenter/nsapi/serviceitem/process

xml:

<serviceitem>

<name>custom_sitype</name>

<serviceItemData>

<serviceItemAttribute name="Name">sit1</serviceItemAttribute>

<serviceItemAttribute name="Field1">a</serviceItemAttribute>

<serviceItemAttribute name="Field2">b</serviceItemAttribute>

</serviceItemData>

</serviceitem>

2 Replies 2

Kiran Kumar Basavaraju
Cisco Employee
Cisco Employee

This is the format we used earlier for bulk SI creation. But never tried with in CCP itself. Try your luck.

<

create

>

LaptopComputer

LT-LENVT60-17032

Thinkpad T60

LENOVO

899.99

3

2009-04-15

12:00:00

jsmith

Finance

DesktopComputer

DT-DELLV200-02274

Vostro 200

DELL

755.99

4

2010-03-01

12:00:00

Tried kiran this one, getting error:

JAXBException occurred : unexpected element (uri:"", local:"message"). Expected elements are <{}serviceitem>. 

Actually that works fine with estore 9.4 with some turn around and not working with estore 10.0