Cisco Cisco Prime Home 6.3 Developer's Guide

Page of 78
Cisco Prime Home – Integration Guide
 
 
OL-28557-01   v5.0.1
 
40 
Interacting with the Device Lifecycle 
Use Case 
This example uses the search, subscriber, and device APIs to illustrate managing 
a device through its entire lifecycle. 
Method 
1.  Create a new subscriber 
2.  Associate a device with that subscriber 
3.  Change the state of a service to 'ENABLED' 
4.  Change some application data with synchronization 
5.  Perform an RMA on a 'broken' device 
HTTP Interaction 
Creating the Subscriber 
Request 
GET /prime-home/api/v2/templates/subscriber 
 
Response 
"code": "", 
"credentials": { 
"login": "", 
"password": "" 
}, 
"dto": {}, 
"labels": [], 
"subscriptions": [] 
}
 
Request 
POST /prime-home/api/v2/subscribers 
 
"code": 
"life-cycle-use-case-subscriber"
"credentials": 
{}
"dto": {}, 
"labels": [], 
"subscriptions": [] 
Response 
"code": "life-cycle-use-case-subscriber", 
"credentials": {}, 
"dto": {}, 
"id":3
"labels": [],