[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": { "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.", "title": "Model Instance Filter", "format": "uri", "choices": [], "target_attr": "name", "target_model_type": "data/ModelInstanceFilter", "type": "string", "target": "/api/data/ModelInstanceFilter/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken] }, "sync_order": { "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.", "title": "Synchronization Order", "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] }, "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)" }, "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" }, "model_type_list": { "description": "The selected 'exclusion/inclusion' model type list that was created as a model instance of the Model Type List. See: Model Type List.", "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] }, "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.3.5" }
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": 50 }, "meta": { "tags": [], "cached": true, "title": "", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.3.5", "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": "21.2", "tagged_versions": [] }, "resources": [ { "pkid": "6109f9e9e04a4a0014a42099", "meta": { "tags": [], "cached": true, "title": "HcsLdapSchemaImport--1", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.3.5", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "6109f9e9e04a4a0014a42099", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/" } ], "parent": [ { "pkid": "6109c040e04a4a00149d61cf", "href": "/api/data/HierarchyNode/6109c040e04a4a00149d61cf" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/clone/?schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/+tag/", "class": "tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/+tag_version/", "class": "tag_version", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "support_async": true, "class": "execute", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/execute/", "method": "POST", "title": "Execute" } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/help", "method": "GET", "title": "Help" } } ], "model_type": "data/DataSync", "path": [ "6t0ggef2c0deab00hb595101", "61097058e04a4a001501b18c", "6109bff5e04a4a00149d4e1d", "6109c032e04a4a00149d5e4d", "6109c040e04a4a00149d61cf", "6109f9e9e04a4a0014a42099" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "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": "6109f9e9e04a4a0014a4209a", "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": "610a2135e04a4a0014a87c73", "meta": { "tags": [], "cached": true, "title": "HcsLdapSchemaImport--4", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.3.5", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "610a2135e04a4a0014a87c73", "href": "/api/data/DataSync/610a2135e04a4a0014a87c73/" } ], "parent": [ { "pkid": "6109c040e04a4a00149d61cf", "href": "/api/data/HierarchyNode/6109c040e04a4a00149d61cf" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "href": "/api/data/DataSync/610a2135e04a4a0014a87c73/", "title": "Modify", "class": "update", "method": "PUT" } }, { "remove": { "support_async": true, "href": "/api/data/DataSync/610a2135e04a4a0014a87c73/", "title": "Delete", "class": "delete", "method": "DELETE" } }, { "clone": { "support_async": false, "href": "/api/data/DataSync/610a2135e04a4a0014a87c73/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/610a2135e04a4a0014a87c73/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "class": "tag", "href": "/api/data/DataSync/610a2135e04a4a0014a87c73/+tag/", "method": "PATCH", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "class": "tag_version", "href": "/api/data/DataSync/610a2135e04a4a0014a87c73/+tag_version/", "method": "PATCH", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "support_async": true, "href": "/api/data/DataSync/610a2135e04a4a0014a87c73/execute/", "title": "Execute", "class": "execute", "method": "POST" } }, { "get": { "support_async": false, "href": "/api/data/DataSync/610a2135e04a4a0014a87c73/", "title": "Get", "class": "get", "method": "GET" } }, { "help": { "support_async": false, "href": "/api/data/DataSync/610a2135e04a4a0014a87c73/help", "title": "Help", "class": "help", "method": "GET" } } ], "model_type": "data/DataSync", "path": [ "6t0ggef2c0deab00hb595101", "61097058e04a4a001501b18c", "6109bff5e04a4a00149d4e1d", "6109c032e04a4a00149d5e4d", "6109c040e04a4a00149d61cf", "610a2135e04a4a0014a87c73" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "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=RAV,OU=AAAGlobal,DC=vossqa,DC=net", "condition": "equals" } ], "dependency_resolution": "default", "pkid": "610a2135e04a4a0014a87c74", "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": "610a24e8e04a4a0014a9050e", "meta": { "tags": [], "cached": true, "title": "HcsLdapSchemaImport--5", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.3.5", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "610a24e8e04a4a0014a9050e", "href": "/api/data/DataSync/610a24e8e04a4a0014a9050e/" } ], "parent": [ { "pkid": "6109c040e04a4a00149d61cf", "href": "/api/data/HierarchyNode/6109c040e04a4a00149d61cf" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "method": "PUT", "href": "/api/data/DataSync/610a24e8e04a4a0014a9050e/", "class": "update", "title": "Modify" } }, { "remove": { "support_async": true, "method": "DELETE", "href": "/api/data/DataSync/610a24e8e04a4a0014a9050e/", "class": "delete", "title": "Delete" } }, { "clone": { "support_async": false, "method": "GET", "href": "/api/data/DataSync/610a24e8e04a4a0014a9050e/clone/?schema=&schema_rules=true", "class": "clone", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "method": "GET", "href": "/api/data/DataSync/610a24e8e04a4a0014a9050e/export/", "class": "export", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "class": "tag", "href": "/api/data/DataSync/610a24e8e04a4a0014a9050e/+tag/", "method": "PATCH", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "class": "tag_version", "href": "/api/data/DataSync/610a24e8e04a4a0014a9050e/+tag_version/", "method": "PATCH", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "support_async": true, "method": "POST", "href": "/api/data/DataSync/610a24e8e04a4a0014a9050e/execute/", "class": "execute", "title": "Execute" } }, { "get": { "support_async": false, "method": "GET", "href": "/api/data/DataSync/610a24e8e04a4a0014a9050e/", "class": "get", "title": "Get" } }, { "help": { "support_async": false, "method": "GET", "href": "/api/data/DataSync/610a24e8e04a4a0014a9050e/help", "class": "help", "title": "Help" } } ], "model_type": "data/DataSync", "path": [ "6t0ggef2c0deab00hb595101", "61097058e04a4a001501b18c", "6109bff5e04a4a00149d4e1d", "6109c032e04a4a00149d5e4d", "6109c040e04a4a00149d61cf", "610a24e8e04a4a0014a9050e" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "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": "610a24e8e04a4a0014a9050f", "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--5" } } ] }
(Show the first instance)
{ "pkid": "6109f9e9e04a4a0014a42099", "meta": { "tags": [], "cached": false, "title": "HcsLdapSchemaImport--1", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.3.5", "references": { "parent": [ { "pkid": "6109c040e04a4a00149d61cf", "href": "/api/data/HierarchyNode/6109c040e04a4a00149d61cf" } ], "self": [ { "pkid": "6109f9e9e04a4a0014a42099", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/" } ], "foreign_key": [], "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "children": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/?hierarchy=[hierarchy]", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/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/6109f9e9e04a4a0014a42099/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/6109f9e9e04a4a0014a42099/+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/6109f9e9e04a4a0014a42099/+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/6109f9e9e04a4a0014a42099/execute/?hierarchy=[hierarchy]", "method": "POST", "title": "Execute" } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/?hierarchy=[hierarchy]", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/DataSync/6109f9e9e04a4a0014a42099/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "data/DataSync", "path": [ "6t0ggef2c0deab00hb595101", "61097058e04a4a001501b18c", "6109bff5e04a4a00149d4e1d", "6109c032e04a4a00149d5e4d", "6109c040e04a4a00149d61cf", "6109f9e9e04a4a0014a42099" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "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": "6109f9e9e04a4a0014a4209a", "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. |