Retrieve the list of devices that are associated to a specific service template
Property | Description |
Resource URL | /customer/v1/{customer_id} /service_provisioning/serviceTemplateDevices |
Method | POST |
Body | serviceTemplateDevices Retrieve Object |
Sample Request
1 2 3 4 5 6 7 8 9 10 11 12 13 |
POST /customer/v1/5a393ea210d91806b7ef702c/service_provisioning/serviceTemplateDevices HEADER authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIiLCJpYXQiOjEzMzIwNjk5MDIsImV4cCI6MTUyMTM3NDE5OSwiYXVkIjoiIiwic3ViIjoiIiwiY3VzdG9tZXJfaWQiOiI1YTM5M2VhMjEwZDkxODA2YjdlZjcwMmMifQ.u4kBXOHCP7W-Vg9oSfkFniSKbxj8t1ULMnTcCAS2ykw { "request_id": "", "request_parameters": { "service_template_id" : "config_profile_SmartDev_r22", "limit": 3, "page": 1 } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
{ "request_id":"", "result_code":0, "result_description":"Success", "response":[ { "state":true, "customer_id":"5a393ea210d91806b7ef702c", "udid":"5a623f4ddd59545193ea9b6c", "device_name":"GAS_Meter_CSM", "device_id":"iot_7aiud", "device_ip":"", "device_port":0, "imei":"", "imsi":"", "device_model":"", "device_firmware":"f5612r1", "device_type":"", "device_app_protocol":"", "service_template_id":"config_profile_SmartDev_r22", "device_token":"5extLWWv5qfNKKdDnE", "auto_capture_device_token":false, "first_session":"", "disconnection_time":"", "last_accessed_sap_list":[ ], "last_activity":"2015-09-29T10:11:23.412Z", "last_wakeup":"2015-09-29T10:11:22.934Z", "connection_time":"2015-09-03T07:23:33.764Z ", "signal_strength":"150", "power_usage_stats":"676", "gpsloc_long":"13.4050° E", "gpsloc_lat":"52.5200° N", "create_time":"2014-03-12T21:05:27.432Z", "radius_auth_password":"", "radius_auth_username":"", "pki_auth_pem_srv_key":"", "pki_auth_pem_srv_cert":"", "pki_auth_pem_dev_cert":"", "custom_field_1":"", "custom_field_2":"" }, { "state":true, "customer_id":"5a393ea210d91806b7ef702c", "udid":"5a623f4ddd59545193ea9b6d", "device_name":"GAS_Meter_CSM", "device_id":"iot_D8judS", "device_ip":"", "device_port":0, "imei":"", "imsi":"", "device_model":"", "device_firmware":"f5612r1", "device_type":"vim", "device_app_protocol":"", "service_template_id":"config_profile_SmartDev_r22", "device_token":"YpAjD6Sss9kDB4VPJh", "auto_capture_device_token":false, "first_session":"", "disconnection_time":"", "last_accessed_sap_list":[ ], "last_activity":"2015-09-28T14:25:23.189Z", "last_wakeup":"2015-09-28T14:22:22.431Z", "connection_time":"2015-06-26T09:01:05.874Z ", "signal_strength":"149", "power_usage_stats":"677", "gpsloc_long":"", "gpsloc_lat":"", "create_time":"2014-03-12T21:05:29.802Z", "radius_auth_password":"", "radius_auth_username":"", "pki_auth_pem_srv_key":"", "pki_auth_pem_srv_cert":"", "pki_auth_pem_dev_cert":"", "custom_field_1":"", "custom_field_2":"" }, { "state":true, "customer_id":"5a393ea210d91806b7ef702c", "udid":"5aa5d6f172bb547e07364363", "device_name":"TCU Group 1 Banbury", "device_id":"98u6-5677-t67de3-6545", "device_ip":"", "device_port":0, "imei":"", "imsi":"", "device_model":"", "device_firmware":"", "device_type":"", "device_app_protocol":"", "service_template_id":"config_profile_SmartDev_r22", "device_token":"", "auto_capture_device_token":true, "first_session":"", "disconnection_time":"", "last_accessed_sap_list":[ ], "last_activity":"2015-09-10T09:51:23.132Z", "last_wakeup":"2015-09-10T09:49:55.785Z", "connection_time":"2015-09-05T23:49:05.435Z ", "signal_strength":"", "power_usage_stats":"", "gpsloc_long":"", "gpsloc_lat":"", "create_time":"2015-03-12T01:25:23.065Z", "radius_auth_password":"", "radius_auth_username":"", "pki_auth_pem_srv_key":"", "pki_auth_pem_srv_cert":"", "pki_auth_pem_dev_cert":"", "custom_field_1":"", "custom_field_2":"" } ] } |