[Index]
The DomainModel data model allows users to create their own domain models. Domain models aggregate data across multiple models, and may encapsulate business logic.
Model ref.: data/DomainModel
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": { "title": "Name", "type": "string", "required": true, "readonly": true }, "doc": { "title": "Documentation", "description": "Used for generating reference documentation for the model.", "required": true, "type": "string" }, "Meta": { "title": "Meta", "type": "object", "required": true, "properties": { "visible_at_lower_hierarchy": { "title": "Visible at Lower Hierarchy", "description": "When enabled, model instances defined at higher levels in the hierarchy will be visible at lower hierarchy levels.", "type": "boolean" }, "title_format": { "title": "Title Format", "type": "string", "required": false }, "summary_attrs": { "title": "Summary Attributes", "type": "array", "items": { "type": "string" }, "required": true }, "refs": { "title": "References To Resources", "type": "array", "required": true, "minItems": 1, "items": { "type": "object", "properties": { "name": { "type": "string", "title": "Reference Name", "description": "e.g. cucm_user.", "required": true }, "title": { "type": "string", "title": "Friendly Name", "description": "For example, Call Manager User." }, "resource": { "title": "Resource Type", "description": "For example, \"device/cucm/User\".", "type": "string", "format": "uri", "target": "/api/choices/?format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_model_type": "", "choices": [] }, "cardinality": { "title": "How Many?", "type": "string", "required": true, "choices": [ { "value": "1", "title": "Always One" }, { "value": "0-1", "title": "Zero or One" }, { "value": "0-N", "title": "Zero or More" }, { "value": "1-N", "title": "One or More" } ] }, "default_workflow": { "title": "Default Workflow", "type": "array", "minItems": 0, "maxItems": 2, "items": { "type": "object", "properties": { "operation": { "title": "Operation", "description": "For example, add or mod.", "type": "string", "choices": [ { "value": "add", "title": "Add" }, { "value": "update", "title": "Update" } ] }, "config_template": { "title": "Default Configuration Template", "description": "Any existing default configuration template for this reference.", "type": "string", "format": "uri", "target": "/api/data/ConfigurationTemplate/template_choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_attr": "name", "target_model_type": "data/ConfigurationTemplate", "choices": [] } } } } } } }, "attr_map": { "title": "Mapped Attributes", "type": "array", "required": true, "minItems": 0, "items": { "type": "object", "properties": { "name": { "title": "Domain Model Attribute", "description": "The name of the referenced attribute in the Domain Model. Note that this Domain Model Attribute name cannot be the same as a Reference Name of a resource.", "type": "string" }, "title": { "title": "Friendly Name", "description": "The displayed name of the Domain Model Attribute.", "type": "string" }, "group": { "title": "Group", "description": "If added, the Group name to which the Domain Model Attribute belongs. Attributes that have the same Group name are displayed together.", "type": "string" }, "refattrs": { "title": "Referenced Attributes", "type": "array", "minItems": 0, "items": { "type": "object", "properties": { "refname": { "title": "Reference Name", "description": "For example, cucm_user", "type": "string", "choices": [ { "value": "", "title": "" } ] }, "attr": { "title": "Resource Attribute", "description": "For example, \"userid\".", "type": "string", "choices": [ { "value": "", "title": "" } ] } } } } } } }, "workflows": { "title": "Workflows", "type": "array", "required": false, "items": { "type": "object", "properties": { "operation": { "title": "Workflow Operation", "description": "For example, \"add\", \"modify\", \"delete\".", "type": "string", "choices": [ { "value": "add", "title": "Add" }, { "value": "modify", "title": "Modify" }, { "value": "delete", "title": "Delete" } ] }, "workflow": { "title": "Provisioning Workflow", "type": "string", "format": "uri", "target": "/api/data/ProvisioningWorkflow/template_choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_attr": "name", "target_model_type": "data/ProvisioningWorkflow", "choices": [] } } } }, "operations": { "title": "Operations", "type": "array", "default": [ "add", "bulk_update_form", "clone", "configuration_template", "export", "export_bulkload_template", "field_display_policy", "get", "help", "list", "migration", "remove", "update" ], "required": true, "minItems": 0, "maxItems": 15, "items": { "type": "string", "choices": [ { "value": "add", "title": "Add" }, { "value": "bulk_update_form", "title": "Bulk Update" }, { "value": "clone", "title": "Clone" }, { "value": "configuration_template", "title": "Configuration Template" }, { "value": "field_display_policy", "title": "Field Display Policy" }, { "value": "export", "title": "Export" }, { "value": "export_bulkload_template", "title": "Export Bulk Load Template" }, { "value": "get", "title": "Get" }, { "value": "help", "title": "Help" }, { "value": "list", "title": "List" }, { "value": "migration", "title": "Migration Template" }, { "value": "remove", "title": "Remove" }, { "value": "tag", "title": "Tag" }, { "value": "tag_version", "title": "Tag Version" }, { "value": "update", "title": "Update" } ] } }, "constraints": { "title": "Constraints", "type": "array", "items": { "type": "object", "properties": { "unique": { "title": "Unique", "type": "array", "items": { "type": "string" }, "required": true }, "hierarchy": { "title": "Hierarchy", "type": "boolean" }, "business_key": { "title": "Business Key", "type": "boolean" } } }, "required": false } } } }, "schema_version": "0.1" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the GUI Add form. | GET | /api/data/DomainModel/add/ |
|
The GUI Add form of data/DomainModel 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/DomainModel | 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/DomainModel/ | hierarchy=[hierarchy] | {"hrefs":["/api/data/DomainModel/[pkid1]", "/api/data/DomainModel/[pkid2]", ...]} |
GET http://[host-proxy]/api/data/DomainModel/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Bulk Modify | GET | /api/data/DomainModel/bulk_update/?schema=&schema_rules=true |
|
|
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Bulk Modify | POST | /api/data/DomainModel/bulk_update/ |
|
For example: {"data":{"name":"value"}, "meta":{}, "request_meta":{ "hrefs":["/api/v0/data/DomainModel/[pkid1]", "/api/v0/data/DomainModel/[pkid2]",...]}} |
GET http://[host-proxy]/api/data/DomainModel/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Get a selected [export_format] of the schema and instances [pkid1], [pkid2],... of data/DomainModel; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | POST | /api/data/DomainModel/export/ |
|
{ "hrefs":["/api/data/DomainModel/[pkid1]", "/api/data/DomainModel/[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/DomainModel and the JSON format can be used to import instances of data/DomainModel.
GET http://[host-proxy]/api/data/DomainModel/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a compressed format of the Bulk Load spreadsheet template for data/DomainModel | POST | /api/data/DomainModel/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/DomainModel/configuration_template/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Field Display Policy | GET | /api/data/DomainModel/field_display_policy/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/FieldDisplayPolicy/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Migration Template | GET | /api/data/DomainModel/migration/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
List | GET | /api/data/DomainModel/ |
|
The data/DomainModel schema and all instances as JSON. |
(The list will return 0 to 3 data/DomainModel instances)
{ "pagination": { "skip": 0, "limit": 3, "maximum_limit": 2000, "total": 8, "total_limit": null, "order_by": "name", "direction": "asc", "current": "/api/data/DomainModel/?skip=0&limit=3&order_by=name&direction=asc&traversal=down" }, "operations": [ "field_display_policy", "update", "help", "remove", "move", "add", "export", "list", "configuration_template", "get", "bulk_update_form", "migration", "transform", "export_bulkload_template" ], "meta": { "model_type": "data/DomainModel", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "", "business_key": { "unique": [ "name" ], "hierarchy": false }, "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", "export", "export_bulkload_template", "field_display_policy", "get", "help", "list", "migration", "transform", "remove", "update" ], "schema_version": "0.1", "actions": [ { "add": { "method": "GET", "class": "add", "href": "/api/data/DomainModel/add/?hierarchy=[hierarchy]", "support_async": false, "title": "Add" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/DomainModel/?hierarchy=[hierarchy]", "support_async": true, "title": "Delete" } }, { "bulk_update_form": { "method": "GET", "class": "update", "href": "/api/data/DomainModel/bulk_update/?hierarchy=[hierarchy]&schema=&schema_rules=true", "support_async": false, "title": "Bulk Modify" } }, { "export": { "method": "POST", "class": "export", "href": "/api/data/DomainModel/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/DomainModel/export_bulkload_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Export Bulk Load Template" } }, { "configuration_template": { "method": "GET", "class": "config", "href": "/api/data/DomainModel/configuration_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Configuration Template" } }, { "field_display_policy": { "method": "GET", "class": "display_policy", "href": "/api/data/DomainModel/field_display_policy/?hierarchy=[hierarchy]", "support_async": false, "title": "Field Display Policy" } }, { "migration": { "method": "GET", "class": "migration", "href": "/api/data/DomainModel/migration/?hierarchy=[hierarchy]", "support_async": false, "title": "Migration Template" } }, { "list": { "method": "GET", "class": "list", "href": "/api/data/DomainModel/?hierarchy=[hierarchy]", "support_async": false, "title": "List" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/DomainModel/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } }, { "transform": { "method": "GET", "class": "transform", "href": "/api/data/DomainModel/transform/?hierarchy=[hierarchy]", "support_async": false, "title": "Transform Template" } } ] }, "resources": [ { "data": { "doc": "doc", "name": "AddPBXCountries", "Meta": { "operations": [ "list", "get", "add", "remove", "export_bulkload_template", "configuration_template", "field_display_policy", "export", "migration", "help" ], "attr_map": [ { "refattrs": [ { "refname": "data", "attr": "pbx" } ], "name": "PBX", "title": "CUCM Host Name" }, { "refattrs": [ { "refname": "data", "attr": "Country" } ], "name": "Country" }, { "refattrs": [ { "refname": "data", "attr": "dialplan" } ], "name": "DialPlanName", "title": "Dialplan" } ], "refs": [ { "cardinality": "1", "resource": "data/PBXCountries", "name": "data" } ], "workflows": [ { "operation": "add", "workflow": "AddPBXCountries" }, { "operation": "delete", "workflow": "DelPBXCountries" } ], "summary_attrs": [ "PBX", "Country", "DialPlanName" ], "constraints": [ { "hierarchy": true, "unique": [ "PBX", "Country", "DialPlanName" ], "business_key": true } ] }, "pkid": "5ad5b28eaffa9343e4d929d5", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" }, "meta": { "model_type": "data/DomainModel", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [ "feature_tag_add_cucm_countries", "V4UC", "ba_EndToEnd" ], "title": "AddPBXCountries", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [ { "path": "Meta.workflows.0.workflow", "model_type": "data/ProvisioningWorkflow" }, { "path": "Meta.workflows.1.workflow", "model_type": "data/ProvisioningWorkflow" } ], "self": [ { "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/", "pkid": "5ad5b28eaffa9343e4d929d4" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5b28eaffa9343e4d929d4" ], "schema_version": "0.1", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5ad5b28eaffa9343e4d929d4" }, { "data": { "doc": "Domain model for creating hierarchy nodes of type BaseCustomerDAT", "name": "BaseCustomerDOM", "Meta": { "operations": [ "list", "get", "add", "update", "remove", "export_bulkload_template", "bulk_update", "configuration_template", "field_display_policy", "export", "migration", "help" ], "attr_map": [ { "refattrs": [ { "refname": "business_data", "attr": "CustomerName" } ], "name": "name", "title": "Customer Name" }, { "refattrs": [ { "refname": "business_data", "attr": "InternalCustomerID" } ], "name": "InternalCustomerID", "title": "Internal ID" }, { "refattrs": [ { "refname": "business_data", "attr": "Description" } ], "name": "Description", "title": "Description" }, { "refattrs": [ { "refname": "business_data", "attr": "Address1" } ], "name": "Address1", "title": "Address Line 1" }, { "refattrs": [ { "refname": "business_data", "attr": "Address2" } ], "name": "Address2", "title": "Address Line 2" }, { "refattrs": [ { "refname": "business_data", "attr": "Address3" } ], "name": "Address3", "title": "Address Line 3" }, { "refattrs": [ { "refname": "business_data", "attr": "CustomerID" } ], "name": "CustomerID", "title": "Customer ID" } ], "refs": [ { "cardinality": "1", "resource": "data/BaseCustomerDAT", "name": "business_data", "title": "Hierarchy Business Data" } ], "workflows": [ { "operation": "add", "workflow": "AddHierarchyType_BaseCustomer" }, { "operation": "delete", "workflow": "DelHierarchyType_BaseCustomer" } ], "summary_attrs": [ "name" ], "constraints": [ { "hierarchy": true, "unique": [ "name" ], "business_key": true } ] }, "pkid": "5ad5b258affa9343e4d9293c", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" }, "meta": { "model_type": "data/DomainModel", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [ "vossbase", "V4UC", "ba_EndToEnd" ], "title": "BaseCustomerDOM", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [ { "path": "Meta.workflows.0.workflow", "model_type": "data/ProvisioningWorkflow" }, { "path": "Meta.workflows.1.workflow", "model_type": "data/ProvisioningWorkflow" } ], "self": [ { "href": "/api/data/DomainModel/5ad5b257affa9343e4d9293b/", "pkid": "5ad5b257affa9343e4d9293b" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5b257affa9343e4d9293b" ], "schema_version": "0.1", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/DomainModel/5ad5b257affa9343e4d9293b/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/DomainModel/5ad5b257affa9343e4d9293b/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/DomainModel/5ad5b257affa9343e4d9293b/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/DomainModel/5ad5b257affa9343e4d9293b/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/DomainModel/5ad5b257affa9343e4d9293b/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/DomainModel/5ad5b257affa9343e4d9293b/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5ad5b257affa9343e4d9293b" }, { "data": { "doc": "Domain model for creating hierarchy nodes of type BaseProvider", "name": "BaseProvider", "Meta": { "operations": [ "list", "get", "add", "update", "remove", "export_bulkload_template", "bulk_update", "configuration_template", "field_display_policy", "export", "migration", "help" ], "attr_map": [ { "refattrs": [ { "refname": "data_hn", "attr": "name" }, { "refname": "business_data", "attr": "name" } ], "name": "name", "title": "Provider Name" }, { "refattrs": [ { "refname": "business_data", "attr": "Description" } ], "name": "Description", "title": "Description" } ], "refs": [ { "cardinality": "1", "resource": "data/HierarchyNode", "name": "data_hn", "title": "Hierarchy Node" }, { "cardinality": "1", "resource": "data/BaseProvider", "name": "business_data", "title": "Hierarchy Business Data" } ], "workflows": [ { "operation": "add", "workflow": "AddHierarchyType_BaseProvider" }, { "operation": "delete", "workflow": "DelHierarchyType_BaseProvider" } ], "summary_attrs": [ "name", "Description" ], "constraints": [ { "hierarchy": true, "unique": [ "name" ], "business_key": true } ] }, "pkid": "5ad5b26faffa9343e4d92987", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" }, "meta": { "model_type": "data/DomainModel", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [ "feature_tag_add_provider", "V4UC", "ba_EndToEnd" ], "title": "BaseProvider", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [ { "path": "Meta.workflows.0.workflow", "model_type": "data/ProvisioningWorkflow" }, { "path": "Meta.workflows.1.workflow", "model_type": "data/ProvisioningWorkflow" } ], "self": [ { "href": "/api/data/DomainModel/5ad5b26faffa9343e4d92986/", "pkid": "5ad5b26faffa9343e4d92986" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5b26faffa9343e4d92986" ], "schema_version": "0.1", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/DomainModel/5ad5b26faffa9343e4d92986/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/DomainModel/5ad5b26faffa9343e4d92986/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/DomainModel/5ad5b26faffa9343e4d92986/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/DomainModel/5ad5b26faffa9343e4d92986/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/DomainModel/5ad5b26faffa9343e4d92986/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/DomainModel/5ad5b26faffa9343e4d92986/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5ad5b26faffa9343e4d92986" } ] }
(Show the first instance)
{ "data": { "doc": "doc", "name": "AddPBXCountries", "Meta": { "operations": [ "list", "get", "add", "remove", "export_bulkload_template", "configuration_template", "field_display_policy", "export", "migration", "help" ], "attr_map": [ { "refattrs": [ { "refname": "data", "attr": "pbx" } ], "name": "PBX", "title": "CUCM Host Name" }, { "refattrs": [ { "refname": "data", "attr": "Country" } ], "name": "Country" }, { "refattrs": [ { "refname": "data", "attr": "dialplan" } ], "name": "DialPlanName", "title": "Dialplan" } ], "refs": [ { "cardinality": "1", "resource": "data/PBXCountries", "name": "data" } ], "workflows": [ { "operation": "add", "workflow": "AddPBXCountries" }, { "operation": "delete", "workflow": "DelPBXCountries" } ], "summary_attrs": [ "PBX", "Country", "DialPlanName" ], "constraints": [ { "hierarchy": true, "unique": [ "PBX", "Country", "DialPlanName" ], "business_key": true } ] }, "pkid": "5ad5b28eaffa9343e4d929d5" }, "meta": { "model_type": "data/DomainModel", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [ "feature_tag_add_cucm_countries", "V4UC", "ba_EndToEnd" ], "title": "AddPBXCountries", "business_key": { "unique": [ "name" ], "hierarchy": false }, "api_version": "21.2", "cached": false, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101", "pkid": "6t0ggef2c0deab00hb595101" } ], "foreign_key": [ { "path": "Meta.workflows.0.workflow", "model_type": "data/ProvisioningWorkflow" }, { "path": "Meta.workflows.1.workflow", "model_type": "data/ProvisioningWorkflow" } ], "children": [], "self": [ { "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/", "pkid": "5ad5b28eaffa9343e4d929d4" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5b28eaffa9343e4d929d4" ], "schema_version": "0.1", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/?hierarchy=[hierarchy]", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/?hierarchy=[hierarchy]", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/clone/?hierarchy=[hierarchy]&schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/export/?hierarchy=[hierarchy]", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/?auth_token=[authtoken], "submit": "payload" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/?hierarchy=[hierarchy]", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/DomainModel/5ad5b28eaffa9343e4d929d4/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } } ] }, "pkid": "5ad5b28eaffa9343e4d929d4" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for data/DomainModel. | GET | /api/data/DomainModel/help | hierarchy=[hierarchy] | On-line help of Model ref.: data/DomainModel as HTML |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Transform Template | GET | /api/data/DomainModel/transform/ |
|
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Modify | PUT | /api/data/DomainModel/[pkid] | hierarchy=[hierarchy] | (For payload specification) |
For Bulk modification, refer to the Bulk Modify section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Delete | DELETE | /api/data/DomainModel/[pkid] | hierarchy=[hierarchy] |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Clone instance with [pkid]. The schema rules are applied. | GET | /api/data/DomainModel/[pkid]/clone/?schema=&schema_rules=true |
|
A JSON payload with:
|
GET http://[host-proxy]/api/data/DomainModel/?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/DomainModel; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | GET | /api/data/DomainModel/[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/DomainModel and the JSON format can be used to import instances of data/DomainModel.
For Bulk Export, refer to the Bulk Export section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get | GET | /api/data/DomainModel/[pkid] | hierarchy=[hierarchy] | The data/DomainModel instance with [pkid]. |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/data/DomainModel/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for data/DomainModel. |