[Index]
Used (per device) for configuring the change notification collector process & for monitoring unprocessed change notifications
Model ref.: data/DeviceChanges
The full URL would include the host-proxy name: https://[host-proxy].
Variables are enclosed in square brackets.
{ "$schema": "http://json-schema.org/draft-03/schema", "type": "object", "properties": { "last_collection_time": { "readonly": true, "type": "string", "description": "The last time the associated device was checked for changes", "title": "Last Collection Time" }, "settings": { "properties": { "displayed_model_types": { "items": { "type": "object", "properties": { "model_type": { "type": "string", "description": "The model type that will have counts displayed in the pending changes section", "title": "Model Type" } } }, "type": "array", "description": "These model types will be displayed un-grouped in the pending changes section", "title": "Displayed Model Types" }, "ignored_operations": { "properties": { "add": { "required": false, "type": "boolean", "description": "Do not collect \"add\" changes.", "title": "Add" }, "update": { "required": false, "type": "boolean", "description": "Do not collect \"update\" changes.", "title": "Update" }, "remove": { "required": false, "type": "boolean", "description": "Do not collect \"remove\" changes.", "title": "Remove" } }, "required": false, "type": "object", "description": "Indicates which operations should not be collected.", "title": "Ignored Operations" }, "model_type_list": { "description": "Reference to a list of model types to be included or excluded for change collection.", "title": "Model Type List", "format": "uri", "choices": [], "target_attr": "name", "target_model_type": "data/ModelTypeList", "type": "string", "target": "/api/data/ModelTypeList/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken] }, "cnf_enabled": { "default": true, "type": "boolean", "description": "Tick to enable change collection for this device", "title": "Enable Change Collection" }, "polling_interval": { "description": "How often the change collector service will check this device for changes (seconds)", "title": "Polling Interval (seconds)", "default": 300, "maximum": 7200, "minimum": 300, "type": "integer" } }, "type": "object", "description": "Change collector settings for this device", "title": "Settings" }, "notes": { "readonly": false, "required": false, "type": "string", "description": "CUCM Cluster Notes Field", "title": "CUCM Cluster Notes" }, "device_name": { "required": true, "type": "string", "description": "The name of the associated device", "title": "Device Name" }, "device_type": { "readonly": true, "required": true, "type": "string", "description": "The type of the associated device", "title": "Device Type" }, "changes": { "items": { "type": "object", "properties": { "model_type": { "readonly": true, "required": true, "type": "string", "description": "The model type of the pending changes in this section", "title": "Model Type" }, "add_count": { "readonly": true, "type": "integer", "description": "The number of pending add changes ", "title": "Add Count" }, "delete_count": { "readonly": true, "type": "integer", "description": "The number of pending delete changes ", "title": "Delete Count" }, "update_count": { "readonly": true, "type": "integer", "description": "The number of pending update changes ", "title": "Update Count" } } }, "readonly": true, "type": "array", "description": "Pending changes for the associated device", "title": "Pending Change Notifications" }, "device_id": { "readonly": true, "required": true, "type": "string", "description": "The resource ID of the associated device", "title": "Device ID" } }, "schema_version": "0.8" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the GUI Add form. | GET | /api/data/DeviceChanges/add/ |
|
The GUI Add form of data/DeviceChanges as JSON |
The API call to the /add/ URL can only be made from a hierarchy that allows the model type to be added. The actions in the response shows the url for the POST API call to create an instance.
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Create | POST | /api/data/DeviceChanges | hierarchy=[hierarchy] |
|
tool/Transaction/[trans pkid]to inspect the created resource and its instance pkid.
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Bulk delete [pkid1],[pkid2]... | DELETE | /api/data/DeviceChanges/ | hierarchy=[hierarchy] | {"hrefs":["/api/data/DeviceChanges/[pkid1]", "/api/data/DeviceChanges/[pkid2]", ...]} |
GET http://[host-proxy]/api/data/DeviceChanges/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Get a selected [export_format] of the schema and instances [pkid1], [pkid2],... of data/DeviceChanges; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | POST | /api/data/DeviceChanges/export/ |
|
{ "hrefs":["/api/data/DeviceChanges/[pkid1]", "/api/data/DeviceChanges/[pkid2]",...]}} |
For export_format=json, the response is a time stamped zip file of data in JSON as in the system database. Item properties such as strings that are empty or Boolean values that are not set, are not included. The filename in the response is of the format as the example:
Content-Disposition: attachment; filename=export_2013-05-17_14:20:19.186444.json.zip Content-Language:en Content-Type:application/x-zip
For export_format=raw_xlsx, the response is a MS Excel spreadsheet with columns corresponding to the JSON format export and a response filename format:
Content-Disposition: attachment; filename=<resource_type>_<resource_name>_exportedsheet_CCYY-MM-DD_HH-MM-SS.xlsx Content-Language:en Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
For export_format=xlsx, the response is a MS Excel spreadsheet, arranged by any Field Display Policies that apply. The columns correspond with those of a Bulk Load Template export sheet. The response filename format is:
Content-Disposition: attachment; filename=<resource_type>_<resource_name>_exportedsheet_formatted_CCYY-MM-DD_HH-MM-SS.xlsx Content-Language:en Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
The XLSX format can be used to bulk load instances of data/DeviceChanges and the JSON format can be used to import instances of data/DeviceChanges.
GET http://[host-proxy]/api/data/DeviceChanges/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Field Display Policy | GET | /api/data/DeviceChanges/field_display_policy/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/FieldDisplayPolicy/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
List | GET | /api/data/DeviceChanges/ |
|
The data/DeviceChanges schema and all instances as JSON. |
(The list will return 0 to 3 data/DeviceChanges instances)
{ "operations": [ "field_display_policy", "configuration_template", "help", "get", "export_bulkload_template", "list", "update", "remove", "move", "transform", "add", "export", "migration", "bulk_update_form" ], "pagination": { "direction": "asc", "order_by": "device_name", "maximum_limit": 2000, "skip": 0, "current": "/api/data/DeviceChanges/?skip=0&limit=3&order_by=device_name&direction=asc&traversal=default", "limit": 3, "total_limit": null, "total": 1 }, "meta": { "tags": [], "cached": true, "title": "", "business_key": {}, "schema_version": "0.8", "references": { "device": [ { "pkid": "", "href": "" } ], "children": [], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "actions": [ { "add": { "support_async": false, "class": "add", "href": "/api/data/DeviceChanges/add/?hierarchy=[hierarchy]", "method": "GET", "title": "Add" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/DeviceChanges/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/DeviceChanges/export/?hierarchy=[hierarchy]", "method": "POST", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/DeviceChanges/+tag/?hierarchy=[hierarchy]", "class": "tag", "view": "/api/view/TagNameForm/add/?auth_token=[authtoken] } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/DeviceChanges/+tag_version/?hierarchy=[hierarchy]", "class": "tag_version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "field_display_policy": { "support_async": false, "class": "display_policy", "href": "/api/data/DeviceChanges/field_display_policy/?hierarchy=[hierarchy]", "method": "GET", "title": "Field Display Policy" } }, { "list": { "support_async": false, "class": "list", "href": "/api/data/DeviceChanges/?hierarchy=[hierarchy]", "method": "GET", "title": "List" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/DeviceChanges/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "data/DeviceChanges", "model_specific_actions": [ "add", "export", "get", "help", "list", "remove", "tag", "tag_version", "field_display_policy", "update" ], "summary_attrs": [ { "name": "device_name", "title": "Device Name" }, { "name": "notes", "title": "CUCM Cluster Notes" }, { "name": "device_type", "title": "Device Type" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "resources": [ { "pkid": "5f3ae58ace894e00120550c9", "meta": { "tags": [], "cached": true, "title": "[\"192.168.100.15\", \"8443\", \"hcs.CS-P.CS-AB.AB_Group\"]", "business_key": {}, "schema_version": "0.8", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5f3ae58ace894e00120550c9", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/" } ], "parent": [ { "pkid": "5f3ae552ce894e00120537fa", "href": "/api/data/HierarchyNode/5f3ae552ce894e00120537fa" } ], "foreign_key": [ { "pkid": "5f3ae58ace894e00120550c2", "path": "device_name", "model_type": "data/CallManager" } ] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/", "method": "DELETE", "title": "Delete" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/+tag/", "class": "tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/+tag_version/", "class": "tag_version", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/help", "method": "GET", "title": "Help" } } ], "model_type": "data/DeviceChanges", "path": [ "6t0ggef2c0deab00hb595101", "5df35e48ce894e0012b345a1", "5f3ae1fcce894e001204e0ed", "5f3ae256ce894e001204f7db", "5f3ae552ce894e00120537fa", "5f3ae58ace894e00120550c9" ], "summary_attrs": [ { "name": "device_name", "title": "Device Name" }, { "name": "notes", "title": "CUCM Cluster Notes" }, { "name": "device_type", "title": "Device Type" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "settings": { "displayed_model_types": [ { "model_type": "device/cucm/User" }, { "model_type": "device/cucm/Phone" }, { "model_type": "device/cucm/Line" } ], "cnf_enabled": false, "polling_interval": 300 }, "pkid": "5f3ae58ace894e00120550ca", "notes": "abg-cl1-p", "device_name": "[\"192.168.100.15\", \"8443\", \"hcs.CS-P.CS-AB.AB_Group\"]", "device_type": "data/CallManager", "hierarchy_friendly_name": "AB_Group (Customer)", "device_id": "5f3ae58ace894e00120550c2", "hierarchy_path": "sys.hcs.CS-P.CS-AB.AB_Group" } } ] }
(Show the first instance)
{ "pkid": "5f3ae58ace894e00120550c9", "meta": { "tags": [], "cached": false, "title": "[\"192.168.100.15\", \"8443\", \"hcs.CS-P.CS-AB.AB_Group\"]", "business_key": {}, "schema_version": "0.8", "references": { "parent": [ { "pkid": "5f3ae552ce894e00120537fa", "href": "/api/data/HierarchyNode/5f3ae552ce894e00120537fa" } ], "self": [ { "pkid": "5f3ae58ace894e00120550c9", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/" } ], "foreign_key": [ { "pkid": "5f3ae58ace894e00120550c2", "path": "device_name", "model_type": "data/CallManager" } ], "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "children": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/?hierarchy=[hierarchy]", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/export/?hierarchy=[hierarchy]", "method": "GET", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/+tag/?hierarchy=[hierarchy]", "class": "tag", "view": "/api/view/TagNameForm/add/?auth_token=[authtoken] } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/+tag_version/?hierarchy=[hierarchy]", "class": "tag_version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/?hierarchy=[hierarchy]", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/DeviceChanges/5f3ae58ace894e00120550c9/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "data/DeviceChanges", "path": [ "6t0ggef2c0deab00hb595101", "5df35e48ce894e0012b345a1", "5f3ae1fcce894e001204e0ed", "5f3ae256ce894e001204f7db", "5f3ae552ce894e00120537fa", "5f3ae58ace894e00120550c9" ], "summary_attrs": [ { "name": "device_name", "title": "Device Name" }, { "name": "notes", "title": "CUCM Cluster Notes" }, { "name": "device_type", "title": "Device Type" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "last_collection_time": "2020-08-17T22:16:13.118000", "settings": { "displayed_model_types": [ { "model_type": "device/cucm/User" }, { "model_type": "device/cucm/Phone" }, { "model_type": "device/cucm/Line" } ], "cnf_enabled": false, "polling_interval": 300 }, "pkid": "5f3ae58ace894e00120550ca", "notes": "abg-cl1-p", "device_name": "[\"192.168.100.15\", \"8443\", \"hcs.CS-P.CS-AB.AB_Group\"]", "device_type": "data/CallManager", "changes": [ { "add_count": 0, "model_type": "device/cucm/User", "delete_count": 0, "update_count": 0 }, { "add_count": 0, "model_type": "device/cucm/Phone", "delete_count": 0, "update_count": 0 }, { "add_count": 0, "model_type": "device/cucm/Line", "delete_count": 0, "update_count": 0 } ], "device_id": "5f3ae58ace894e00120550c2" } }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for data/DeviceChanges. | GET | /api/data/DeviceChanges/help | hierarchy=[hierarchy] | On-line help of Model ref.: data/DeviceChanges as HTML |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Modify | PUT | /api/data/DeviceChanges/[pkid] | hierarchy=[hierarchy] | (For payload specification) |
For Bulk modification, refer to the Bulk Modify section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Delete | DELETE | /api/data/DeviceChanges/[pkid] | hierarchy=[hierarchy] |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a selected [export_format] of the schema and a single instance with [pkid] of data/DeviceChanges; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | GET | /api/data/DeviceChanges/[pkid]/export |
|
The response is an attachment. Refer to the list below. |
For export_format=raw_xlsx, the response is a "raw" MS Excel spreadsheet with columns corresponding to the JSON format export and a response format:
Content-Disposition: attachment; filename=<resource_type>_<resource_name>_exportedsheet_CCYY-MM-DD_HH-MM-SS.xlsx Content-Language:en Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
For export_format=xlsx, the response is a MS Excel spreadsheet, formatted to show all columns and a response format:
Content-Disposition: attachment; filename=<resource_type>_<resource_name>_exportedsheet_formatted_CCYY-MM-DD_HH-MM-SS.xlsx Content-Language:en Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
For export_format=json, the response is a time stamped zip file of data in JSON and a response format:
Content-Disposition: attachment; filename=export_2013-05-17_14:20:19.186444.json.zip Content-Language:en Content-Type:application/x-zip
The XLSX format can be used to bulk load instances of data/DeviceChanges and the JSON format can be used to import instances of data/DeviceChanges.
For Bulk Export, refer to the Bulk Export section.
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Tag | PATCH | /api/data/DeviceChanges/[pkid]/+tag | hierarchy=[hierarchy] | If payload required: |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get | GET | /api/data/DeviceChanges/[pkid] | hierarchy=[hierarchy] | The data/DeviceChanges instance with [pkid]. |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/data/DeviceChanges/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for data/DeviceChanges. |