[Index]
For model forms, a set of rules can be defined that specify an initial state of the model form and a change in its behavior and values on it in accordance with data and events that take place on the form. This set of rules is defined in a GUI Rule model and it applies to a selected model form when it is used. GUI Rules can for example be used to hide or show input controls, to enter values or to enable controls in accordance with change or input on the form. When a GUI Rule is created, the design form applies to the specified model. Field Specific rules can be specified as well as Events on fields. Events are associated with Actions on fields. In other words, if a certain event takes place in a field, actions can be carried out on other fields.
Model ref.: data/GUIRule
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": { "show_meta_data_info": { "readonly": false, "required": false, "type": "boolean", "description": "Do not display Metadata Information", "title": "Show Metadata Information" }, "name": { "description": "The name of the GUI Rule.", "title": "Name", "default": "Default", "required": true, "readonly": false, "type": "string" }, "field_specific": { "description": "If required for fields in the selected Model Type, use the Field Specific form to set properties and values for a field when the model form is first rendered.", "title": "Field Specific", "items": { "type": "object", "properties": { "source": { "choices": [ { "value": "", "title": "GUI" }, { "value": "api", "title": "API" } ], "required": false, "type": "string", "description": "The source of the value. If the Source is GUI, Value is a reference to values in the GUI. If the Source is API, Value will source its value from an API call.", "title": "Source" }, "type_modifier": { "choices": [ { "value": "", "title": "" }, { "value": "choices", "title": "choices" }, { "value": "properties", "title": "properties" }, { "value": "operations", "title": "operations" } ], "required": false, "type": "string", "description": "Modify the request type to list choices, properties, operations or other operation.", "title": "Type Modifier" }, "value": { "required": false, "type": "string", "description": "The value of the field when the model is first rendered and the property is to take a value.", "title": "Value" }, "field": { "choices": [ { "value": "", "title": "" } ], "required": true, "type": "string", "description": "The selected field to which initial properties are applied.", "title": "Field" }, "request_type": { "description": "The API Request can be called to a specific type. Leading and Trailing slashes are automatically removed and not required. (E.g data/ProvisioningWorkflow or [device_type:scope==global]).", "title": "API Request Type", "format": "uri", "choices": [], "readonly": false, "target_model_type": "", "type": "string", "target": "/api/choices/?format=json&hierarchy=[hierarchy]&auth_token=[authtoken] }, "scope": { "choices": [ { "value": "global", "title": "Global" }, { "value": "up", "title": "Up" }, { "value": "local", "title": "Local" } ], "required": false, "type": "string", "description": "Parameters can be used in the Value field of the actions as follows [fieldname]. This will then replace the parameter (everything including the square brackets with the value of the 'fieldname' field). The scope determines where in the form the rule will search for 'fieldname'. In some cases the rule must be limited to fields within the same object (in this case use Local). In other cases the rule must search the entire form (in this case use Global).", "title": "Scope of parameter search" }, "property": { "choices": [ { "value": "disabled", "title": "Disabled" }, { "value": "custom_value_allowed", "title": "Allow Custom Values" }, { "value": "embed_in_parent", "title": "Embed in Parent" }, { "value": "hidden", "title": "Hidden" }, { "value": "required", "title": "Required" }, { "value": "replace", "title": "Replace" }, { "value": "lazyReplace", "title": "Replace on Demand" }, { "value": "type", "title": "Type" }, { "value": "choices", "title": "Choices" }, { "value": "value", "title": "Value" }, { "value": "title", "title": "Title" }, { "value": "description", "title": "Description" }, { "value": "scrollbars", "title": "Scrollbars" }, { "value": "summary", "title": "Summary" }, { "value": "complexity", "title": "Password Complexity" }, { "value": "no_choice_title", "title": "No Choice Title" } ], "required": true, "type": "string", "description": "The selected property of the field when the model for is first rendered. The field can be disabled, take custom values, hidden, change type or take a value.", "title": "Property" }, "request_parameters": { "items": { "type": "object", "properties": { "parameter": { "required": false, "type": "string", "description": "The parameter to be passed to the API.", "title": "Parameter" }, "value": { "required": false, "type": "string", "description": "The value of the parameter to be passed to the API.", "title": "Value" } } }, "required": false, "type": "array", "description": "API Requests' input in the form of parameter and value pairs. parameter=hierarchy and value=[hierarchy] will result in input ?hierarchy=[hierarchy]", "title": "Request Parameter Value Pairs" }, "value_translatable": { "required": false, "type": "boolean", "description": "Value is translatable.", "title": "Value is translatable?" } } }, "required": false, "readonly": false, "type": "array" }, "filter_fields": { "description": "These values will need to be supplied for this non-default GUI Rule to be fetched.", "title": "Filter Fields", "items": { "type": "object", "properties": { "field": { "choices": [ { "value": "", "title": "" } ], "required": true, "type": "string", "description": "The name of the field to use as a filter.", "title": "Field" }, "value": { "required": true, "type": "string", "description": "The value of the field to use as a filter.", "title": "Value" } } }, "required": false, "readonly": false, "type": "array" }, "type": { "description": "The selected model type that the GUI Rule applies to.", "format": "uri", "title": "Model Type", "required": true, "choices": [], "readonly": false, "target_model_type": "", "type": "string", "target": "/api/choices/?format=json&hierarchy=[hierarchy]&auth_token=[authtoken] }, "events": { "description": "The list of events on selected fields and the resulting actions.", "title": "Events", "items": { "type": "object", "properties": { "conditions": { "description": "These conditions must all evaluate to TRUE for the actions to be implemented.", "title": "Conditions", "items": { "type": "object", "properties": { "value_list": { "items": { "type": "string" }, "required": false, "type": "array", "description": "If the Condition is In or Not In, then the Values list the items to test the condition against.", "title": "Values" }, "value": { "required": false, "type": "string", "description": "The value that the Condition tests the field value with if the Condition is Changes, Empty, Equals and Not Equals.", "title": "Value" }, "field": { "choices": [ { "value": "", "title": "" } ], "required": false, "type": "string", "description": "The selected field for which an event is specified.", "title": "Field" }, "scope": { "choices": [ { "value": "global", "title": "Global" }, { "value": "up", "title": "Up" }, { "value": "local", "title": "Local" } ], "required": false, "type": "string", "description": "Parameters can be used in the Value field of the actions as follows {fieldname}. This will then replace the parameter (everything including the curly brackets with the value of the 'fieldname' field). The scope determines where in the form the rule will search for 'fieldname'. In some cases the rule must be limited to fields within the same object (in this case use Local). In other cases the rule must search the entire form (in this case use Global).", "title": "Scope of parameter search" }, "property": { "choices": [ { "value": "disabled", "title": "Disabled" }, { "value": "hidden", "title": "Hidden" }, { "value": "required", "title": "Required" }, { "value": "value", "title": "Value" }, { "value": "isAddForm", "title": "Is Add Form" }, { "value": "isEditAndReplay", "title": "Is Edit and Replay" } ], "required": true, "type": "string", "description": "The property of the field that applies to the event Condition. The field can be disabled, hidden or take a value.", "title": "Property" }, "condition": { "choices": [ { "value": "equals", "title": "Equals" }, { "value": "notequals", "title": "Not Equals" }, { "value": "in", "title": "In" }, { "value": "notin", "title": "Not In" }, { "value": "change", "title": "Changes" }, { "value": "empty", "title": "Empty" } ], "required": false, "type": "string", "description": "The event condition that is to hold for the Value field property. The condition applies if the field property is Value and tests with the Value of the field.", "title": "Condition" } } }, "required": false, "readonly": false, "type": "array" }, "description": { "required": false, "type": "string", "description": "A description of the event.", "title": "Description" }, "actions": { "description": "The list of actions that apply to fields if the Event condition resolves to True.", "title": "Actions", "items": { "type": "object", "properties": { "source": { "choices": [ { "value": "gui", "title": "GUI" }, { "value": "api", "title": "API" } ], "required": false, "type": "string", "description": "The source of the value. If the Source is GUI, Value is a reference to values in the GUI. If the Source is API, Value will source its value from an API call.", "title": "Source" }, "type_modifier": { "choices": [ { "value": "", "title": "" }, { "value": "choices", "title": "choices" }, { "value": "properties", "title": "properties" }, { "value": "operations", "title": "operations" } ], "required": false, "type": "string", "description": "Modify the request type to list choices, properties, operations or other operation.", "title": "Type Modifier" }, "value": { "required": false, "type": "string", "description": "Use the Value input to specify the value of the selected Property.", "title": "Value" }, "field": { "choices": [ { "value": "", "title": "" } ], "required": false, "type": "string", "description": "The field upon which the action is carried out.", "title": "Field" }, "request_type": { "description": "The API Request can be called to a specific type. Leading and Trailing slashes are automatically removed and not required. (E.g data/ProvisioningWorkflow or [device_type:scope==global]).", "format": "uri", "title": "API Request Type", "required": false, "choices": [], "target_model_type": "", "type": "string", "target": "/api/choices/?format=json&hierarchy=[hierarchy]&auth_token=[authtoken] }, "scope": { "choices": [ { "value": "global", "title": "Global" }, { "value": "up", "title": "Up" }, { "value": "local", "title": "Local" } ], "required": false, "type": "string", "description": "Parameters can be used in the Value field of the actions as follows {fieldname}. This will then replace the parameter (everything including the curly brackets with the value of the 'fieldname' field). The scope determines where in the form the rule will search for 'fieldname'. In some cases the rule must be limited to fields within the same object (in this case use Local). In other cases the rule must search the entire form (in this case use Global).", "title": "Scope of parameter search" }, "property": { "choices": [ { "value": "disabled", "title": "Disabled" }, { "value": "embed_in_parent", "title": "Embed in Parent" }, { "value": "hidden", "title": "Hidden" }, { "value": "required", "title": "Required" }, { "value": "replace", "title": "Replace" }, { "value": "lazyReplace", "title": "Replace on Demand" }, { "value": "rules", "title": "Apply GUI Rules" }, { "value": "choices", "title": "Choices" }, { "value": "value", "title": "Value" }, { "value": "custom_value_allowed", "title": "Allow Custom Values" }, { "value": "type", "title": "Type" }, { "value": "title", "title": "Title" }, { "value": "description", "title": "Description" }, { "value": "scrollbars", "title": "Scrollbars" }, { "value": "complexity", "title": "Password Complexity" }, { "value": "no_choice_title", "title": "No Choice Title" } ], "required": true, "type": "string", "description": "The property of the field that is affected by the action.", "title": "Property" }, "request_parameters": { "items": { "type": "object", "properties": { "parameter": { "required": false, "type": "string", "description": "The parameter to be passed to the API.", "title": "Parameter" }, "value": { "required": false, "type": "string", "description": "The value of the parameter to be passed to the API.", "title": "Value" } } }, "required": false, "type": "array", "description": "API Requests' input in the form of parameter and value pairs. parameter=hierarchy and value=[hierarchy] will result in input ?hierarchy=[hierarchy]", "title": "Request Parameter Value Pairs" }, "value_translatable": { "required": false, "type": "boolean", "description": "Value is translatable.", "title": "Value is translatable?" } } }, "required": true, "readonly": false, "type": "array" } } }, "required": false, "readonly": false, "type": "array" } }, "schema_version": "0.5.8" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the GUI Add form. | GET | /api/data/GUIRule/add/ |
|
The GUI Add form of data/GUIRule 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/GUIRule | 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/GUIRule/ | hierarchy=[hierarchy] | {"hrefs":["/api/data/GUIRule/[pkid1]", "/api/data/GUIRule/[pkid2]", ...]} |
GET http://[host-proxy]/api/data/GUIRule/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Bulk Modify | GET | /api/data/GUIRule/bulk_update/?schema=&schema_rules=true |
|
|
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Bulk Modify | POST | /api/data/GUIRule/bulk_update/ |
|
For example: {"data":{"name":"value"}, "meta":{}, "request_meta":{ "hrefs":["/api/v0/data/GUIRule/[pkid1]", "/api/v0/data/GUIRule/[pkid2]",...]}} |
GET http://[host-proxy]/api/data/GUIRule/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Get a selected [export_format] of the schema and instances [pkid1], [pkid2],... of data/GUIRule; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | POST | /api/data/GUIRule/export/ |
|
{ "hrefs":["/api/data/GUIRule/[pkid1]", "/api/data/GUIRule/[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/GUIRule and the JSON format can be used to import instances of data/GUIRule.
GET http://[host-proxy]/api/data/GUIRule/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a compressed format of the Bulk Load spreadsheet template for data/GUIRule | POST | /api/data/GUIRule/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/GUIRule/configuration_template/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Field Display Policy | GET | /api/data/GUIRule/field_display_policy/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/FieldDisplayPolicy/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Migration Template | GET | /api/data/GUIRule/migration/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
List | GET | /api/data/GUIRule/ |
|
The data/GUIRule schema and all instances as JSON. |
(The list will return 0 to 3 data/GUIRule 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": "type", "maximum_limit": 2000, "skip": 0, "current": "/api/data/GUIRule/?skip=0&limit=3&order_by=type&direction=asc&traversal=default", "limit": 3, "total_limit": null, "total": 1319 }, "meta": { "tags": [], "cached": true, "title": "", "business_key": { "hierarchy": true, "unique": [ "type", "name" ] }, "schema_version": "0.5.8", "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/GUIRule/add/?hierarchy=[hierarchy]", "method": "GET", "title": "Add" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/GUIRule/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "bulk_update_form": { "support_async": false, "class": "update", "href": "/api/data/GUIRule/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/GUIRule/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/GUIRule/export_bulkload_template/?hierarchy=[hierarchy]", "method": "POST", "title": "Export Bulk Load Template" } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/GUIRule/+tag/?hierarchy=[hierarchy]", "class": "tag", "view": "/api/view/TagNameForm/add/?auth_token=[authtoken] } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/GUIRule/+tag_version/?hierarchy=[hierarchy]", "class": "tag_version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "configuration_template": { "support_async": false, "class": "config", "href": "/api/data/GUIRule/configuration_template/?hierarchy=[hierarchy]", "method": "GET", "title": "Configuration Template" } }, { "field_display_policy": { "support_async": false, "class": "display_policy", "href": "/api/data/GUIRule/field_display_policy/?hierarchy=[hierarchy]", "method": "GET", "title": "Field Display Policy" } }, { "migration": { "support_async": false, "class": "migration", "href": "/api/data/GUIRule/migration/?hierarchy=[hierarchy]", "method": "GET", "title": "Migration Template" } }, { "list": { "support_async": false, "class": "list", "href": "/api/data/GUIRule/?hierarchy=[hierarchy]", "method": "GET", "title": "List" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/GUIRule/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "data/GUIRule", "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" ], "summary_attrs": [ { "name": "type", "title": "Model Type" }, { "name": "name", "title": "Name" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "resources": [ { "pkid": "5df34ee8ce894e0012c5fed1", "meta": { "tags": [ "base", "core" ], "cached": true, "title": "data/AccessProfile - Default", "business_key": { "hierarchy": true, "unique": [ "type", "name" ] }, "schema_version": "0.5.8", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5df34ee8ce894e0012c5fed1", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/clone/?schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/+tag/", "class": "tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/+tag_version/", "class": "tag_version", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/help", "method": "GET", "title": "Help" } } ], "model_type": "data/GUIRule", "path": [ "6t0ggef2c0deab00hb595101", "5df34ee8ce894e0012c5fed1" ], "summary_attrs": [ { "name": "type", "title": "Model Type" }, { "name": "name", "title": "Name" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "name": "Default", "pkid": "5df34ee8ce894e0012c5fed2", "field_specific": [ { "field": "type_specific_permissions.type", "property": "custom_value_allowed", "value": "true" }, { "source": "api", "type_modifier": "", "field": "miscellaneous_permissions", "request_type": "operations", "scope": "global", "property": "choices" }, { "field": "type_specific_permissions", "property": "type", "value": "grid" } ], "hierarchy_friendly_name": "sys (System)", "type": "data/AccessProfile", "events": [ { "conditions": [ { "field": "type_specific_permissions.type", "property": "value", "condition": "change" } ], "actions": [ { "source": "api", "type_modifier": "operations", "field": "type_specific_permissions.operations", "request_type": "[type_specific_permissions.type]", "scope": "up", "property": "choices" } ] } ], "hierarchy_path": "sys" } }, { "pkid": "5df36743ce894e0012b3a655", "meta": { "tags": [ "adaptlog", "V4UC", "ba_CommonOverlay" ], "cached": true, "title": "data/adaptation_log - Default", "business_key": { "hierarchy": true, "unique": [ "type", "name" ] }, "schema_version": "0.5.8", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5df36743ce894e0012b3a655", "href": "/api/data/GUIRule/5df36743ce894e0012b3a655/" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "href": "/api/data/GUIRule/5df36743ce894e0012b3a655/", "title": "Modify", "class": "update", "method": "PUT" } }, { "remove": { "support_async": true, "href": "/api/data/GUIRule/5df36743ce894e0012b3a655/", "title": "Delete", "class": "delete", "method": "DELETE" } }, { "clone": { "support_async": false, "href": "/api/data/GUIRule/5df36743ce894e0012b3a655/clone/?schema=&schema_rules=true", "title": "Clone", "class": "clone", "method": "GET" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/GUIRule/5df36743ce894e0012b3a655/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "class": "tag", "href": "/api/data/GUIRule/5df36743ce894e0012b3a655/+tag/", "method": "PATCH", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "class": "tag_version", "href": "/api/data/GUIRule/5df36743ce894e0012b3a655/+tag_version/", "method": "PATCH", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "support_async": false, "href": "/api/data/GUIRule/5df36743ce894e0012b3a655/", "title": "Get", "class": "get", "method": "GET" } }, { "help": { "support_async": false, "href": "/api/data/GUIRule/5df36743ce894e0012b3a655/help", "title": "Help", "class": "help", "method": "GET" } } ], "model_type": "data/GUIRule", "path": [ "6t0ggef2c0deab00hb595101", "5df36743ce894e0012b3a655" ], "summary_attrs": [ { "name": "type", "title": "Model Type" }, { "name": "name", "title": "Name" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "name": "Default", "pkid": "5df36743ce894e0012b3a656", "field_specific": [ { "field": "name", "property": "disabled", "value": "true" }, { "field": "name", "property": "type", "value": "multiline" }, { "field": "tag_array", "property": "disabled", "value": "true" }, { "field": "change_type", "property": "disabled", "value": "true" }, { "field": "change_type", "property": "type", "value": "multiline" }, { "field": "date", "property": "disabled", "value": "true" }, { "field": "date", "property": "type", "value": "multiline" }, { "field": "engineer", "property": "disabled", "value": "true" }, { "field": "engineer", "property": "type", "value": "multiline" }, { "field": "risk", "property": "disabled", "value": "true" }, { "field": "risk", "property": "type", "value": "multiline" }, { "field": "description", "property": "disabled", "value": "true" }, { "field": "description", "property": "type", "value": "multiline" }, { "field": "version", "property": "type", "value": "multiline" }, { "field": "hierarchy_array", "property": "hidden", "value": "true" } ], "hierarchy_friendly_name": "sys (System)", "type": "data/adaptation_log", "events": [ { "conditions": [ { "field": "change_type", "property": "isAddForm", "value": "true", "condition": "equals" } ], "actions": [ { "field": "date", "property": "disabled", "value": "false" }, { "field": "description", "property": "disabled" }, { "field": "engineer", "property": "disabled", "value": "false" }, { "field": "hierarchy_array", "property": "disabled", "value": "false" }, { "field": "name", "property": "disabled", "value": "false" }, { "field": "risk", "property": "disabled", "value": "false" }, { "field": "tag_array", "property": "disabled", "value": "false" }, { "field": "version", "property": "disabled", "value": "false" }, { "field": "hierarchy_array.hierarchy", "property": "disabled", "value": "false" }, { "field": "hierarchy_array.model_name", "property": "disabled", "value": "false" }, { "field": "hierarchy_array.model_type", "property": "disabled", "value": "false" }, { "field": "tag_array.tag", "property": "disabled", "value": "false" }, { "field": "change_type", "property": "disabled", "value": "false" }, { "field": "description", "property": "disabled", "value": "false" } ] } ], "hierarchy_path": "sys" } }, { "pkid": "6130ce2ee04a4a00161ba8b9", "meta": { "tags": [ "prscallcontrol", "V4UC", "ba_CommonOverlay" ], "cached": true, "title": "data/AdditionalPhoneTypes_DAT - Default", "business_key": { "hierarchy": true, "unique": [ "type", "name" ] }, "schema_version": "0.5.8", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "6130ce2ee04a4a00161ba8b9", "href": "/api/data/GUIRule/6130ce2ee04a4a00161ba8b9/" } ], "parent": [ { "pkid": "5df35e48ce894e0012b345a1", "href": "/api/data/HierarchyNode/5df35e48ce894e0012b345a1" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "method": "PUT", "href": "/api/data/GUIRule/6130ce2ee04a4a00161ba8b9/", "class": "update", "title": "Modify" } }, { "remove": { "support_async": true, "method": "DELETE", "href": "/api/data/GUIRule/6130ce2ee04a4a00161ba8b9/", "class": "delete", "title": "Delete" } }, { "clone": { "support_async": false, "method": "GET", "href": "/api/data/GUIRule/6130ce2ee04a4a00161ba8b9/clone/?schema=&schema_rules=true", "class": "clone", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "method": "GET", "href": "/api/data/GUIRule/6130ce2ee04a4a00161ba8b9/export/", "class": "export", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "class": "tag", "href": "/api/data/GUIRule/6130ce2ee04a4a00161ba8b9/+tag/", "method": "PATCH", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "class": "tag_version", "href": "/api/data/GUIRule/6130ce2ee04a4a00161ba8b9/+tag_version/", "method": "PATCH", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "support_async": false, "method": "GET", "href": "/api/data/GUIRule/6130ce2ee04a4a00161ba8b9/", "class": "get", "title": "Get" } }, { "help": { "support_async": false, "method": "GET", "href": "/api/data/GUIRule/6130ce2ee04a4a00161ba8b9/help", "class": "help", "title": "Help" } } ], "model_type": "data/GUIRule", "path": [ "6t0ggef2c0deab00hb595101", "5df35e48ce894e0012b345a1", "6130ce2ee04a4a00161ba8b9" ], "summary_attrs": [ { "name": "type", "title": "Model Type" }, { "name": "name", "title": "Name" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "name": "Default", "pkid": "6130ce2ee04a4a00161ba8ba", "field_specific": [ { "source": "api", "field": "cft", "request_type": "tool/Macro", "scope": "up", "property": "choices", "request_parameters": [ { "parameter": "method", "value": "evaluate" }, { "parameter": "input", "value": "{# data.ConfigurationTemplate.name | target_model_type:macro.PRS_PhoneCft_MCR #}" } ] } ], "hierarchy_friendly_name": "hcs (Hcs)", "type": "data/AdditionalPhoneTypes_DAT", "hierarchy_path": "sys.hcs" } } ] }
(Show the first instance)
{ "pkid": "5df34ee8ce894e0012c5fed1", "meta": { "tags": [ "base", "core" ], "cached": false, "title": "data/AccessProfile - Default", "business_key": { "hierarchy": true, "unique": [ "type", "name" ] }, "schema_version": "0.5.8", "references": { "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "self": [ { "pkid": "5df34ee8ce894e0012c5fed1", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/" } ], "foreign_key": [], "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "children": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/?hierarchy=[hierarchy]", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/clone/?hierarchy=[hierarchy]&schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/export/?hierarchy=[hierarchy]", "method": "GET", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/+tag/?hierarchy=[hierarchy]", "class": "tag", "view": "/api/view/TagNameForm/add/?auth_token=[authtoken] } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/+tag_version/?hierarchy=[hierarchy]", "class": "tag_version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/?hierarchy=[hierarchy]", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/GUIRule/5df34ee8ce894e0012c5fed1/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "data/GUIRule", "path": [ "6t0ggef2c0deab00hb595101", "5df34ee8ce894e0012c5fed1" ], "summary_attrs": [ { "name": "type", "title": "Model Type" }, { "name": "name", "title": "Name" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "pkid": "5df34ee8ce894e0012c5fed2", "field_specific": [ { "field": "type_specific_permissions.type", "property": "custom_value_allowed", "value": "true" }, { "field": "miscellaneous_permissions", "type_modifier": "", "value": "/api/operations/", "source": "api", "request_type": "operations", "scope": "global", "property": "choices" }, { "field": "type_specific_permissions", "property": "type", "value": "grid" } ], "type": "data/AccessProfile", "name": "Default", "events": [ { "conditions": [ { "field": "type_specific_permissions.type", "property": "value", "condition": "change" } ], "actions": [ { "field": "type_specific_permissions.operations", "type_modifier": "operations", "value": "/api/[type_specific_permissions.type]/operations/", "source": "api", "request_type": "[type_specific_permissions.type]", "scope": "up", "property": "choices" } ] } ] } }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for data/GUIRule. | GET | /api/data/GUIRule/help | hierarchy=[hierarchy] | On-line help of Model ref.: data/GUIRule as HTML |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Modify | PUT | /api/data/GUIRule/[pkid] | hierarchy=[hierarchy] | (For payload specification) |
For Bulk modification, refer to the Bulk Modify section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Delete | DELETE | /api/data/GUIRule/[pkid] | hierarchy=[hierarchy] |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Clone instance with [pkid]. The schema rules are applied. | GET | /api/data/GUIRule/[pkid]/clone/?schema=&schema_rules=true |
|
A JSON payload with:
|
GET http://[host-proxy]/api/data/GUIRule/?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/GUIRule; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | GET | /api/data/GUIRule/[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/GUIRule and the JSON format can be used to import instances of data/GUIRule.
For Bulk Export, refer to the Bulk Export section.
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Tag | PATCH | /api/data/GUIRule/[pkid]/+tag | hierarchy=[hierarchy] | If payload required: |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get | GET | /api/data/GUIRule/[pkid] | hierarchy=[hierarchy] | The data/GUIRule instance with [pkid]. |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/data/GUIRule/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for data/GUIRule. |