Sample Collector Definition
Here is a sample of a Synchro Data Source definition file in JSON.
Notice the use of the
$version$
, $synchro_user$
,
$contact_to_notify$
and $test$
placeholders- MyCollector.json
-
{ "name": "$test$", "description": "A test synchro data source - version $version$", "status": "implementation", "user_id": "$synchro_user$", "notify_contact_id": "$contact_to_notify$", "scope_class": "Server", "database_table_name": "", "scope_restriction": "", "full_load_periodicity": "0", "reconciliation_policy": "use_attributes", "action_on_zero": "create", "action_on_one": "update", "action_on_multiple": "error", "delete_policy": "ignore", "delete_policy_update": "", "delete_policy_retention": "0", "attribute_list": [ { "attcode": "applicationsolution_list", "update": "1", "reconcile": "0", "update_policy": "master_locked", "row_separator": "|", "attribute_separator": ";", "value_separator": ":", "attribute_qualifier": "'", "finalclass": "SynchroAttLinkSet", "friendlyname": "applicationsolution_list" }, { "attcode": "asset_number", "update": "1", "reconcile": "0", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "asset_number" }, { "attcode": "brand_id", "update": "1", "reconcile": "0", "update_policy": "master_locked", "reconciliation_attcode": "", "finalclass": "SynchroAttExtKey", "friendlyname": "brand_id" }, { "attcode": "business_criticity", "update": "1", "reconcile": "0", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "business_criticity" }, { "attcode": "contacts_list", "update": "1", "reconcile": "0", "update_policy": "master_locked", "row_separator": "|", "attribute_separator": ";", "value_separator": ":", "attribute_qualifier": "'", "finalclass": "SynchroAttLinkSet", "friendlyname": "contacts_list" }, { "attcode": "cpu", "update": "1", "reconcile": "0", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "cpu" }, { "attcode": "description", "update": "1", "reconcile": "0", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "description" }, { "attcode": "documents_list", "update": "1", "reconcile": "0", "update_policy": "master_locked", "row_separator": "|", "attribute_separator": ";", "value_separator": ":", "attribute_qualifier": "'", "finalclass": "SynchroAttLinkSet", "friendlyname": "documents_list" }, { "attcode": "enclosure_id", "update": "1", "reconcile": "0", "update_policy": "master_locked", "reconciliation_attcode": "", "finalclass": "SynchroAttExtKey", "friendlyname": "enclosure_id" }, { "attcode": "end_of_warranty", "update": "1", "reconcile": "0", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "end_of_warranty" }, { "attcode": "location_id", "update": "1", "reconcile": "0", "update_policy": "master_locked", "reconciliation_attcode": "", "finalclass": "SynchroAttExtKey", "friendlyname": "location_id" }, { "attcode": "logicalvolumes_list", "update": "1", "reconcile": "0", "update_policy": "master_locked", "row_separator": "|", "attribute_separator": ";", "value_separator": ":", "attribute_qualifier": "'", "finalclass": "SynchroAttLinkSet", "friendlyname": "logicalvolumes_list" }, { "attcode": "managementip", "update": "1", "reconcile": "0", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "managementip" }, { "attcode": "model_id", "update": "1", "reconcile": "0", "update_policy": "master_locked", "reconciliation_attcode": "", "finalclass": "SynchroAttExtKey", "friendlyname": "model_id" }, { "attcode": "move2production", "update": "1", "reconcile": "0", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "move2production" }, { "attcode": "name", "update": "1", "reconcile": "1", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "name" }, { "attcode": "nb_u", "update": "1", "reconcile": "0", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "nb_u" }, { "attcode": "networkdevice_list", "update": "1", "reconcile": "0", "update_policy": "master_locked", "row_separator": "|", "attribute_separator": ";", "value_separator": ":", "attribute_qualifier": "'", "finalclass": "SynchroAttLinkSet", "friendlyname": "networkdevice_list" }, { "attcode": "org_id", "update": "1", "reconcile": "1", "update_policy": "master_locked", "reconciliation_attcode": "name", "finalclass": "SynchroAttExtKey", "friendlyname": "org_id" }, { "attcode": "osfamily_id", "update": "1", "reconcile": "0", "update_policy": "master_locked", "reconciliation_attcode": "", "finalclass": "SynchroAttExtKey", "friendlyname": "osfamily_id" }, { "attcode": "oslicence_id", "update": "1", "reconcile": "0", "update_policy": "master_locked", "reconciliation_attcode": "", "finalclass": "SynchroAttExtKey", "friendlyname": "oslicence_id" }, { "attcode": "osversion_id", "update": "1", "reconcile": "0", "update_policy": "master_locked", "reconciliation_attcode": "", "finalclass": "SynchroAttExtKey", "friendlyname": "osversion_id" }, { "attcode": "powerA_id", "update": "1", "reconcile": "0", "update_policy": "master_locked", "reconciliation_attcode": "", "finalclass": "SynchroAttExtKey", "friendlyname": "powerA_id" }, { "attcode": "powerB_id", "update": "1", "reconcile": "0", "update_policy": "master_locked", "reconciliation_attcode": "", "finalclass": "SynchroAttExtKey", "friendlyname": "powerB_id" }, { "attcode": "providercontracts_list", "update": "1", "reconcile": "0", "update_policy": "master_locked", "row_separator": "|", "attribute_separator": ";", "value_separator": ":", "attribute_qualifier": "'", "finalclass": "SynchroAttLinkSet", "friendlyname": "providercontracts_list" }, { "attcode": "purchase_date", "update": "1", "reconcile": "0", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "purchase_date" }, { "attcode": "rack_id", "update": "1", "reconcile": "0", "update_policy": "master_locked", "reconciliation_attcode": "", "finalclass": "SynchroAttExtKey", "friendlyname": "rack_id" }, { "attcode": "ram", "update": "1", "reconcile": "0", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "ram" }, { "attcode": "san_list", "update": "1", "reconcile": "0", "update_policy": "master_locked", "row_separator": "|", "attribute_separator": ";", "value_separator": ":", "attribute_qualifier": "'", "finalclass": "SynchroAttLinkSet", "friendlyname": "san_list" }, { "attcode": "serialnumber", "update": "1", "reconcile": "0", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "serialnumber" }, { "attcode": "services_list", "update": "1", "reconcile": "0", "update_policy": "master_locked", "row_separator": "|", "attribute_separator": ";", "value_separator": ":", "attribute_qualifier": "'", "finalclass": "SynchroAttLinkSet", "friendlyname": "services_list" }, { "attcode": "status", "update": "1", "reconcile": "0", "update_policy": "master_locked", "finalclass": "SynchroAttribute", "friendlyname": "status" }, { "attcode": "tickets_list", "update": "1", "reconcile": "0", "update_policy": "master_locked", "row_separator": "|", "attribute_separator": ";", "value_separator": ":", "attribute_qualifier": "'", "finalclass": "SynchroAttLinkSet", "friendlyname": "tickets_list" } ], "user_delete_policy": "nobody", "url_icon": "", "url_application": "", "friendlyname": "Test 1", "user_id_friendlyname": "", "user_id_finalclass_recall": "", "notify_contact_id_friendlyname": " ", "notify_contact_id_finalclass_recall": "" }
extensions/sample-collector-definition.txt ยท Last
modified: 2020/10/23 10:22 by 127.0.0.1