[Index]
A User Role is a combination of Configuration Templates and Field Display Policies that apply to all the Data-, Device- and Domain Models available in the system. When a User Role is created, a Configuration Template and Field Display Policy can be selected as defaults that apply to each available model. The User Role can also be associated with a Menu Layout, Theme and an Access Profile that specifies create, read, update and delete permissions on each model. When a user is created or updated, a User Role can be selected for the user. This means that the user will by default have the menu, relevant permissions, Configuration Template defaults and settings as well as Field Display Policy views applied when using the relevant model. More than one user can have the same User Role assigned. User Roles provide a means to manage users that are logged in on the system.
Model ref.: data/Role
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", "description": "The name that is given to the Role.", "type": "string", "required": true }, "description": { "title": "Description", "description": "A description for the Role.", "type": "string", "required": false }, "menu_layout": { "title": "Menu Layout", "description": "The selected Menu Layout that is associated with the Role.", "type": "string", "format": "uri", "target": "/api/data/MenuLayout/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_attr": "name", "target_model_type": "data/MenuLayout", "choices": [] }, "theme": { "title": "Theme", "description": "The selected Theme that is associated with the Role.", "type": "string", "format": "uri", "target": "/api/data/Theme/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_attr": "name", "target_model_type": "data/Theme", "choices": [] }, "access_profile": { "title": "Access Profile", "description": "The selected Access Profile that is associated with the Role.", "type": "string", "format": "uri", "required": true, "target": "/api/data/AccessProfile/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_attr": "name", "target_model_type": "data/AccessProfile", "choices": [] }, "interface": { "title": "Interface", "description": "The selected interface that is associated with the Role. The interface can be an Administration or Self Service.", "type": "string", "required": true, "choices": [ { "value": "administration", "title": "Administration" }, { "value": "selfservice", "title": "Self Service" }, { "value": "none", "title": "None" } ] }, "landing_page": { "title": "Landing Page", "description": "Landing page for user", "type": "string", "format": "uri", "required": false, "target": "/api/data/LandingPage/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_attr": "name", "target_model_type": "data/LandingPage", "choices": [] }, "dashboard": { "title": "Dashboard", "description": "The selected Dashboard that is associated with the Role.", "type": "string", "format": "uri", "target": "/api/data/Dashboard/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_attr": "name", "target_model_type": "data/Dashboard", "choices": [] }, "selfservice_links": { "title": "Self Service Links", "description": "Provide useful links to Self Service end users", "type": "string", "format": "uri", "target": "/api/data/SelfServiceLinks/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_attr": "name", "target_model_type": "data/SelfServiceLinks", "choices": [] }, "ss_display_policy": { "title": "Self Service Feature Display Policy", "type": "string", "format": "uri", "target": "/api/data/SelfServiceFeatureDisplayPolicy/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_attr": "name", "target_model_type": "data/SelfServiceFeatureDisplayPolicy", "choices": [] }, "rules": { "title": "Rules", "type": "object", "properties": { "hierarchy_types": { "title": "Permitted Hierarchy Types", "description": "Hierarchy Types that this Role can be added under.", "type": "array", "minItems": 1, "required": false, "readonly": false, "items": { "type": "string", "format": "uri", "target": "/api/data/HierarchyNodeType/choices/?format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_model_type": "data/HierarchyNodeType", "choices": [] } } } } }, "schema_version": "0.2.5" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the GUI Add form. | GET | /api/data/Role/add/ |
|
The GUI Add form of data/Role 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/Role | 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/Role/ | hierarchy=[hierarchy] | {"hrefs":["/api/data/Role/[pkid1]", "/api/data/Role/[pkid2]", ...]} |
GET http://[host-proxy]/api/data/Role/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Bulk Modify | GET | /api/data/Role/bulk_update/?schema=&schema_rules=true |
|
|
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Bulk Modify | POST | /api/data/Role/bulk_update/ |
|
For example: {"data":{"name":"value"}, "meta":{}, "request_meta":{ "hrefs":["/api/v0/data/Role/[pkid1]", "/api/v0/data/Role/[pkid2]",...]}} |
GET http://[host-proxy]/api/data/Role/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Get a selected [export_format] of the schema and instances [pkid1], [pkid2],... of data/Role; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | POST | /api/data/Role/export/ |
|
{ "hrefs":["/api/data/Role/[pkid1]", "/api/data/Role/[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/Role and the JSON format can be used to import instances of data/Role.
GET http://[host-proxy]/api/data/Role/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a compressed format of the Bulk Load spreadsheet template for data/Role | POST | /api/data/Role/export_bulkload_template/ |
|
The response is an attachment of the format: filetype_bulkloadsheet.xlsx.gz |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Tag | PATCH | /api/data/Role/+tag/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Tag Version | PATCH | /api/data/Role/+tag_version/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Configuration Template | GET | /api/data/Role/configuration_template/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Field Display Policy | GET | /api/data/Role/field_display_policy/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/FieldDisplayPolicy/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Migration Template | GET | /api/data/Role/migration/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
List | GET | /api/data/Role/ |
|
The data/Role schema and all instances as JSON. |
(The list will return 0 to 3 data/Role instances)
{ "pagination": { "skip": 0, "limit": 3, "maximum_limit": 2000, "total": 171, "total_limit": null, "order_by": "name", "direction": "asc", "current": "/api/data/Role/?skip=0&limit=3&order_by=name&direction=asc&traversal=fulltree" }, "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/Role", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "menu_layout", "title": "Menu Layout" }, { "name": "theme", "title": "Theme" }, { "name": "access_profile", "title": "Access Profile" }, { "name": "dashboard", "title": "Dashboard" }, { "name": "selfservice_links", "title": "Self Service Links" }, { "name": "ss_display_policy", "title": "Self Service Feature Display Policy" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "", "business_key": { "unique": [ "name" ], "hierarchy": true }, "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", "remove", "tag", "tag_version", "update" ], "schema_version": "0.2.5", "actions": [ { "add": { "method": "GET", "class": "add", "href": "/api/data/Role/add/?hierarchy=[hierarchy]", "support_async": false, "title": "Add" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/Role/?hierarchy=[hierarchy]", "support_async": true, "title": "Delete" } }, { "bulk_update_form": { "method": "GET", "class": "update", "href": "/api/data/Role/bulk_update/?hierarchy=[hierarchy]&schema=&schema_rules=true", "support_async": false, "title": "Bulk Modify" } }, { "export": { "method": "POST", "class": "export", "href": "/api/data/Role/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/Role/export_bulkload_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Export Bulk Load Template" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/Role/+tag/?hierarchy=[hierarchy]", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/?auth_token=[authtoken] } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/Role/+tag_version/?hierarchy=[hierarchy]", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "configuration_template": { "method": "GET", "class": "config", "href": "/api/data/Role/configuration_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Configuration Template" } }, { "field_display_policy": { "method": "GET", "class": "display_policy", "href": "/api/data/Role/field_display_policy/?hierarchy=[hierarchy]", "support_async": false, "title": "Field Display Policy" } }, { "migration": { "method": "GET", "class": "migration", "href": "/api/data/Role/migration/?hierarchy=[hierarchy]", "support_async": false, "title": "Migration Template" } }, { "list": { "method": "GET", "class": "list", "href": "/api/data/Role/?hierarchy=[hierarchy]", "support_async": false, "title": "List" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/Role/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } } ] }, "resources": [ { "data": { "menu_layout": "HcsCustomerMenu", "name": "AB_GroupCustomerAdministrator", "selfservice_links": "", "theme": "Airbus", "access_profile": "HcsCustomerAdminAP", "interface": "administration", "description": "HCS Customer Administrator Role Service Assurance and Fulfillment Access ", "dashboard": "HcsCustomerDashboard", "pkid": "5ae89ea6affa931cce38a696", "hierarchy_friendly_name": "AB_Group (Customer)", "hierarchy_path": "sys.hcs.CS-P.CS-AB.AB_Group" }, "meta": { "model_type": "data/Role", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "menu_layout", "title": "Menu Layout" }, { "name": "theme", "title": "Theme" }, { "name": "access_profile", "title": "Access Profile" }, { "name": "dashboard", "title": "Dashboard" }, { "name": "selfservice_links", "title": "Self Service Links" }, { "name": "ss_display_policy", "title": "Self Service Feature Display Policy" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "AB_GroupCustomerAdministrator", "business_key": { "hierarchy": true, "unique": [ "name" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "5ae89ea2affa931cce38a523", "href": "/api/data/HierarchyNode/5ae89ea2affa931cce38a523" } ], "foreign_key": [ { "pkid": "5ad5cd4aaffa9343e4d9771b", "path": "menu_layout", "model_type": "data/MenuLayout" }, { "pkid": "5aeb741baffa931cce444800", "path": "theme", "model_type": "data/Theme" }, { "pkid": "5ad5cc84affa9343e4d971c5", "path": "access_profile", "model_type": "data/AccessProfile" }, { "pkid": "66787f05fa938def2462e59b", "path": "dashboard", "model_type": "data/Dashboard" } ], "self": [ { "href": "/api/data/Role/5ae89ea6affa931cce38a68b/", "pkid": "5ae89ea6affa931cce38a68b" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5bacbaffa9343e4d93e01", "5ae89b62affa931cce3855c4", "5ae89c0faffa931cce386c0f", "5ae89ea2affa931cce38a523", "5ae89ea6affa931cce38a68b" ], "schema_version": "0.2.5", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/+tag/", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/+tag_version/", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5ae89ea6affa931cce38a68b" }, { "data": { "menu_layout": "HcsCustomerOperatorMenu", "name": "AB_GroupCustomerOperator", "theme": "default", "access_profile": "HcsCustomerOperAP", "interface": "administration", "description": "HCS Customer Operator Role Service Assurance and Fulfillment Access ", "dashboard": "HcsCustomerDashboard", "pkid": "5ae89ea7affa931cce38a6d9", "hierarchy_friendly_name": "AB_Group (Customer)", "hierarchy_path": "sys.hcs.CS-P.CS-AB.AB_Group" }, "meta": { "model_type": "data/Role", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "menu_layout", "title": "Menu Layout" }, { "name": "theme", "title": "Theme" }, { "name": "access_profile", "title": "Access Profile" }, { "name": "dashboard", "title": "Dashboard" }, { "name": "selfservice_links", "title": "Self Service Links" }, { "name": "ss_display_policy", "title": "Self Service Feature Display Policy" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "AB_GroupCustomerOperator", "business_key": { "hierarchy": true, "unique": [ "name" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "5ae89ea2affa931cce38a523", "href": "/api/data/HierarchyNode/5ae89ea2affa931cce38a523" } ], "foreign_key": [ { "pkid": "5ad5cd4caffa9343e4d977ac", "path": "menu_layout", "model_type": "data/MenuLayout" }, { "pkid": "5ad5e444affa9343e4d9af55", "path": "theme", "model_type": "data/Theme" }, { "pkid": "5ad5cc8caffa9343e4d971d4", "path": "access_profile", "model_type": "data/AccessProfile" }, { "pkid": "66787f05fa938def2462e59b", "path": "dashboard", "model_type": "data/Dashboard" } ], "self": [ { "href": "/api/data/Role/5ae89ea7affa931cce38a6ce/", "pkid": "5ae89ea7affa931cce38a6ce" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5bacbaffa9343e4d93e01", "5ae89b62affa931cce3855c4", "5ae89c0faffa931cce386c0f", "5ae89ea2affa931cce38a523", "5ae89ea7affa931cce38a6ce" ], "schema_version": "0.2.5", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/Role/5ae89ea7affa931cce38a6ce/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/Role/5ae89ea7affa931cce38a6ce/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/Role/5ae89ea7affa931cce38a6ce/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/Role/5ae89ea7affa931cce38a6ce/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/Role/5ae89ea7affa931cce38a6ce/+tag/", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/Role/5ae89ea7affa931cce38a6ce/+tag_version/", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/Role/5ae89ea7affa931cce38a6ce/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/Role/5ae89ea7affa931cce38a6ce/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5ae89ea7affa931cce38a6ce" }, { "data": { "menu_layout": "selfservice", "name": "AB_GroupSelfService", "theme": "voss_selfservice", "access_profile": "default_selfservice_access_profile", "interface": "selfservice", "ss_display_policy": "Default", "description": "HCS Self Service Role", "dashboard": "selfservice_dashboard", "pkid": "5ae89ea9affa931cce38a797", "hierarchy_friendly_name": "AB_Group (Customer)", "hierarchy_path": "sys.hcs.CS-P.CS-AB.AB_Group" }, "meta": { "model_type": "data/Role", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "menu_layout", "title": "Menu Layout" }, { "name": "theme", "title": "Theme" }, { "name": "access_profile", "title": "Access Profile" }, { "name": "dashboard", "title": "Dashboard" }, { "name": "selfservice_links", "title": "Self Service Links" }, { "name": "ss_display_policy", "title": "Self Service Feature Display Policy" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "AB_GroupSelfService", "business_key": { "hierarchy": true, "unique": [ "name" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "5ae89ea2affa931cce38a523", "href": "/api/data/HierarchyNode/5ae89ea2affa931cce38a523" } ], "foreign_key": [ { "pkid": "5abb946aaffa931ce72a7433", "path": "menu_layout", "model_type": "data/MenuLayout" }, { "pkid": "5ad5b47aaffa9343e4d9302e", "path": "theme", "model_type": "data/Theme" }, { "pkid": "5ad5b465affa9343e4d92fbf", "path": "access_profile", "model_type": "data/AccessProfile" }, { "pkid": "66787bbafa938def2462c1aa", "path": "dashboard", "model_type": "data/Dashboard" }, { "pkid": "5ad5b47caffa9343e4d93039", "path": "ss_display_policy", "model_type": "data/SelfServiceFeatureDisplayPolicy" } ], "self": [ { "href": "/api/data/Role/5ae89ea9affa931cce38a78a/", "pkid": "5ae89ea9affa931cce38a78a" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5bacbaffa9343e4d93e01", "5ae89b62affa931cce3855c4", "5ae89c0faffa931cce386c0f", "5ae89ea2affa931cce38a523", "5ae89ea9affa931cce38a78a" ], "schema_version": "0.2.5", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/Role/5ae89ea9affa931cce38a78a/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/Role/5ae89ea9affa931cce38a78a/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/Role/5ae89ea9affa931cce38a78a/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/Role/5ae89ea9affa931cce38a78a/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/Role/5ae89ea9affa931cce38a78a/+tag/", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/Role/5ae89ea9affa931cce38a78a/+tag_version/", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/Role/5ae89ea9affa931cce38a78a/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/Role/5ae89ea9affa931cce38a78a/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5ae89ea9affa931cce38a78a" } ] }
(Show the first instance)
{ "data": { "menu_layout": "HcsCustomerMenu", "name": "AB_GroupCustomerAdministrator", "selfservice_links": "", "theme": "Airbus", "access_profile": "HcsCustomerAdminAP", "interface": "administration", "description": "HCS Customer Administrator Role Service Assurance and Fulfillment Access ", "dashboard": "HcsCustomerDashboard", "pkid": "5ae89ea6affa931cce38a696" }, "meta": { "model_type": "data/Role", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "menu_layout", "title": "Menu Layout" }, { "name": "theme", "title": "Theme" }, { "name": "access_profile", "title": "Access Profile" }, { "name": "dashboard", "title": "Dashboard" }, { "name": "selfservice_links", "title": "Self Service Links" }, { "name": "ss_display_policy", "title": "Self Service Feature Display Policy" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "AB_GroupCustomerAdministrator", "business_key": { "unique": [ "name" ], "hierarchy": true }, "api_version": "21.2", "cached": false, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "href": "/api/data/HierarchyNode/5ae89ea2affa931cce38a523", "pkid": "5ae89ea2affa931cce38a523" } ], "foreign_key": [ { "pkid": "5ad5cd4aaffa9343e4d9771b", "path": "menu_layout", "model_type": "data/MenuLayout" }, { "pkid": "5aeb741baffa931cce444800", "path": "theme", "model_type": "data/Theme" }, { "pkid": "5ad5cc84affa9343e4d971c5", "path": "access_profile", "model_type": "data/AccessProfile" }, { "pkid": "66787f05fa938def2462e59b", "path": "dashboard", "model_type": "data/Dashboard" } ], "children": [], "self": [ { "href": "/api/data/Role/5ae89ea6affa931cce38a68b/", "pkid": "5ae89ea6affa931cce38a68b" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5bacbaffa9343e4d93e01", "5ae89b62affa931cce3855c4", "5ae89c0faffa931cce386c0f", "5ae89ea2affa931cce38a523", "5ae89ea6affa931cce38a68b" ], "schema_version": "0.2.5", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/?hierarchy=[hierarchy]", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/?hierarchy=[hierarchy]", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/clone/?hierarchy=[hierarchy]&schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/export/?hierarchy=[hierarchy]", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/?auth_token=[authtoken], "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/+tag/?hierarchy=[hierarchy]", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/?auth_token=[authtoken] } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/+tag_version/?hierarchy=[hierarchy]", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/?hierarchy=[hierarchy]", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/Role/5ae89ea6affa931cce38a68b/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } } ] }, "pkid": "5ae89ea6affa931cce38a68b" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for data/Role. | GET | /api/data/Role/help | hierarchy=[hierarchy] | On-line help of Model ref.: data/Role as HTML |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Modify | PUT | /api/data/Role/[pkid] | hierarchy=[hierarchy] | (For payload specification) |
For Bulk modification, refer to the Bulk Modify section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Delete | DELETE | /api/data/Role/[pkid] | hierarchy=[hierarchy] |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Clone instance with [pkid]. The schema rules are applied. | GET | /api/data/Role/[pkid]/clone/?schema=&schema_rules=true |
|
A JSON payload with:
|
GET http://[host-proxy]/api/data/Role/?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/Role; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | GET | /api/data/Role/[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/Role and the JSON format can be used to import instances of data/Role.
For Bulk Export, refer to the Bulk Export section.
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Tag | PATCH | /api/data/Role/[pkid]/+tag | hierarchy=[hierarchy] | If payload required: |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get | GET | /api/data/Role/[pkid] | hierarchy=[hierarchy] | The data/Role instance with [pkid]. |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/data/Role/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for data/Role. |