Cisco Cisco Prime Home 6.3 开发者指南
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": {
"credentials": {
"login": "",
"password": ""
"password": ""
},
"dto": {},
"labels": [],
"subscriptions": []
"dto": {},
"labels": [],
"subscriptions": []
}
Request
POST /prime-home/api/v2/subscribers
{
"code":
"life-cycle-use-case-subscriber"
,
"credentials":
{}
,
"dto": {},
"labels": [],
"subscriptions": []
"labels": [],
"subscriptions": []
}
Response
{
"code": "life-cycle-use-case-subscriber",
"credentials": {},
"dto": {},
"credentials": {},
"dto": {},
"id":3
,
"labels": [],