[Index]
Provides data synchronization capabilities with devices (eg. CUCM, CUC, LDAP)
Model ref.: data/DataSync
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": { "name": { "required": true, "type": "string", "description": "The name that is given to the Data Sync instance.", "title": "Name" }, "description": { "required": false, "type": "string", "description": "A description for the Data Sync instance.", "title": "Description" }, "device_type": { "description": "The type of devices to be synchronized. Choices are based on connection parameter data models of the devices supported by the current system.", "title": "Device Type", "required": true, "choices": [ { "value": "", "title": "" } ], "type": "string" }, "sync_type": { "description": "The selected Sync Type. The Type can be Pull from Device, Push to Device, Merge with Device, or Purge Local. For Push, the system data state is the master state and the model types of the connection parameter are synchronized with it. For Pull, the model type states of the connection parameter is the master and the system model data is synchronized with these. For Merge, data synchronization takes place in both directions without overwrite of either data. For Purge Local, resources all resources that exist in the system will be deleted, although the entities in the device are not deleted - this is useful when cleaning up the system.", "title": "Sync Type", "required": false, "choices": [ { "value": "pull", "title": "Pull from Device" }, { "value": "push", "title": "Push to Device" }, { "value": "merge", "title": "Merge with Device" }, { "value": "purge_local", "title": "Purge Local Resources" }, { "value": "device_notification", "title": "Change Notification Sync" } ], "type": "string" }, "dependency_resolution": { "description": "The strategy for handling failures due to missing dependencies. Only 'Best Effort' resolution is supported. 'Best Effort' resolution attempts to brute force the synchronization as much as possible by re-iterating over failed imports until there are no errors.", "title": "Dependency Resolution", "required": false, "choices": [ { "value": "best_effort", "title": "Best Effort" }, { "value": "default", "title": "Default" } ], "type": "string" }, "quick_import": { "required": false, "type": "boolean", "description": "Enable with caution: Indicates whether import operations will fetch full data for all instances or just use the summary data. Only use with Model types where all of the required data is in the summary data eg: device/cuc/ImportUser model.", "title": "Quick Import (Warning: Summary Data Only)" }, "schema_only": { "required": false, "type": "boolean", "description": "Indicates whether import operations will fetch schema only and no data.", "title": "Import Schema Only" }, "no_schema": { "required": false, "type": "boolean", "description": "Indicates whether import operations will fetch data only and no schema.", "title": "Import Data Only" }, "asynchronous": { "description": "Indicates whether the Data Sync must be executed Asynchronously or Synchronously.", "title": "Execute Asynchronously", "default": true, "required": false, "type": "boolean" }, "refresh_existing_data": { "required": false, "type": "boolean", "description": "Indicates whether the Data Sync refreshes existing data that has changed on the device.", "title": "Refresh Existing (Changed) Data" }, "force_update_flag": { "description": "Indicates whether a update action is executed regardless of whether the device has changed or not", "title": "Force Refresh Of Data", "default": false, "required": false, "type": "boolean" }, "num_changes_to_process": { "required": false, "type": "integer", "description": "Specifies how many changes to process during a device notification.", "title": "Number of Changes To Process" }, "disabled_operations": { "description": "Indicates which operations should be disabled for this Data Sync.", "title": "Disabled Operations", "required": false, "type": "object", "properties": { "add": { "required": false, "type": "boolean", "description": "Disable the \"add\" operation.", "title": "Add" }, "update": { "required": false, "type": "boolean", "description": "Disable the \"update\" operation.", "title": "Update" }, "remove": { "required": false, "type": "boolean", "description": "Disable the \"remove\" operation.", "title": "Remove" } } }, "model_type_list": { "target": "/api/data/ModelTypeList/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "format": "uri", "title": "Model Type List", "target_attr": "name", "type": "string", "description": "The selected 'exclusion/inclusion' model type list that was created as a model instance of the Model Type List. See: Model Type List.", "target_model_type": "data/ModelTypeList", "choices": [] }, "sync_order": { "target": "/api/data/ModelTypeList/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "format": "uri", "title": "Synchronization Order", "target_attr": "name", "type": "string", "description": "The selected 'ordered' model type list that was created as a model instance of the Model Type List. This list dictates the order in which models will be synchronized. See: Model Type List.", "target_model_type": "data/ModelTypeList", "choices": [] }, "model_instance_filter": { "target": "/api/data/ModelInstanceFilter/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "format": "uri", "title": "Model Instance Filter", "target_attr": "name", "type": "string", "description": "An instance of Model Instance Filter data model. This instance defines the rules for filtering out the models to be synchronized. See: Model Instance Filter.", "target_model_type": "data/ModelInstanceFilter", "choices": [] }, "device_filters": { "description": "A refinement on devices that the data sync applies to. These filters are optional. If they are not specified, data sync will be applied to all instances of the device type supported by this Data Sync instance. If specified, only the devices that match the given filters will be synchronized.", "title": "Device Filters", "items": { "type": "object", "properties": { "attr_name": { "description": "The model attribute name to which the condition applies.", "title": "Attribute Name", "required": true, "choices": [ { "value": "", "title": "" } ], "type": "string" }, "condition": { "description": "If the Condition is Equals or Not Equals, then the Value to test the condition against. If the Condition is In or Not In, then Value is a list of values to test against.", "title": "Condition", "required": true, "choices": [ { "value": "equals", "title": "Equals" }, { "value": "notequals", "title": "Not Equals" }, { "value": "in", "title": "In" }, { "value": "notin", "title": "Not In" } ], "type": "string" }, "value": { "description": "The selected Attribute Name is tested against the Value that can also be a list of values, such as a list of host names. The Condition tests against the Value or list of values.", "title": "Value", "required": false, "choices": [ { "value": "", "title": "" } ], "type": "string" }, "value_list": { "description": "If the Condition is In or Not In, then the Values list the items to test the condition against.", "title": "Values", "items": { "type": "string" }, "required": false, "type": "array" } } }, "required": false, "type": "array" }, "workflows": { "items": { "type": "object", "properties": { "model_type": { "target": "/api/choices/?format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "format": "uri", "title": "Model Type", "type": "string", "description": "The model type for which the workflow is to be executed.", "target_model_type": "", "choices": [] }, "operation": { "description": "The operation for which the workflow is to be executed.", "title": "Operation", "required": true, "choices": [ { "value": "add", "title": "Add" }, { "value": "update", "title": "Update" }, { "value": "delete", "title": "Delete" } ], "type": "string" }, "phase": { "description": "The operation phase at which the workflow is to be executed eg. Pre-Execution (before the operation is performed) or Post-Execution (after the operation is performed)", "title": "Phase", "required": true, "choices": [ { "value": "preexecution", "title": "Pre Execution" }, { "value": "postexecution", "title": "Post Execution" } ], "type": "string" }, "workflow": { "description": "The workflow instance that will be executed.", "format": "uri", "required": true, "target_attr": "name", "target": "/api/data/ProvisioningWorkflow/template_choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "title": "Workflow", "type": "string", "target_model_type": "data/ProvisioningWorkflow", "choices": [] }, "synchronous": { "default": false, "type": "boolean", "description": "If selected the workflow will be executed synchronously, otherwise asynchronously (default).", "title": "Synchronous" } } }, "type": "array", "description": "A list of workflows that is to be executed as part of data sync actions eg. when a resource is added, modified, or deleted", "title": "Workflows" }, "transaction_log_level": { "description": "The transaction log level to be used for this Data Sync and its immediate sub-transactions. Default is Warning when this field is not set.", "title": "Transaction Log Level", "default": 30, "required": false, "choices": [ { "value": -1, "title": "Use System Settings" }, { "value": 10, "title": "Debug" }, { "value": 15, "title": "Verbose" }, { "value": 20, "title": "Info" }, { "value": 30, "title": "Warning" }, { "value": 40, "title": "Error" }, { "value": 999, "title": "Disabled" } ], "type": "integer" } }, "schema_version": "0.3.6" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the GUI Add form. | GET | /api/data/DataSync/add/ |
|
The GUI Add form of data/DataSync 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/DataSync | 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/DataSync/ | hierarchy=[hierarchy] | {"hrefs":["/api/data/DataSync/[pkid1]", "/api/data/DataSync/[pkid2]", ...]} |
GET http://[host-proxy]/api/data/DataSync/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Bulk Modify | GET | /api/data/DataSync/bulk_update/?schema=&schema_rules=true |
|
|
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Bulk Modify | POST | /api/data/DataSync/bulk_update/ |
|
For example: {"data":{"name":"value"}, "meta":{}, "request_meta":{ "hrefs":["/api/v0/data/DataSync/[pkid1]", "/api/v0/data/DataSync/[pkid2]",...]}} |
GET http://[host-proxy]/api/data/DataSync/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Get a selected [export_format] of the schema and instances [pkid1], [pkid2],... of data/DataSync; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | POST | /api/data/DataSync/export/ |
|
{ "hrefs":["/api/data/DataSync/[pkid1]", "/api/data/DataSync/[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/DataSync and the JSON format can be used to import instances of data/DataSync.
GET http://[host-proxy]/api/data/DataSync/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a compressed format of the Bulk Load spreadsheet template for data/DataSync | POST | /api/data/DataSync/export_bulkload_template/ |
|
The response is an attachment of the format: filetype_bulkloadsheet.xlsx.gz |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Tag | PATCH | /api/data/DataSync/+tag/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Tag Version | PATCH | /api/data/DataSync/+tag_version/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Configuration Template | GET | /api/data/DataSync/configuration_template/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Field Display Policy | GET | /api/data/DataSync/field_display_policy/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/FieldDisplayPolicy/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Migration Template | GET | /api/data/DataSync/migration/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
List | GET | /api/data/DataSync/ |
|
The data/DataSync schema and all instances as JSON. |
(The list will return 0 to 3 data/DataSync instances)
{ "pagination": { "skip": 0, "limit": 3, "maximum_limit": 2000, "total": 36, "total_limit": null, "order_by": "name", "direction": "asc", "current": "/api/data/DataSync/?skip=0&limit=3&order_by=name&direction=asc&traversal=down" }, "operations": [ "field_display_policy", "update", "help", "remove", "add", "export", "list", "configuration_template", "get", "bulk_update_form", "migration", "transform", "export_bulkload_template" ], "meta": { "model_type": "data/DataSync", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "device_type", "title": "Device Type" }, { "name": "sync_type", "title": "Sync Type" }, { "name": "model_type_list", "title": "Model Type List" }, { "name": "sync_order", "title": "Synchronization Order" }, { "name": "model_instance_filter", "title": "Model Instance Filter" }, { "name": "force_update_flag", "title": "Force Refresh Of Data" }, { "name": "refresh_existing_data", "title": "Refresh Existing (Changed) Data" }, { "name": "quick_import", "title": "Quick Import (Warning: Summary Data Only)" }, { "name": "asynchronous", "title": "Execute Asynchronously" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "api_version": "21.2", "cached": true, "references": { "children": [], "parent": [ { "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101", "pkid": "6t0ggef2c0deab00hb595101" } ], "device": [ { "href": "", "pkid": "" } ], "foreign_key": [] }, "model_specific_actions": [ "add", "bulk_update_form", "clone", "configuration_template", "execute", "export", "export_bulkload_template", "field_display_policy", "get", "help", "list", "migration", "remove", "tag", "tag_version", "update" ], "schema_version": "0.3.6", "actions": [ { "add": { "method": "GET", "class": "add", "href": "/api/data/DataSync/add/?hierarchy=[hierarchy]", "support_async": false, "title": "Add" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/DataSync/?hierarchy=[hierarchy]", "support_async": true, "title": "Delete" } }, { "bulk_update_form": { "method": "GET", "class": "update", "href": "/api/data/DataSync/bulk_update/?hierarchy=[hierarchy]&schema=&schema_rules=true", "support_async": false, "title": "Bulk Modify" } }, { "export": { "method": "POST", "class": "export", "href": "/api/data/DataSync/export/?hierarchy=[hierarchy]", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/?auth_token=[authtoken], "submit": "payload" } }, { "export_bulkload_template": { "method": "POST", "class": "bulkload_template", "href": "/api/data/DataSync/export_bulkload_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Export Bulk Load Template" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/DataSync/+tag/?hierarchy=[hierarchy]", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/?auth_token=[authtoken] } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/DataSync/+tag_version/?hierarchy=[hierarchy]", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "configuration_template": { "method": "GET", "class": "config", "href": "/api/data/DataSync/configuration_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Configuration Template" } }, { "field_display_policy": { "method": "GET", "class": "display_policy", "href": "/api/data/DataSync/field_display_policy/?hierarchy=[hierarchy]", "support_async": false, "title": "Field Display Policy" } }, { "migration": { "method": "GET", "class": "migration", "href": "/api/data/DataSync/migration/?hierarchy=[hierarchy]", "support_async": false, "title": "Migration Template" } }, { "list": { "method": "GET", "class": "list", "href": "/api/data/DataSync/?hierarchy=[hierarchy]", "support_async": false, "title": "List" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/DataSync/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } } ] }, "resources": [ { "data": { "quick_import": true, "device_filters": [ { "attr_name": "name", "value": "192.168.100.15", "condition": "equals" } ], "dependency_resolution": "default", "pkid": "650fe48b84eaf2a1ce6392ed", "name": "CMCCS-192.168.100.15-MohFile", "force_update_flag": true, "asynchronous": false, "device_type": "data/CmCcs", "refresh_existing_data": true, "sync_type": "pull", "model_type_list": "CMCCS_MohFile", "description": "Perform a sync of Call Manager Control Center Services MohFile model", "hierarchy_friendly_name": "AB_Group (Customer)", "hierarchy_path": "sys.hcs.CS-P.CS-AB.AB_Group" }, "meta": { "model_type": "data/DataSync", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "device_type", "title": "Device Type" }, { "name": "sync_type", "title": "Sync Type" }, { "name": "model_type_list", "title": "Model Type List" }, { "name": "sync_order", "title": "Synchronization Order" }, { "name": "model_instance_filter", "title": "Model Instance Filter" }, { "name": "force_update_flag", "title": "Force Refresh Of Data" }, { "name": "refresh_existing_data", "title": "Refresh Existing (Changed) Data" }, { "name": "quick_import", "title": "Quick Import (Warning: Summary Data Only)" }, { "name": "asynchronous", "title": "Execute Asynchronously" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "CMCCS-192.168.100.15-MohFile", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "5ae89ea2affa931cce38a523", "href": "/api/data/HierarchyNode/5ae89ea2affa931cce38a523" } ], "foreign_key": [ { "pkid": "650fe3a084eaf2a1ce636c7c", "path": "model_type_list", "model_type": "data/ModelTypeList" } ], "self": [ { "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/", "pkid": "650fe48b84eaf2a1ce6392eb" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5bacbaffa9343e4d93e01", "5ae89b62affa931cce3855c4", "5ae89c0faffa931cce386c0f", "5ae89ea2affa931cce38a523", "650fe48b84eaf2a1ce6392eb" ], "schema_version": "0.3.6", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/+tag/", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/+tag_version/", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "method": "POST", "class": "execute", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/execute/", "support_async": true, "title": "Execute" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "650fe48b84eaf2a1ce6392eb" }, { "data": { "quick_import": true, "device_filters": [ { "attr_name": "name", "value": "192.168.100.16", "condition": "equals" } ], "dependency_resolution": "default", "pkid": "650fe48d84eaf2a1ce639344", "name": "CMCCS-192.168.100.16-MohFile", "force_update_flag": true, "asynchronous": false, "device_type": "data/CmCcs", "refresh_existing_data": true, "sync_type": "pull", "model_type_list": "CMCCS_MohFile", "description": "Perform a sync of Call Manager Control Center Services MohFile model", "hierarchy_friendly_name": "AB_Group (Customer)", "hierarchy_path": "sys.hcs.CS-P.CS-AB.AB_Group" }, "meta": { "model_type": "data/DataSync", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "device_type", "title": "Device Type" }, { "name": "sync_type", "title": "Sync Type" }, { "name": "model_type_list", "title": "Model Type List" }, { "name": "sync_order", "title": "Synchronization Order" }, { "name": "model_instance_filter", "title": "Model Instance Filter" }, { "name": "force_update_flag", "title": "Force Refresh Of Data" }, { "name": "refresh_existing_data", "title": "Refresh Existing (Changed) Data" }, { "name": "quick_import", "title": "Quick Import (Warning: Summary Data Only)" }, { "name": "asynchronous", "title": "Execute Asynchronously" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "CMCCS-192.168.100.16-MohFile", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "5ae89ea2affa931cce38a523", "href": "/api/data/HierarchyNode/5ae89ea2affa931cce38a523" } ], "foreign_key": [ { "pkid": "650fe3a084eaf2a1ce636c7c", "path": "model_type_list", "model_type": "data/ModelTypeList" } ], "self": [ { "href": "/api/data/DataSync/650fe48d84eaf2a1ce639342/", "pkid": "650fe48d84eaf2a1ce639342" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5bacbaffa9343e4d93e01", "5ae89b62affa931cce3855c4", "5ae89c0faffa931cce386c0f", "5ae89ea2affa931cce38a523", "650fe48d84eaf2a1ce639342" ], "schema_version": "0.3.6", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/DataSync/650fe48d84eaf2a1ce639342/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/DataSync/650fe48d84eaf2a1ce639342/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/DataSync/650fe48d84eaf2a1ce639342/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/DataSync/650fe48d84eaf2a1ce639342/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/DataSync/650fe48d84eaf2a1ce639342/+tag/", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/DataSync/650fe48d84eaf2a1ce639342/+tag_version/", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "method": "POST", "class": "execute", "href": "/api/data/DataSync/650fe48d84eaf2a1ce639342/execute/", "support_async": true, "title": "Execute" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/DataSync/650fe48d84eaf2a1ce639342/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/DataSync/650fe48d84eaf2a1ce639342/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "650fe48d84eaf2a1ce639342" }, { "data": { "device_filters": [ { "attr_name": "host", "value": "10.120.2.221", "condition": "equals" }, { "attr_name": "search_base_dn", "value": "OU=AB-C,OU=AB-GROUP,DC=vossqa,DC=net", "condition": "equals" } ], "dependency_resolution": "default", "pkid": "5ae89f2daffa931cce38d4ed", "schema_only": true, "name": "HcsLdapSchemaImport--1", "asynchronous": false, "device_type": "data/Ldap", "quick_import": false, "sync_type": "pull", "hierarchy_friendly_name": "AB-C (IntermediateNode)", "hierarchy_path": "sys.hcs.CS-P.CS-AB.AB_Group.AB-C" }, "meta": { "model_type": "data/DataSync", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "device_type", "title": "Device Type" }, { "name": "sync_type", "title": "Sync Type" }, { "name": "model_type_list", "title": "Model Type List" }, { "name": "sync_order", "title": "Synchronization Order" }, { "name": "model_instance_filter", "title": "Model Instance Filter" }, { "name": "force_update_flag", "title": "Force Refresh Of Data" }, { "name": "refresh_existing_data", "title": "Refresh Existing (Changed) Data" }, { "name": "quick_import", "title": "Quick Import (Warning: Summary Data Only)" }, { "name": "asynchronous", "title": "Execute Asynchronously" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "HcsLdapSchemaImport--1", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "5ae89f22affa931cce38d2f4", "href": "/api/data/HierarchyNode/5ae89f22affa931cce38d2f4" } ], "foreign_key": [], "self": [ { "href": "/api/data/DataSync/5ae89f2daffa931cce38d4ec/", "pkid": "5ae89f2daffa931cce38d4ec" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5bacbaffa9343e4d93e01", "5ae89b62affa931cce3855c4", "5ae89c0faffa931cce386c0f", "5ae89ea2affa931cce38a523", "5ae89f22affa931cce38d2f4", "5ae89f2daffa931cce38d4ec" ], "schema_version": "0.3.6", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/DataSync/5ae89f2daffa931cce38d4ec/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/DataSync/5ae89f2daffa931cce38d4ec/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/DataSync/5ae89f2daffa931cce38d4ec/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/DataSync/5ae89f2daffa931cce38d4ec/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/DataSync/5ae89f2daffa931cce38d4ec/+tag/", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/DataSync/5ae89f2daffa931cce38d4ec/+tag_version/", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "method": "POST", "class": "execute", "href": "/api/data/DataSync/5ae89f2daffa931cce38d4ec/execute/", "support_async": true, "title": "Execute" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/DataSync/5ae89f2daffa931cce38d4ec/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/DataSync/5ae89f2daffa931cce38d4ec/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5ae89f2daffa931cce38d4ec" } ] }
(Show the first instance)
{ "data": { "quick_import": true, "device_filters": [ { "attr_name": "name", "value": "192.168.100.15", "condition": "equals" } ], "dependency_resolution": "default", "name": "CMCCS-192.168.100.15-MohFile", "force_update_flag": true, "asynchronous": false, "device_type": "data/CmCcs", "refresh_existing_data": true, "sync_type": "pull", "model_type_list": "CMCCS_MohFile", "description": "Perform a sync of Call Manager Control Center Services MohFile model", "pkid": "650fe48b84eaf2a1ce6392ed" }, "meta": { "model_type": "data/DataSync", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "device_type", "title": "Device Type" }, { "name": "sync_type", "title": "Sync Type" }, { "name": "model_type_list", "title": "Model Type List" }, { "name": "sync_order", "title": "Synchronization Order" }, { "name": "model_instance_filter", "title": "Model Instance Filter" }, { "name": "force_update_flag", "title": "Force Refresh Of Data" }, { "name": "refresh_existing_data", "title": "Refresh Existing (Changed) Data" }, { "name": "quick_import", "title": "Quick Import (Warning: Summary Data Only)" }, { "name": "asynchronous", "title": "Execute Asynchronously" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "CMCCS-192.168.100.15-MohFile", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "api_version": "21.2", "cached": false, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "href": "/api/data/HierarchyNode/5ae89ea2affa931cce38a523", "pkid": "5ae89ea2affa931cce38a523" } ], "foreign_key": [ { "pkid": "650fe3a084eaf2a1ce636c7c", "path": "model_type_list", "model_type": "data/ModelTypeList" } ], "children": [], "self": [ { "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/", "pkid": "650fe48b84eaf2a1ce6392eb" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5bacbaffa9343e4d93e01", "5ae89b62affa931cce3855c4", "5ae89c0faffa931cce386c0f", "5ae89ea2affa931cce38a523", "650fe48b84eaf2a1ce6392eb" ], "schema_version": "0.3.6", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/?hierarchy=[hierarchy]", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/?hierarchy=[hierarchy]", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/clone/?hierarchy=[hierarchy]&schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/export/?hierarchy=[hierarchy]", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/?auth_token=[authtoken], "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/+tag/?hierarchy=[hierarchy]", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/?auth_token=[authtoken] } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/+tag_version/?hierarchy=[hierarchy]", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "execute": { "method": "POST", "class": "execute", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/execute/?hierarchy=[hierarchy]", "support_async": true, "title": "Execute" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/?hierarchy=[hierarchy]", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/DataSync/650fe48b84eaf2a1ce6392eb/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } } ] }, "pkid": "650fe48b84eaf2a1ce6392eb" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for data/DataSync. | GET | /api/data/DataSync/help | hierarchy=[hierarchy] | On-line help of Model ref.: data/DataSync as HTML |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Modify | PUT | /api/data/DataSync/[pkid] | hierarchy=[hierarchy] | (For payload specification) |
For Bulk modification, refer to the Bulk Modify section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Delete | DELETE | /api/data/DataSync/[pkid] | hierarchy=[hierarchy] |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Clone instance with [pkid]. The schema rules are applied. | GET | /api/data/DataSync/[pkid]/clone/?schema=&schema_rules=true |
|
A JSON payload with:
|
GET http://[host-proxy]/api/data/DataSync/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a selected [export_format] of the schema and a single instance with [pkid] of data/DataSync; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | GET | /api/data/DataSync/[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/DataSync and the JSON format can be used to import instances of data/DataSync.
For Bulk Export, refer to the Bulk Export section.
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Tag | PATCH | /api/data/DataSync/[pkid]/+tag | hierarchy=[hierarchy] | If payload required: |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Execute | POST | /api/data/DataSync/[pkid]/execute | hierarchy=[hierarchy] | If payload required: |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get | GET | /api/data/DataSync/[pkid] | hierarchy=[hierarchy] | The data/DataSync instance with [pkid]. |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/data/DataSync/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for data/DataSync. |