[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": { "type": { "description": "The selected model type that the GUI Rule applies to.", "format": "uri", "required": true, "readonly": false, "target": "/api/choices/?format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "title": "Model Type", "type": "string", "target_model_type": "", "choices": [] }, "name": { "description": "The name of the GUI Rule.", "title": "Name", "default": "Default", "required": true, "readonly": false, "type": "string" }, "show_meta_data_info": { "description": "Do not display Metadata Information", "title": "Show Metadata Information", "required": false, "readonly": false, "type": "boolean" }, "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": { "description": "The name of the field to use as a filter.", "title": "Field", "required": true, "choices": [ { "value": "", "title": "" } ], "type": "string" }, "value": { "required": true, "type": "string", "description": "The value of the field to use as a filter.", "title": "Value" } } }, "required": false, "readonly": false, "type": "array" }, "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": { "field": { "description": "The selected field to which initial properties are applied.", "title": "Field", "required": true, "choices": [ { "value": "", "title": "" } ], "type": "string" }, "property": { "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", "required": true, "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" } ], "type": "string" }, "source": { "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", "required": false, "choices": [ { "value": "", "title": "GUI" }, { "value": "api", "title": "API" } ], "type": "string" }, "scope": { "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", "required": false, "choices": [ { "value": "global", "title": "Global" }, { "value": "up", "title": "Up" }, { "value": "local", "title": "Local" } ], "type": "string" }, "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" }, "value_translatable": { "required": false, "type": "boolean", "description": "Value is translatable.", "title": "Value is translatable?" }, "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", "readonly": false, "target": "/api/choices/?format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "type": "string", "target_model_type": "", "choices": [] }, "type_modifier": { "description": "Modify the request type to list choices, properties, operations or other operation.", "title": "Type Modifier", "required": false, "choices": [ { "value": "", "title": "" }, { "value": "choices", "title": "choices" }, { "value": "properties", "title": "properties" }, { "value": "operations", "title": "operations" } ], "type": "string" }, "request_parameters": { "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", "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" } } }, "required": false, "readonly": false, "type": "array" }, "events": { "description": "The list of events on selected fields and the resulting actions.", "title": "Events", "items": { "type": "object", "properties": { "description": { "required": false, "type": "string", "description": "A description of the event.", "title": "Description" }, "conditions": { "description": "These conditions must all evaluate to TRUE for the actions to be implemented.", "title": "Conditions", "items": { "type": "object", "properties": { "field": { "description": "The selected field for which an event is specified.", "title": "Field", "required": false, "choices": [ { "value": "", "title": "" } ], "type": "string" }, "property": { "description": "The property of the field that applies to the event Condition. The field can be disabled, hidden or take a value.", "title": "Property", "required": true, "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" } ], "type": "string" }, "condition": { "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, "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" } ], "type": "string" }, "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" }, "value_list": { "description": "If the Condition is In or Not In, then the Values list the items to test the condition against.", "title": "Values", "items": { "type": "string" }, "required": false, "type": "array" }, "scope": { "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", "required": false, "choices": [ { "value": "global", "title": "Global" }, { "value": "up", "title": "Up" }, { "value": "local", "title": "Local" } ], "type": "string" } } }, "required": false, "readonly": false, "type": "array" }, "actions": { "description": "The list of actions that apply to fields if the Event condition resolves to True.", "title": "Actions", "items": { "type": "object", "properties": { "field": { "description": "The field upon which the action is carried out.", "title": "Field", "required": false, "choices": [ { "value": "", "title": "" } ], "type": "string" }, "property": { "description": "The property of the field that is affected by the action.", "title": "Property", "required": true, "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" } ], "type": "string" }, "source": { "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", "required": false, "choices": [ { "value": "gui", "title": "GUI" }, { "value": "api", "title": "API" } ], "type": "string" }, "scope": { "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", "required": false, "choices": [ { "value": "global", "title": "Global" }, { "value": "up", "title": "Up" }, { "value": "local", "title": "Local" } ], "type": "string" }, "value": { "required": false, "type": "string", "description": "Use the Value input to specify the value of the selected Property.", "title": "Value" }, "value_translatable": { "required": false, "type": "boolean", "description": "Value is translatable.", "title": "Value is translatable?" }, "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", "required": false, "target": "/api/choices/?format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "title": "API Request Type", "type": "string", "target_model_type": "", "choices": [] }, "type_modifier": { "description": "Modify the request type to list choices, properties, operations or other operation.", "title": "Type Modifier", "required": false, "choices": [ { "value": "", "title": "" }, { "value": "choices", "title": "choices" }, { "value": "properties", "title": "properties" }, { "value": "operations", "title": "operations" } ], "type": "string" }, "request_parameters": { "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", "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" } } }, "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 |
---|---|---|---|---|
Tag | PATCH | /api/data/GUIRule/+tag/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Tag Version | PATCH | /api/data/GUIRule/+tag_version/ |
|
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)
{ "pagination": { "skip": 0, "limit": 3, "maximum_limit": 2000, "total": 2104, "total_limit": null, "order_by": "type", "direction": "asc", "current": "/api/data/GUIRule/?skip=0&limit=3&order_by=type&direction=asc&traversal=down" }, "operations": [ "field_display_policy", "update", "help", "remove", "move", "add", "export", "list", "configuration_template", "get", "bulk_update_form", "migration", "transform", "export_bulkload_template" ], "meta": { "model_type": "data/GUIRule", "summary_attrs": [ { "name": "type", "title": "Model Type" }, { "name": "name", "title": "Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "", "business_key": { "hierarchy": true, "unique": [ "type", "name" ] }, "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.5.8", "actions": [ { "add": { "method": "GET", "class": "add", "href": "/api/data/GUIRule/add/?hierarchy=[hierarchy]", "support_async": false, "title": "Add" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/GUIRule/?hierarchy=[hierarchy]", "support_async": true, "title": "Delete" } }, { "bulk_update_form": { "method": "GET", "class": "update", "href": "/api/data/GUIRule/bulk_update/?hierarchy=[hierarchy]&schema=&schema_rules=true", "support_async": false, "title": "Bulk Modify" } }, { "export": { "method": "POST", "class": "export", "href": "/api/data/GUIRule/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/GUIRule/export_bulkload_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Export Bulk Load Template" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/GUIRule/+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/GUIRule/+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/GUIRule/configuration_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Configuration Template" } }, { "field_display_policy": { "method": "GET", "class": "display_policy", "href": "/api/data/GUIRule/field_display_policy/?hierarchy=[hierarchy]", "support_async": false, "title": "Field Display Policy" } }, { "migration": { "method": "GET", "class": "migration", "href": "/api/data/GUIRule/migration/?hierarchy=[hierarchy]", "support_async": false, "title": "Migration Template" } }, { "list": { "method": "GET", "class": "list", "href": "/api/data/GUIRule/?hierarchy=[hierarchy]", "support_async": false, "title": "List" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/GUIRule/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } } ] }, "resources": [ { "data": { "type": "data/AccessProfile", "name": "Default", "field_specific": [ { "field": "type_specific_permissions.type", "property": "custom_value_allowed", "value": "true" }, { "field": "miscellaneous_permissions", "property": "choices", "source": "api", "scope": "global", "request_type": "operations", "type_modifier": "" }, { "field": "type_specific_permissions", "property": "type", "value": "grid" }, { "field": "dashboard_permissions.specific_permissions", "property": "type", "value": "transferBox" }, { "field": "dashboard_permissions.specific_permissions", "property": "choices", "source": "api", "request_type": "tool/Macro", "request_parameters": [ { "parameter": "method", "value": "evaluate" }, { "parameter": "input", "value": "{# data.ReporterResource.name #}" } ] }, { "field": "dashboard_permissions.dashboard_permission_groups", "property": "type", "value": "transferBox" }, { "field": "dashboard_permissions.dashboard_permission_groups", "property": "choices", "source": "api", "request_type": "tool/Macro", "request_parameters": [ { "parameter": "method", "value": "evaluate" }, { "parameter": "input", "value": "{# data.DashboardPermissionGroup.name #}" } ] } ], "events": [ { "conditions": [ { "field": "type_specific_permissions.type", "property": "value", "condition": "change" } ], "actions": [ { "field": "type_specific_permissions.operations", "property": "choices", "source": "api", "scope": "up", "request_type": "[type_specific_permissions.type]", "type_modifier": "operations" } ] } ], "pkid": "5abb9452affa931ce72a72ff", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" }, "meta": { "model_type": "data/GUIRule", "summary_attrs": [ { "name": "type", "title": "Model Type" }, { "name": "name", "title": "Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [ "base", "core" ], "title": "data/AccessProfile - Default", "business_key": { "hierarchy": true, "unique": [ "type", "name" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [], "self": [ { "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/", "pkid": "5abb9452affa931ce72a72fe" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5abb9452affa931ce72a72fe" ], "schema_version": "0.5.8", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/+tag/", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/+tag_version/", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5abb9452affa931ce72a72fe" }, { "data": { "name": "Default", "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" } ], "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" } ] } ], "pkid": "5c69443aaffa9374dfa4b5bb", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" }, "meta": { "model_type": "data/GUIRule", "summary_attrs": [ { "name": "type", "title": "Model Type" }, { "name": "name", "title": "Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [ "adaptlog", "V4UC", "ba_CommonOverlay" ], "title": "data/adaptation_log - Default", "business_key": { "hierarchy": true, "unique": [ "type", "name" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [], "self": [ { "href": "/api/data/GUIRule/5c69443aaffa9374dfa4b5ba/", "pkid": "5c69443aaffa9374dfa4b5ba" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5c69443aaffa9374dfa4b5ba" ], "schema_version": "0.5.8", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/GUIRule/5c69443aaffa9374dfa4b5ba/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/GUIRule/5c69443aaffa9374dfa4b5ba/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/GUIRule/5c69443aaffa9374dfa4b5ba/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/GUIRule/5c69443aaffa9374dfa4b5ba/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/GUIRule/5c69443aaffa9374dfa4b5ba/+tag/", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/GUIRule/5c69443aaffa9374dfa4b5ba/+tag_version/", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/GUIRule/5c69443aaffa9374dfa4b5ba/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/GUIRule/5c69443aaffa9374dfa4b5ba/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5c69443aaffa9374dfa4b5ba" }, { "data": { "pkid": "5ad5e2c6affa9343e4d9ad78", "field_specific": [ { "field": "description", "property": "type", "value": "multiline" } ], "type": "data/AdaptationLog", "name": "Default", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" }, "meta": { "model_type": "data/GUIRule", "summary_attrs": [ { "name": "type", "title": "Model Type" }, { "name": "name", "title": "Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [ "adaptlog", "V4UC", "ba_CommonOverlay" ], "title": "data/AdaptationLog - Default", "business_key": { "hierarchy": true, "unique": [ "type", "name" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [], "self": [ { "href": "/api/data/GUIRule/5ad5e2c6affa9343e4d9ad77/", "pkid": "5ad5e2c6affa9343e4d9ad77" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5e2c6affa9343e4d9ad77" ], "schema_version": "0.5.8", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/GUIRule/5ad5e2c6affa9343e4d9ad77/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/GUIRule/5ad5e2c6affa9343e4d9ad77/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/GUIRule/5ad5e2c6affa9343e4d9ad77/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/GUIRule/5ad5e2c6affa9343e4d9ad77/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/GUIRule/5ad5e2c6affa9343e4d9ad77/+tag/", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/GUIRule/5ad5e2c6affa9343e4d9ad77/+tag_version/", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/GUIRule/5ad5e2c6affa9343e4d9ad77/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/GUIRule/5ad5e2c6affa9343e4d9ad77/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5ad5e2c6affa9343e4d9ad77" } ] }
(Show the first instance)
{ "data": { "type": "data/AccessProfile", "name": "Default", "field_specific": [ { "field": "type_specific_permissions.type", "property": "custom_value_allowed", "value": "true" }, { "field": "miscellaneous_permissions", "property": "choices", "source": "api", "scope": "global", "request_type": "operations", "type_modifier": "", "value": "/api/operations/" }, { "field": "type_specific_permissions", "property": "type", "value": "grid" }, { "field": "dashboard_permissions.specific_permissions", "property": "type", "value": "transferBox" }, { "field": "dashboard_permissions.specific_permissions", "property": "choices", "source": "api", "request_type": "tool/Macro", "request_parameters": [ { "parameter": "method", "value": "evaluate" }, { "parameter": "input", "value": "{# data.ReporterResource.name #}" } ], "value": "/api/tool/Macro/?method=evaluate&input=%7B%23%20data.ReporterResource.name%20%23%7D" }, { "field": "dashboard_permissions.dashboard_permission_groups", "property": "type", "value": "transferBox" }, { "field": "dashboard_permissions.dashboard_permission_groups", "property": "choices", "source": "api", "request_type": "tool/Macro", "request_parameters": [ { "parameter": "method", "value": "evaluate" }, { "parameter": "input", "value": "{# data.DashboardPermissionGroup.name #}" } ], "value": "/api/tool/Macro/?method=evaluate&input=%7B%23%20data.DashboardPermissionGroup.name%20%23%7D" } ], "events": [ { "conditions": [ { "field": "type_specific_permissions.type", "property": "value", "condition": "change" } ], "actions": [ { "field": "type_specific_permissions.operations", "property": "choices", "source": "api", "scope": "up", "request_type": "[type_specific_permissions.type]", "type_modifier": "operations", "value": "/api/[type_specific_permissions.type]/operations/" } ] } ], "pkid": "5abb9452affa931ce72a72ff" }, "meta": { "model_type": "data/GUIRule", "summary_attrs": [ { "name": "type", "title": "Model Type" }, { "name": "name", "title": "Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [ "base", "core" ], "title": "data/AccessProfile - Default", "business_key": { "hierarchy": true, "unique": [ "type", "name" ] }, "api_version": "21.2", "cached": false, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101", "pkid": "6t0ggef2c0deab00hb595101" } ], "foreign_key": [], "children": [], "self": [ { "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/", "pkid": "5abb9452affa931ce72a72fe" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5abb9452affa931ce72a72fe" ], "schema_version": "0.5.8", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/?hierarchy=[hierarchy]", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/?hierarchy=[hierarchy]", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/clone/?hierarchy=[hierarchy]&schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/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/GUIRule/5abb9452affa931ce72a72fe/+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/GUIRule/5abb9452affa931ce72a72fe/+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/GUIRule/5abb9452affa931ce72a72fe/?hierarchy=[hierarchy]", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/GUIRule/5abb9452affa931ce72a72fe/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } } ] }, "pkid": "5abb9452affa931ce72a72fe" }
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. |