[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": { "no_schema": { "required": false, "type": "boolean", "description": "Indicates whether import operations will fetch data only and no schema.", "title": "Import Data Only" }, "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" }, "device_filters": { "items": { "type": "object", "properties": { "value_list": { "items": { "type": "string" }, "required": false, "type": "array", "description": "If the Condition is In or Not In, then the Values list the items to test the condition against.", "title": "Values" }, "attr_name": { "choices": [ { "value": "", "title": "" } ], "required": true, "type": "string", "description": "The model attribute name to which the condition applies.", "title": "Attribute Name" }, "value": { "choices": [ { "value": "", "title": "" } ], "required": false, "type": "string", "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" }, "condition": { "choices": [ { "value": "equals", "title": "Equals" }, { "value": "notequals", "title": "Not Equals" }, { "value": "in", "title": "In" }, { "value": "notin", "title": "Not In" } ], "required": true, "type": "string", "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": false, "type": "array", "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" }, "sync_type": { "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" } ], "required": false, "type": "string", "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" }, "schema_only": { "required": false, "type": "boolean", "description": "Indicates whether import operations will fetch schema only and no data.", "title": "Import Schema Only" }, "description": { "required": false, "type": "string", "description": "A description for the Data Sync instance.", "title": "Description" }, "workflows": { "items": { "type": "object", "properties": { "model_type": { "target": "/api/choices/?format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "title": "Model Type", "format": "uri", "choices": [], "target_model_type": "", "type": "string", "description": "The model type for which the workflow is to be executed." }, "phase": { "choices": [ { "value": "preexecution", "title": "Pre Execution" }, { "value": "postexecution", "title": "Post Execution" } ], "required": true, "type": "string", "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" }, "operation": { "choices": [ { "value": "add", "title": "Add" }, { "value": "update", "title": "Update" }, { "value": "delete", "title": "Delete" } ], "required": true, "type": "string", "description": "The operation for which the workflow is to be executed.", "title": "Operation" }, "synchronous": { "default": false, "type": "boolean", "description": "If selected the workflow will be executed synchronously, otherwise asynchronously (default).", "title": "Synchronous" }, "workflow": { "description": "The workflow instance that will be executed.", "format": "uri", "title": "Workflow", "required": true, "choices": [], "target_attr": "name", "target_model_type": "data/ProvisioningWorkflow", "type": "string", "target": "/api/data/ProvisioningWorkflow/template_choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken] } } }, "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" }, "name": { "required": true, "type": "string", "description": "The name that is given to the Data Sync instance.", "title": "Name" }, "force_update_flag": { "default": false, "required": false, "type": "boolean", "description": "Indicates whether a update action is executed regardless of whether the device has changed or not", "title": "Force Refresh Of Data" }, "disabled_operations": { "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" } }, "required": false, "type": "object", "description": "Indicates which operations should be disabled for this Data Sync.", "title": "Disabled Operations" }, "asynchronous": { "default": true, "required": false, "type": "boolean", "description": "Indicates whether the Data Sync must be executed Asynchronously or Synchronously.", "title": "Execute Asynchronously" }, "device_type": { "choices": [ { "value": "", "title": "" } ], "required": true, "type": "string", "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" }, "model_instance_filter": { "target": "/api/data/ModelInstanceFilter/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "title": "Model Instance Filter", "format": "uri", "choices": [], "target_attr": "name", "target_model_type": "data/ModelInstanceFilter", "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." }, "sync_order": { "target": "/api/data/ModelTypeList/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "title": "Synchronization Order", "format": "uri", "choices": [], "target_attr": "name", "target_model_type": "data/ModelTypeList", "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." }, "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" }, "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)" }, "model_type_list": { "target": "/api/data/ModelTypeList/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "title": "Model Type List", "format": "uri", "choices": [], "target_attr": "name", "target_model_type": "data/ModelTypeList", "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." }, "dependency_resolution": { "choices": [ { "value": "best_effort", "title": "Best Effort" }, { "value": "default", "title": "Default" } ], "required": false, "type": "string", "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" } }, "schema_version": "0.2.9" }
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 |
---|---|---|---|---|
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)
{ "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": "name", "maximum_limit": 2000, "skip": 0, "current": "/api/data/DataSync/?skip=0&limit=3&order_by=name&direction=asc&traversal=default", "limit": 3, "total_limit": null, "total": 49 }, "meta": { "tags": [], "cached": true, "title": "", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.2.9", "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/DataSync/add/?hierarchy=[hierarchy]", "method": "GET", "title": "Add" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/DataSync/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "bulk_update_form": { "support_async": false, "class": "update", "href": "/api/data/DataSync/bulk_update/?hierarchy=[hierarchy]&schema=&schema_rules=true", "method": "GET", "title": "Bulk Modify" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/DataSync/export/?hierarchy=[hierarchy]", "method": "POST", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "export_bulkload_template": { "support_async": false, "class": "bulkload_template", "href": "/api/data/DataSync/export_bulkload_template/?hierarchy=[hierarchy]", "method": "POST", "title": "Export Bulk Load Template" } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/DataSync/+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/DataSync/+tag_version/?hierarchy=[hierarchy]", "class": "tag_version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "configuration_template": { "support_async": false, "class": "config", "href": "/api/data/DataSync/configuration_template/?hierarchy=[hierarchy]", "method": "GET", "title": "Configuration Template" } }, { "field_display_policy": { "support_async": false, "class": "display_policy", "href": "/api/data/DataSync/field_display_policy/?hierarchy=[hierarchy]", "method": "GET", "title": "Field Display Policy" } }, { "migration": { "support_async": false, "class": "migration", "href": "/api/data/DataSync/migration/?hierarchy=[hierarchy]", "method": "GET", "title": "Migration Template" } }, { "list": { "support_async": false, "class": "list", "href": "/api/data/DataSync/?hierarchy=[hierarchy]", "method": "GET", "title": "List" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/DataSync/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "data/DataSync", "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" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "19.3.1", "tagged_versions": [] }, "resources": [ { "pkid": "5dcd3e9c4544b700186100eb", "meta": { "tags": [], "cached": true, "title": "HcsLdapSchemaImport--1", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.2.9", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5dcd3e9c4544b700186100eb", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/" } ], "parent": [ { "pkid": "5dcd1812e186e30018eb7023", "href": "/api/data/HierarchyNode/5dcd1812e186e30018eb7023" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/clone/?schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/+tag/", "class": "tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/+tag_version/", "class": "tag_version", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "support_async": true, "class": "execute", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/execute/", "method": "POST", "title": "Execute" } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/help", "method": "GET", "title": "Help" } } ], "model_type": "data/DataSync", "path": [ "6t0ggef2c0deab00hb595101", "5dcc7ff74544b7001862482f", "5dcd17c256b5de00189138f9", "5dcd180233fc9b00189005b2", "5dcd1812e186e30018eb7023", "5dcd3e9c4544b700186100eb" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "19.3.1", "tagged_versions": [] }, "data": { "quick_import": false, "device_filters": [ { "attr_name": "host", "value": "10.120.2.221", "condition": "equals" }, { "attr_name": "search_base_dn", "value": "OU=VOSSSOL9557,DC=vossqa,DC=net", "condition": "equals" } ], "dependency_resolution": "default", "pkid": "5dcd3e9c4544b700186100ec", "schema_only": true, "asynchronous": false, "device_type": "data/Ldap", "hierarchy_friendly_name": "AAAGlobal (Customer)", "hierarchy_path": "sys.hcs.CS-P.CS-NB.AAAGlobal", "sync_type": "pull", "name": "HcsLdapSchemaImport--1" } }, { "pkid": "5dcd55999d77dd0018b14d7c", "meta": { "tags": [], "cached": true, "title": "HcsLdapSchemaImport--4", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.2.9", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5dcd55999d77dd0018b14d7c", "href": "/api/data/DataSync/5dcd55999d77dd0018b14d7c/" } ], "parent": [ { "pkid": "5dcd1812e186e30018eb7023", "href": "/api/data/HierarchyNode/5dcd1812e186e30018eb7023" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "href": "/api/data/DataSync/5dcd55999d77dd0018b14d7c/", "title": "Modify", "class": "update", "method": "PUT" } }, { "remove": { "support_async": true, "href": "/api/data/DataSync/5dcd55999d77dd0018b14d7c/", "title": "Delete", "class": "delete", "method": "DELETE" } }, { "clone": { "support_async": false, "href": "/api/data/DataSync/5dcd55999d77dd0018b14d7c/clone/?schema=&schema_rules=true", "title": "Clone", "class": "clone", "method": "GET" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/DataSync/5dcd55999d77dd0018b14d7c/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/DataSync/5dcd55999d77dd0018b14d7c/+tag/", "class": "tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/DataSync/5dcd55999d77dd0018b14d7c/+tag_version/", "class": "tag_version", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "support_async": true, "href": "/api/data/DataSync/5dcd55999d77dd0018b14d7c/execute/", "title": "Execute", "class": "execute", "method": "POST" } }, { "get": { "support_async": false, "href": "/api/data/DataSync/5dcd55999d77dd0018b14d7c/", "title": "Get", "class": "get", "method": "GET" } }, { "help": { "support_async": false, "href": "/api/data/DataSync/5dcd55999d77dd0018b14d7c/help", "title": "Help", "class": "help", "method": "GET" } } ], "model_type": "data/DataSync", "path": [ "6t0ggef2c0deab00hb595101", "5dcc7ff74544b7001862482f", "5dcd17c256b5de00189138f9", "5dcd180233fc9b00189005b2", "5dcd1812e186e30018eb7023", "5dcd55999d77dd0018b14d7c" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "19.3.1", "tagged_versions": [] }, "data": { "quick_import": false, "device_filters": [ { "attr_name": "host", "value": "10.120.2.221", "condition": "equals" }, { "attr_name": "search_base_dn", "value": "OU=RAS,OU=AAAGlobal,DC=vossqa,DC=net", "condition": "equals" } ], "dependency_resolution": "default", "pkid": "5dcd55999d77dd0018b14d7d", "schema_only": true, "asynchronous": false, "device_type": "data/Ldap", "hierarchy_friendly_name": "AAAGlobal (Customer)", "hierarchy_path": "sys.hcs.CS-P.CS-NB.AAAGlobal", "sync_type": "pull", "name": "HcsLdapSchemaImport--4" } }, { "pkid": "5deea7a256b5de0018e8b1fa", "meta": { "tags": [], "cached": true, "title": "HcsLdapSchemaImport--5", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.2.9", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5deea7a256b5de0018e8b1fa", "href": "/api/data/DataSync/5deea7a256b5de0018e8b1fa/" } ], "parent": [ { "pkid": "5dcd181e33fc9b0018900610", "href": "/api/data/HierarchyNode/5dcd181e33fc9b0018900610" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "method": "PUT", "href": "/api/data/DataSync/5deea7a256b5de0018e8b1fa/", "class": "update", "title": "Modify" } }, { "remove": { "support_async": true, "method": "DELETE", "href": "/api/data/DataSync/5deea7a256b5de0018e8b1fa/", "class": "delete", "title": "Delete" } }, { "clone": { "support_async": false, "method": "GET", "href": "/api/data/DataSync/5deea7a256b5de0018e8b1fa/clone/?schema=&schema_rules=true", "class": "clone", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/DataSync/5deea7a256b5de0018e8b1fa/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/DataSync/5deea7a256b5de0018e8b1fa/+tag/", "class": "tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/DataSync/5deea7a256b5de0018e8b1fa/+tag_version/", "class": "tag_version", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "support_async": true, "method": "POST", "href": "/api/data/DataSync/5deea7a256b5de0018e8b1fa/execute/", "class": "execute", "title": "Execute" } }, { "get": { "support_async": false, "method": "GET", "href": "/api/data/DataSync/5deea7a256b5de0018e8b1fa/", "class": "get", "title": "Get" } }, { "help": { "support_async": false, "method": "GET", "href": "/api/data/DataSync/5deea7a256b5de0018e8b1fa/help", "class": "help", "title": "Help" } } ], "model_type": "data/DataSync", "path": [ "6t0ggef2c0deab00hb595101", "5dcc7ff74544b7001862482f", "5dcd17c256b5de00189138f9", "5dcd181e33fc9b0018900610", "5deea7a256b5de0018e8b1fa" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "19.3.1", "tagged_versions": [] }, "data": { "quick_import": false, "device_filters": [ { "attr_name": "host", "value": "10.120.2.221", "condition": "equals" }, { "attr_name": "search_base_dn", "value": "OU=Helse-SorOst,DC=vossqa,DC=net", "condition": "equals" } ], "dependency_resolution": "default", "pkid": "5deea7a256b5de0018e8b1fb", "schema_only": true, "asynchronous": false, "device_type": "data/Ldap", "hierarchy_friendly_name": "GeoLogic (Customer)", "hierarchy_path": "sys.hcs.CS-P.GeoLogic", "sync_type": "pull", "name": "HcsLdapSchemaImport--5" } } ] }
(Show the first instance)
{ "pkid": "5dcd3e9c4544b700186100eb", "meta": { "tags": [], "cached": false, "title": "HcsLdapSchemaImport--1", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.2.9", "references": { "parent": [ { "pkid": "5dcd1812e186e30018eb7023", "href": "/api/data/HierarchyNode/5dcd1812e186e30018eb7023" } ], "self": [ { "pkid": "5dcd3e9c4544b700186100eb", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/" } ], "foreign_key": [], "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "children": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/?hierarchy=[hierarchy]", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/clone/?hierarchy=[hierarchy]&schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/export/?hierarchy=[hierarchy]", "method": "GET", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/+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/DataSync/5dcd3e9c4544b700186100eb/+tag_version/?hierarchy=[hierarchy]", "class": "tag_version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "execute": { "support_async": true, "class": "execute", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/execute/?hierarchy=[hierarchy]", "method": "POST", "title": "Execute" } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/?hierarchy=[hierarchy]", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/DataSync/5dcd3e9c4544b700186100eb/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "data/DataSync", "path": [ "6t0ggef2c0deab00hb595101", "5dcc7ff74544b7001862482f", "5dcd17c256b5de00189138f9", "5dcd180233fc9b00189005b2", "5dcd1812e186e30018eb7023", "5dcd3e9c4544b700186100eb" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "19.3.1", "tagged_versions": [] }, "data": { "device_filters": [ { "attr_name": "host", "condition": "equals", "value": "10.120.2.221" }, { "attr_name": "search_base_dn", "condition": "equals", "value": "OU=VOSSSOL9557,DC=vossqa,DC=net" } ], "dependency_resolution": "default", "pkid": "5dcd3e9c4544b700186100ec", "schema_only": true, "name": "HcsLdapSchemaImport--1", "asynchronous": false, "device_type": "data/Ldap", "quick_import": false, "sync_type": "pull" } }
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. |