[Index]
A Relation joins related models, and represents their attributes as a single entity.
Model ref.: data/Relation
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": { "operations": { "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": "move", "title": "Move" }, { "value": "remove", "title": "Remove" }, { "value": "tag", "title": "Tag" }, { "value": "tag_version", "title": "Tag Version" }, { "value": "update", "title": "Update" } ] }, "type": "array", "title": "Operations" }, "join": { "items": { "type": "object", "properties": { "right_model_type": { "target": "/api/choices/?format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "title": "Right Model Type", "format": "uri", "choices": [], "target_model_type": "", "type": "string" }, "join_on": { "items": { "type": "object", "properties": { "left_attr": { "title": "Left Model Attribute", "type": "string", "choices": [ { "value": "", "title": "" } ] }, "right_attr": { "title": "Right Model Attribute", "type": "string", "choices": [ { "value": "", "title": "" } ] } } }, "type": "array", "title": "Join On Attributes" }, "sort_on": { "items": { "type": "string" }, "type": "array", "description": "Attributes of right model to sort with if more than one instance joined. Can be nested, eg. endpoint.index.", "title": "Sort On Attributes" }, "right_alias": { "type": "string", "title": "Right Alias" }, "left_alias": { "type": "string", "title": "Left Alias" }, "cardinality": { "title": "Cardinality", "type": "string", "choices": [ { "value": "1-1", "title": "One-to-one" }, { "value": "1-0..1", "title": "One-to-optionally-one" }, { "value": "1-*", "title": "One-to-many" }, { "value": "1-0..*", "title": "One-to-optionally-many" } ] }, "left_model_type": { "target": "/api/choices/?format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "title": "Left Model Type", "format": "uri", "choices": [], "target_model_type": "", "type": "string" } } }, "required": true, "type": "array", "title": "Models To Join" }, "name": { "required": true, "type": "string", "title": "Name" }, "doc": { "type": "string", "description": "Used for generating reference documentation for the Relation.", "title": "Documentation" }, "workflows": { "items": { "type": "object", "properties": { "operation": { "title": "Workflow Operation", "type": "string", "description": "For example, \"add\", \"modify\", \"delete\".", "choices": [ { "value": "add", "title": "Add" }, { "value": "modify", "title": "Update" }, { "value": "delete", "title": "Remove" } ] }, "workflow": { "target": "/api/data/ProvisioningWorkflow/template_choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "title": "Provisioning Workflow", "format": "uri", "choices": [], "target_attr": "name", "target_model_type": "data/ProvisioningWorkflow", "type": "string" } } }, "required": false, "type": "array", "title": "Workflows" }, "summary_attrs": { "items": { "type": "string" }, "type": "array", "description": "Write as \"attribute\", \"alias.attribute\" or \"alias.alias.attribute\" (depending on how its model is joined).", "title": "Summary Attributes" }, "visible_at_lower_hierarchy": { "type": "boolean", "description": "When enabled, model instances defined at higher levels in the hierarchy will be visible at lower hierarchy levels.", "title": "Visible at Lower Hierarchy" } }, "schema_version": "0.1" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the GUI Add form. | GET | /api/data/Relation/add/ |
|
The GUI Add form of data/Relation 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/Relation/ | 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/Relation/ | hierarchy=[hierarchy] | {"hrefs":["/api/data/Relation/[pkid1]", "/api/data/Relation/[pkid2]", ...]} |
GET http://[host-proxy]/api/data/Relation/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Bulk Modify | GET | /api/data/Relation/bulk_update/?schema=&schema_rules=true |
|
|
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Bulk Modify | POST | /api/data/Relation/bulk_update/ |
|
For example: {"data":{"name":"value"}, "meta":{}, "request_meta":{ "hrefs":["/api/v0/data/Relation/[pkid1]", "/api/v0/data/Relation/[pkid2]",...]}} |
GET http://[host-proxy]/api/data/Relation/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Get a selected [export_format] of the schema and instances [pkid1], [pkid2],... of data/Relation; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | POST | /api/data/Relation/export/ |
|
{ "hrefs":["/api/data/Relation/[pkid1]", "/api/data/Relation/[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/Relation and the JSON format can be used to import instances of data/Relation.
GET http://[host-proxy]/api/data/Relation/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a compressed format of the Bulk Load spreadsheet template for data/Relation | POST | /api/data/Relation/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/Relation/configuration_template/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Field Display Policy | GET | /api/data/Relation/field_display_policy/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/FieldDisplayPolicy/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Migration Template | GET | /api/data/Relation/migration/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
List | GET | /api/data/Relation/ |
|
The data/Relation schema and all instances as JSON. |
(The list will return 0 to 3 data/Relation 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/Relation/?skip=0&limit=3&order_by=name&direction=asc&traversal=default", "limit": 3, "total_limit": null, "total": 148 }, "meta": { "tags": [], "cached": true, "title": "", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.1", "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/Relation/add/?hierarchy=[hierarchy]", "method": "GET", "title": "Add" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/Relation/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "bulk_update_form": { "support_async": false, "class": "update", "href": "/api/data/Relation/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/Relation/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/Relation/export_bulkload_template/?hierarchy=[hierarchy]", "method": "POST", "title": "Export Bulk Load Template" } }, { "configuration_template": { "support_async": false, "class": "config", "href": "/api/data/Relation/configuration_template/?hierarchy=[hierarchy]", "method": "GET", "title": "Configuration Template" } }, { "field_display_policy": { "support_async": false, "class": "display_policy", "href": "/api/data/Relation/field_display_policy/?hierarchy=[hierarchy]", "method": "GET", "title": "Field Display Policy" } }, { "migration": { "support_async": false, "class": "migration", "href": "/api/data/Relation/migration/?hierarchy=[hierarchy]", "method": "GET", "title": "Migration Template" } }, { "list": { "support_async": false, "class": "list", "href": "/api/data/Relation/?hierarchy=[hierarchy]", "method": "GET", "title": "List" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/Relation/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "data/Relation", "model_specific_actions": [ "add", "bulk_update_form", "clone", "configuration_template", "export", "export_bulkload_template", "field_display_policy", "get", "help", "list", "migration", "remove", "update" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "resources": [ { "pkid": "63050f0843fcc416f18f1b44", "meta": { "tags": [ "assurance", "V4UC", "ba_CommonOverlay" ], "cached": true, "title": "AssuranceArbitratorServer", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.1", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "63050f0843fcc416f18f1b44", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "version_tag": "1.2.5", "model_type": "data/Relation", "path": [ "6t0ggef2c0deab00hb595101", "63050f0843fcc416f18f1b44" ], "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/clone/?schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/help", "method": "GET", "title": "Help" } } ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [ { "pkid": "63050f0843fcc416f18f1b46", "version": "1.2.5", "href": "/api/v0/data/Relation/63050f0843fcc416f18f1b44/?cached=63050f0843fcc416f18f1b46" } ] }, "data": { "operations": [ "list", "get", "add", "update", "remove", "export_bulkload_template", "configuration_template", "field_display_policy", "export", "help" ], "join": [ { "left_model_type": "data/AssuranceArbitratorServer", "right_model_type": "data/NoInstance", "right_alias": "shadow", "left_alias": "base", "cardinality": "1-0..1", "join_on": [ { "left_attr": "name", "right_attr": "name" } ] } ], "name": "AssuranceArbitratorServer", "pkid": "63050f0843fcc416f18f1b45", "doc": "This relation implements the workflows to manage Assurance Arbitrator Server connection parameters and enabled services.", "workflows": [ { "operation": "add", "workflow": "AddAssuranceArbitratorServer" }, { "operation": "modify", "workflow": "ModAssuranceArbitratorServer" }, { "operation": "delete", "workflow": "DelAssuranceArbitratorServer" }, { "operation": "Sync", "workflow": "SyncAssuranceArbitratorServer" }, { "operation": "TestConnection", "workflow": "TestConnectionAssuranceArbitratorServer" } ], "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" } }, { "pkid": "6305086343fcc416f18ea4b9", "meta": { "tags": [ "Bundle", "V4UC", "ba_SYS" ], "cached": true, "title": "Bundle", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.1", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "6305086343fcc416f18ea4b9", "href": "/api/data/Relation/6305086343fcc416f18ea4b9/" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "version_tag": "2.2", "model_type": "data/Relation", "path": [ "6t0ggef2c0deab00hb595101", "6305086343fcc416f18ea4b9" ], "actions": [ { "update": { "support_async": true, "href": "/api/data/Relation/6305086343fcc416f18ea4b9/", "title": "Modify", "class": "update", "method": "PUT" } }, { "remove": { "support_async": true, "href": "/api/data/Relation/6305086343fcc416f18ea4b9/", "title": "Delete", "class": "delete", "method": "DELETE" } }, { "clone": { "support_async": false, "href": "/api/data/Relation/6305086343fcc416f18ea4b9/clone/?schema=&schema_rules=true", "title": "Clone", "class": "clone", "method": "GET" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/Relation/6305086343fcc416f18ea4b9/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "get": { "support_async": false, "href": "/api/data/Relation/6305086343fcc416f18ea4b9/", "title": "Get", "class": "get", "method": "GET" } }, { "help": { "support_async": false, "href": "/api/data/Relation/6305086343fcc416f18ea4b9/help", "title": "Help", "class": "help", "method": "GET" } } ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [ { "pkid": "6305086343fcc416f18ea4bb", "version": "2.2", "href": "/api/v0/data/Relation/6305086343fcc416f18ea4b9/?cached=6305086343fcc416f18ea4bb" } ] }, "data": { "operations": [ "get", "list", "add", "update", "remove", "export", "export_bulkload_template", "help" ], "join": [ { "left_model_type": "data/Bundle", "right_model_type": "data/Patch", "right_alias": "patchDat", "left_alias": "bundleDat", "cardinality": "1-0..*", "join_on": [ { "left_attr": "name", "right_attr": "bundleName" } ] } ], "name": "Bundle", "pkid": "6305086343fcc416f18ea4ba", "doc": "A Bundle is a logical grouping of packages that are installed together.", "hierarchy_friendly_name": "sys (System)", "summary_attrs": [ "name", "version" ], "visible_at_lower_hierarchy": true, "hierarchy_path": "sys" } }, { "pkid": "63050f2743fcc416f18f1e44", "meta": { "tags": [ "auto_attendant", "V4UC", "ba_CommonOverlay" ], "cached": true, "title": "CallhandlerREL", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.1", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "63050f2743fcc416f18f1e44", "href": "/api/data/Relation/63050f2743fcc416f18f1e44/" } ], "parent": [ { "pkid": "6305086243fcc416f18ea4ac", "href": "/api/data/HierarchyNode/6305086243fcc416f18ea4ac" } ], "foreign_key": [] }, "version_tag": "1.1.3", "model_type": "data/Relation", "path": [ "6t0ggef2c0deab00hb595101", "6305086243fcc416f18ea4ac", "63050f2743fcc416f18f1e44" ], "actions": [ { "update": { "support_async": true, "method": "PUT", "href": "/api/data/Relation/63050f2743fcc416f18f1e44/", "class": "update", "title": "Modify" } }, { "remove": { "support_async": true, "method": "DELETE", "href": "/api/data/Relation/63050f2743fcc416f18f1e44/", "class": "delete", "title": "Delete" } }, { "clone": { "support_async": false, "method": "GET", "href": "/api/data/Relation/63050f2743fcc416f18f1e44/clone/?schema=&schema_rules=true", "class": "clone", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "method": "GET", "href": "/api/data/Relation/63050f2743fcc416f18f1e44/export/", "class": "export", "view": "/api/view/ExportData/add/" } }, { "get": { "support_async": false, "method": "GET", "href": "/api/data/Relation/63050f2743fcc416f18f1e44/", "class": "get", "title": "Get" } }, { "help": { "support_async": false, "method": "GET", "href": "/api/data/Relation/63050f2743fcc416f18f1e44/help", "class": "help", "title": "Help" } } ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [ { "pkid": "63050f2743fcc416f18f1e46", "version": "1.1.3", "href": "/api/v0/data/Relation/63050f2743fcc416f18f1e44/?cached=63050f2743fcc416f18f1e46" } ] }, "data": { "operations": [ "list", "get", "update", "remove", "export_bulkload_template", "configuration_template", "field_display_policy", "export", "help", "move", "create", "add", "bulk_update_form", "migration", "tag", "tag_version" ], "join": [ { "left_model_type": "device/cuc/Callhandler", "right_model_type": "device/cuc/CallhandlerMenuEntry", "right_alias": "CallhandlerMenuEntry", "left_alias": "Callhandler", "cardinality": "1-0..*", "join_on": [ { "left_attr": "ObjectId", "right_attr": "CallHandlerObjectId" } ] }, { "left_model_type": "device/cuc/Callhandler", "right_model_type": "device/cuc/Greeting", "right_alias": "Greeting", "left_alias": "Callhandler", "cardinality": "1-0..*", "join_on": [ { "left_attr": "ObjectId", "right_attr": "CallHandlerObjectId" } ] }, { "left_model_type": "device/cuc/Callhandler", "right_model_type": "view/HF_CallHandlerVIEW", "right_alias": "HF", "left_alias": "Callhandler", "cardinality": "1-1", "join_on": [ { "left_attr": "ObjectId", "right_attr": "cuc_template" } ] }, { "left_model_type": "device/cuc/Callhandler", "right_model_type": "view/CallHandlerRecordPlaybackVIEW", "right_alias": "RecordPlayback", "left_alias": "Callhandler", "cardinality": "1-1", "join_on": [ { "left_attr": "ObjectId", "right_attr": "call_handler" } ] }, { "left_model_type": "device/cuc/Callhandler", "right_model_type": "view/CallHandlerUploadVIEW", "right_alias": "Upload", "left_alias": "Callhandler", "cardinality": "1-1", "join_on": [ { "left_attr": "ObjectId", "right_attr": "call_handler" } ] }, { "left_model_type": "device/cuc/Callhandler", "right_model_type": "device/cuc/CallhandlerOwner", "right_alias": "Owner", "left_alias": "Callhandler", "cardinality": "1-0..1", "join_on": [ { "left_attr": "ObjectId", "right_attr": "TargetHandlerObjectId" } ] }, { "left_model_type": "device/cuc/CallhandlerOwner", "right_model_type": "device/cuc/User", "right_alias": "User", "left_alias": "Owner", "cardinality": "1-1", "join_on": [ { "left_attr": "UserObjectId", "right_attr": "ObjectId" } ] }, { "left_model_type": "device/cuc/Callhandler", "right_model_type": "device/cuc/CallhandlerTransferOption", "right_alias": "Transfer", "left_alias": "Callhandler", "cardinality": "1-0..*", "join_on": [ { "left_attr": "ObjectId", "right_attr": "CallHandlerObjectId" } ] } ], "name": "CallhandlerREL", "pkid": "63050f2743fcc416f18f1e45", "workflows": [ { "operation": "add", "workflow": "AddRelationCallhandlerPWF" }, { "operation": "modify", "workflow": "ModRelationCallhandlerPWF" }, { "operation": "delete", "workflow": "DeleteRelationCallhandlerPWF" }, { "operation": "RecordGreeting", "workflow": "CUC_CallHandlerRecordPWF" }, { "operation": "PlaybackGreeting", "workflow": "CUC_CallHandlerPlaybackPWF" }, { "operation": "Upload", "workflow": "CUC_CallHandlerUploadPWF" } ], "hierarchy_friendly_name": "hcs (Hcs)", "summary_attrs": [ "DisplayName", "DtmfAccessId" ], "hierarchy_path": "sys.hcs" } } ] }
(Show the first instance)
{ "pkid": "63050f0843fcc416f18f1b44", "meta": { "tags": [ "assurance", "V4UC", "ba_CommonOverlay" ], "cached": false, "title": "AssuranceArbitratorServer", "business_key": { "hierarchy": false, "unique": [ "name" ] }, "schema_version": "0.1", "references": { "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "self": [ { "pkid": "63050f0843fcc416f18f1b44", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/" } ], "foreign_key": [ { "model_type": "data/ProvisioningWorkflow", "path": "workflows.0.workflow" }, { "model_type": "data/ProvisioningWorkflow", "path": "workflows.1.workflow" }, { "model_type": "data/ProvisioningWorkflow", "path": "workflows.2.workflow" }, { "model_type": "data/ProvisioningWorkflow", "path": "workflows.3.workflow" }, { "model_type": "data/ProvisioningWorkflow", "path": "workflows.4.workflow" } ], "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "children": [] }, "version_tag": "1.2.5", "model_type": "data/Relation", "path": [ "6t0ggef2c0deab00hb595101", "63050f0843fcc416f18f1b44" ], "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/?hierarchy=[hierarchy]", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/clone/?hierarchy=[hierarchy]&schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/export/?hierarchy=[hierarchy]", "method": "GET", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/?hierarchy=[hierarchy]", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/Relation/63050f0843fcc416f18f1b44/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [ { "pkid": "63050f0843fcc416f18f1b46", "version": "1.2.5", "href": "/api/v0/data/Relation/63050f0843fcc416f18f1b44/?cached=63050f0843fcc416f18f1b46" } ] }, "data": { "operations": [ "list", "get", "add", "update", "remove", "export_bulkload_template", "configuration_template", "field_display_policy", "export", "help" ], "join": [ { "left_model_type": "data/AssuranceArbitratorServer", "right_model_type": "data/NoInstance", "right_alias": "shadow", "left_alias": "base", "cardinality": "1-0..1", "join_on": [ { "left_attr": "name", "right_attr": "name" } ] } ], "name": "AssuranceArbitratorServer", "pkid": "63050f0843fcc416f18f1b45", "doc": "This relation implements the workflows to manage Assurance Arbitrator Server connection parameters and enabled services.", "workflows": [ { "operation": "add", "workflow": "AddAssuranceArbitratorServer" }, { "operation": "modify", "workflow": "ModAssuranceArbitratorServer" }, { "operation": "delete", "workflow": "DelAssuranceArbitratorServer" }, { "operation": "Sync", "workflow": "SyncAssuranceArbitratorServer" }, { "operation": "TestConnection", "workflow": "TestConnectionAssuranceArbitratorServer" } ] } }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for data/Relation. | GET | /api/data/Relation/help | hierarchy=[hierarchy] | On-line help of Model ref.: data/Relation as HTML |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Modify | PUT | /api/data/Relation/[pkid]/ | hierarchy=[hierarchy] | (For payload specification) |
For Bulk modification, refer to the Bulk Modify section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Delete | DELETE | /api/data/Relation/[pkid]/ | hierarchy=[hierarchy] |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Clone instance with [pkid]. The schema rules are applied. | GET | /api/data/Relation/[pkid]/clone/?schema=&schema_rules=true |
|
A JSON payload with:
|
GET http://[host-proxy]/api/data/Relation/?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/Relation; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | GET | /api/data/Relation/[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/Relation and the JSON format can be used to import instances of data/Relation.
For Bulk Export, refer to the Bulk Export section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get | GET | /api/data/Relation/[pkid]/ | hierarchy=[hierarchy] | The data/Relation instance with [pkid]. |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/data/Relation/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for data/Relation. |