[Index]
Provisioning Workflows are a combination of one or more operations on entities, scripts and other workflows in a sequence according to a condition. Entity operations can be to add, delete or update if a specified condition holds. A Configuration Template can also be associated with this operation on the entity. This association with a template can for example provide default values or calculated values (from macros) to the entity during the Provisioning Workflow execution. An operation can also specify the inclusion of another workflow under a specified condition. For delete and update operations, the operation can be refined by specifying Advanced find options for the selected entity so that the operation can be applied to a specific instance of the entity. Scripts can also be executed on a device as part of a workflow. Provisioning Workflow operations can also loop through List Macros, assigning list items to an Assigned Variable for reference in other macros or Configuration Templates. List Macros in Provisioning Workflows enable batch operations and nested looping. Refer to the Macro Syntax section in the General Help.
Model ref.: data/ProvisioningWorkflow
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": { "pattern": "^((?!\\.).)*$", "required": true, "type": "string", "description": "The name that is given to the Provisioning Workflow.", "title": "Name" }, "parameters": { "properties": { "max_workers": { "default": "1", "required": true, "type": "string", "description": "A specification of the maximum number of workflow workers allowed for the operation.", "title": "Maximum Workers" }, "parallel": { "default": "false", "required": true, "type": "string", "description": "An indication if the operation can run in parallel.", "title": "Parallel" } }, "required": true, "type": "object", "description": "Additional execution parameters that are applied to the Provisioning Workflow.", "title": "Parameters" }, "workflow": { "description": "The list of individual workflow operations that are part of the Provisioning Workflow.", "title": "Workflow", "minItems": 1, "items": { "type": "object", "properties": { "templates": { "items": { "type": "object", "properties": { "conditions": { "items": { "type": "object", "properties": { "condition": { "required": true, "type": "string", "description": "A condition in Macro language that should resolve to True for the operation to be carried out. If the condition resolves to False, the operation is not carried out and will be excluded from the list of operations of the workflow.", "title": "Condition" } } }, "required": false, "type": "array", "description": "", "format": "uri" }, "template": { "description": "Configuration Template", "format": "uri", "title": "Template", "required": true, "choices": [], "target_attr": "name", "target_model_type": "data/ConfigurationTemplate", "type": "string", "target": "/api/data/ConfigurationTemplate/template_choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken] } } }, "required": false, "type": "array", "description": "The Configuration Template to apply if the Entity of the operation is a model.", "title": "Configuration Templates" }, "ignored_error_codes": { "items": { "type": "string", "choices": [ { "value": "4001", "title": "Duplicate Resource Found" }, { "value": "5004", "title": "Resource Not Found" }, { "value": "999999", "title": "All Errors" } ] }, "required": false, "type": "array", "description": "The workflow will continue if this steps encounters the following error codes", "title": "Ignored Errors" }, "description": { "required": false, "type": "string", "description": "Description for this workflow step", "title": "Description" }, "data_id": { "required": false, "type": "string", "description": "DESCRIPTION", "title": "Input Data Identifier" }, "hierarchy": { "required": false, "type": "string", "description": "The Context Hierarchy from which the workflow should be carried out. Specifying a value here makes it possible to override the context hierarchy to which the provisioning workflow belongs when it is created and used in a domain model.", "title": "Context Hierarchy" }, "network_device_filter": { "is_password": false, "title": "Network Device Filter", "items": {}, "required": false, "readonly": false, "type": "object", "properties": { "device_instance": { "is_password": false, "description": "Network Device instance for search limitations", "title": "Device Instance", "required": false, "choices": [ { "value": " ", "title": " " } ], "readonly": false, "type": "string" }, "device_type": { "is_password": false, "description": "The type of the device, for example CallManager, CUC", "title": "Device type", "required": false, "choices": [ { "value": "data/CiscoTelePresenceExchange", "title": "CTX" }, { "value": "data/CallManager", "title": "CUCM" }, { "value": "data/UnityConnection", "title": "CUC" }, { "value": "data/Ldap", "title": "LDAP" }, { "value": "data/Lync", "title": "Lync" }, { "value": "data/ServiceNow", "title": "ServiceNow" }, { "value": "data/CiscoTMS", "title": "TMS" }, { "value": "data/Ios", "title": "IOS" }, { "value": "data/Pgw", "title": "PGW" }, { "value": "data/WebEx", "title": "WebEx" }, { "value": "data/Cucce", "title": "CUCCE" }, { "value": "data/Cuccx", "title": "CUCCX" }, { "value": "data/Hcmf", "title": "HCMF" } ], "readonly": false, "type": "string" } } }, "entity_type": { "description": "A selection to indicate whether the workflow step applies to an Entity such as a model or includes another Provisioning Workflow.", "title": "Step Type", "default": "model", "required": false, "choices": [ { "value": "model", "title": "Model" }, { "value": "workflow", "title": "Provisioning Workflow" } ], "type": "string" }, "condition": { "items": { "type": "object", "properties": { "action": { "default": "skip", "choices": [ { "value": "skip", "title": "Skip" }, { "value": "error", "title": "Error" } ], "type": "string", "description": "Action to perform on failure.", "title": "Action to perform on failure" }, "error_message": { "type": "string", "description": "The custom message that would be displayed", "title": "Error Message" }, "condition": { "required": true, "type": "string", "description": "A condition in Macro language that should resolve to True for the operation to be carried out. If the condition resolves to False, the operation is not carried out and will be excluded from the list of operations of the workflow.", "title": "Condition" } } }, "required": false, "type": "array", "description": "The list of conditions that should resolve to True in order for the selected operation to be carried out.", "title": "Conditions" }, "execution_behavior": { "description": "Detached Rollback will roll back this and nested transaction separately from the parent transaction.", "title": "Execution Behavior", "default": "", "required": false, "choices": [ { "value": "", "title": "Default" }, { "value": "detached_rollback", "title": "Detached Rollback" } ], "type": "string" }, "entity": { "choices": [ { "value": "", "title": "" } ], "required": true, "type": "string", "description": "The selected model or workflow that applies to the workflow step.", "title": "Entity or Workflow" }, "advanced_find_options": { "items": { "type": "object", "properties": { "model_attribute": { "title": "Model attribute", "type": "string", "description": "The selected of the attribute of the model.", "choices": [ { "value": "", "title": "" } ] }, "mapped_value": { "type": "string", "description": "The specified value of the attribute. Macros can be evaluated here to provide the value.", "title": "Mapped Value" } } }, "type": "array", "description": "The specification to find a specific value of an attribute of a model for the workflow operation to be carried out.", "title": "Advanced find options" }, "asynchronous": { "default": false, "type": "boolean", "description": "If selected the step will be executed asynchronously, otherwise it will be executed synchronously(default). Workflows do not wait for asynchronous steps to complete before proceeding with the next step nor do they account for any failures occuring as part of the execution of such steps.", "title": "Execute Asynchronously" }, "foreach": { "items": { "type": "object", "properties": { "context_var": { "required": true, "type": "string", "description": "The variable used to store the list returned by the macro.", "title": "Assigned Variable" }, "macro_list": { "required": true, "type": "string", "description": "The macro to return a list. For the macro syntax to return a list, see the General Help.", "title": "Macro List Lookup" } } }, "required": false, "type": "array", "description": "A list of values in Macro List Lookup can be obtained and stored in an Assigned Variable that will be looped through. If one or more of Condition is specified for the operation, then the evaluated condition is tested before each loop of the Foreach List Macro.", "title": "Foreach List Macro" }, "map_data": { "required": false, "type": "string", "description": "Specify a macro to map data from a Relation/Wizard to the work flow step.", "title": "Map Data" }, "method": { "choices": [ { "value": "add", "title": "Add" }, { "value": "update", "title": "Update" }, { "value": "remove", "title": "Remove" }, { "value": "bulk_update", "title": "Bulk Update" }, { "value": "bulk_delete", "title": "Bulk Delete" }, { "value": "move", "title": "Move" }, { "value": "refresh", "title": "Refresh" }, { "value": "sync", "title": "Sync" }, { "value": "purge", "title": "Purge" }, { "value": "set", "title": "Set" }, { "value": "execute", "title": "Execute" }, { "value": "include", "title": "Include Workflow" }, { "value": "exit_local", "title": "Exit Local" }, { "value": "exit_global", "title": "Exit Global" } ], "required": true, "type": "string", "description": "A list of operation types in the workflow. The type can be Add, Update, Remove, Execute and Include Workflow.", "title": "Operation" }, "set_list": { "items": { "type": "object", "properties": { "set_var_name": { "required": true, "type": "string", "description": "The name of the variable. This can be a macro or static name.", "title": "Variable Name" }, "set_var_value": { "required": true, "type": "string", "description": "The value of the variable. This can be a macro or static value.", "title": "Value" } } }, "required": false, "type": "array", "description": "A list of variables that enriches the context. Macros can be used to obtain objects and enrich the workflow context.", "title": "Set Context Variables" }, "advanced_find_search_direction": { "default": "full_tree", "choices": [ { "value": "full_tree", "title": "Full Tree" }, { "value": "up", "title": "Up" }, { "value": "down", "title": "Down" }, { "value": "local", "title": "Local" } ], "type": "string", "description": "Specifies which direction to search along the hierarchy tree.", "title": "Advanced Find Search Direction" } } }, "required": true, "type": "array" }, "rollback_disabled": { "default": false, "required": false, "type": "boolean", "description": "If selected and the toplevel transaction, the Provisioning Workflow will not rollback any of the nested transaction(s) on failure.", "title": "Disable Rollback on Error" }, "condition": { "items": { "type": "object", "properties": { "action": { "default": "skip", "choices": [ { "value": "skip", "title": "Skip" }, { "value": "error", "title": "Error" } ], "type": "string", "description": "Action to perform on failure.", "title": "Action to perform on failure." }, "error_message": { "type": "string", "description": "The custom message that would be displayed", "title": "Error Message" }, "condition": { "required": true, "type": "string", "description": "A condition in Macro language that should resolve to True for the operation to be carried out. If the condition resolves to False, the operation is not carried out and will be excluded from the list of operations of the workflow.", "title": "Condition" } } }, "required": false, "type": "array", "description": "The list of conditions that should resolve to True in order for the selected operation to be carried out.", "title": "Conditions" }, "description": { "type": "string", "description": "A description for the Provisioning Workflow instance.", "title": "Description" } }, "schema_version": "0.6.0" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the GUI Add form. | GET | /api/data/ProvisioningWorkflow/add/ |
|
The GUI Add form of data/ProvisioningWorkflow 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/ProvisioningWorkflow | 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/ProvisioningWorkflow/ | hierarchy=[hierarchy] | {"hrefs":["/api/data/ProvisioningWorkflow/[pkid1]", "/api/data/ProvisioningWorkflow/[pkid2]", ...]} |
GET http://[host-proxy]/api/data/ProvisioningWorkflow/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Bulk Modify | GET | /api/data/ProvisioningWorkflow/bulk_update/?schema=&schema_rules=true |
|
|
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Bulk Modify | POST | /api/data/ProvisioningWorkflow/bulk_update/ |
|
For example: {"data":{"name":"value"}, "meta":{}, "request_meta":{ "hrefs":["/api/v0/data/ProvisioningWorkflow/[pkid1]", "/api/v0/data/ProvisioningWorkflow/[pkid2]",...]}} |
GET http://[host-proxy]/api/data/ProvisioningWorkflow/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Get a selected [export_format] of the schema and instances [pkid1], [pkid2],... of data/ProvisioningWorkflow; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | POST | /api/data/ProvisioningWorkflow/export/ |
|
{ "hrefs":["/api/data/ProvisioningWorkflow/[pkid1]", "/api/data/ProvisioningWorkflow/[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/ProvisioningWorkflow and the JSON format can be used to import instances of data/ProvisioningWorkflow.
GET http://[host-proxy]/api/data/ProvisioningWorkflow/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a compressed format of the Bulk Load spreadsheet template for data/ProvisioningWorkflow | POST | /api/data/ProvisioningWorkflow/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/ProvisioningWorkflow/configuration_template/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Field Display Policy | GET | /api/data/ProvisioningWorkflow/field_display_policy/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/FieldDisplayPolicy/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Migration Template | GET | /api/data/ProvisioningWorkflow/migration/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
List | GET | /api/data/ProvisioningWorkflow/ |
|
The data/ProvisioningWorkflow schema and all instances as JSON. |
(The list will return 0 to 3 data/ProvisioningWorkflow instances)
{ "operations": [ "field_display_policy", "configuration_template", "help", "get", "export_bulkload_template", "list", "update", "remove", "move", "transform", "add", "export", "migration", "bulk_update_form" ], "pagination": { "direction": "asc", "order_by": "name", "maximum_limit": 2000, "skip": 0, "current": "/api/data/ProvisioningWorkflow/?skip=0&limit=3&order_by=name&direction=asc&traversal=default", "limit": 3, "total_limit": null, "total": 2719 }, "meta": { "tags": [], "cached": true, "title": "", "business_key": { "hierarchy": true, "unique": [ "name" ] }, "schema_version": "0.6.0", "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/ProvisioningWorkflow/add/?hierarchy=[hierarchy]", "method": "GET", "title": "Add" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/ProvisioningWorkflow/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "bulk_update_form": { "support_async": false, "class": "update", "href": "/api/data/ProvisioningWorkflow/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/ProvisioningWorkflow/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/ProvisioningWorkflow/export_bulkload_template/?hierarchy=[hierarchy]", "method": "POST", "title": "Export Bulk Load Template" } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/ProvisioningWorkflow/+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/ProvisioningWorkflow/+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/ProvisioningWorkflow/configuration_template/?hierarchy=[hierarchy]", "method": "GET", "title": "Configuration Template" } }, { "field_display_policy": { "support_async": false, "class": "display_policy", "href": "/api/data/ProvisioningWorkflow/field_display_policy/?hierarchy=[hierarchy]", "method": "GET", "title": "Field Display Policy" } }, { "migration": { "support_async": false, "class": "migration", "href": "/api/data/ProvisioningWorkflow/migration/?hierarchy=[hierarchy]", "method": "GET", "title": "Migration Template" } }, { "list": { "support_async": false, "class": "list", "href": "/api/data/ProvisioningWorkflow/?hierarchy=[hierarchy]", "method": "GET", "title": "List" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/ProvisioningWorkflow/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "data/ProvisioningWorkflow", "model_specific_actions": [ "add", "bulk_update_form", "clone", "configuration_template", "execute", "export", "export_bulkload_template", "field_display_policy", "get", "help", "list", "migration", "remove", "tag", "tag_version", "update" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "resources": [ { "pkid": "5df35dd0ce894e0012b33f4a", "meta": { "tags": [ "feature_tag_add_dialplan", "V4UC", "ba_EndToEnd" ], "cached": true, "title": "_DPCountryPWF", "business_key": { "hierarchy": true, "unique": [ "name" ] }, "schema_version": "0.6.0", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5df35dd0ce894e0012b33f4a", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/clone/?schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/+tag/", "class": "tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/+tag_version/", "class": "tag_version", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "support_async": true, "class": "execute", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/execute/", "method": "POST", "title": "Execute" } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/help", "method": "GET", "title": "Help" } } ], "path": [ "6t0ggef2c0deab00hb595101", "5df35dd0ce894e0012b33f4a" ], "model_type": "data/ProvisioningWorkflow", "system_resource": true, "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "name": "_DPCountryPWF", "parameters": { "max_workers": "1", "parallel": "false" }, "workflow": [ { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYPT", "macro_list": "{# input.ALLDP.AddCountryPartitions #}" } ], "entity": "device/cucm/RoutePartition", "method": "add", "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYCSS", "macro_list": "{# input.ALLDP.AddCountryCSS #}" } ], "entity": "device/cucm/Css", "method": "add", "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYTP", "macro_list": "{# input.ALLDP.AddCountryTP #}" } ], "entity": "device/cucm/TransPattern", "method": "add", "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYRP", "macro_list": "{# input.ALLDP.AddCountryRP #}" } ], "entity": "device/cucm/RoutePattern", "method": "add", "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYEDXF", "macro_list": "{# input.ALLDP.AddCountryCalledXformation #}" } ], "entity": "device/cucm/CalledPartyTransformationPattern", "method": "add", "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYNGXF", "macro_list": "{# input.ALLDP.AddCountryCallingXformation #}" } ], "entity": "device/cucm/CallingPartyTransformationPattern", "method": "add", "entity_type": "model" } ], "pkid": "5df35dd0ce894e0012b33f4b", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" } }, { "pkid": "5df35de7ce894e0012b340f2", "meta": { "tags": [ "V4UC", "ba_EndToEnd" ], "cached": true, "title": "_DPCountryPWF-Del", "business_key": { "hierarchy": true, "unique": [ "name" ] }, "schema_version": "0.6.0", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5df35de7ce894e0012b340f2", "href": "/api/data/ProvisioningWorkflow/5df35de7ce894e0012b340f2/" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "href": "/api/data/ProvisioningWorkflow/5df35de7ce894e0012b340f2/", "title": "Modify", "class": "update", "method": "PUT" } }, { "remove": { "support_async": true, "href": "/api/data/ProvisioningWorkflow/5df35de7ce894e0012b340f2/", "title": "Delete", "class": "delete", "method": "DELETE" } }, { "clone": { "support_async": false, "href": "/api/data/ProvisioningWorkflow/5df35de7ce894e0012b340f2/clone/?schema=&schema_rules=true", "title": "Clone", "class": "clone", "method": "GET" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/ProvisioningWorkflow/5df35de7ce894e0012b340f2/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "class": "tag", "href": "/api/data/ProvisioningWorkflow/5df35de7ce894e0012b340f2/+tag/", "method": "PATCH", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "class": "tag_version", "href": "/api/data/ProvisioningWorkflow/5df35de7ce894e0012b340f2/+tag_version/", "method": "PATCH", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "support_async": true, "href": "/api/data/ProvisioningWorkflow/5df35de7ce894e0012b340f2/execute/", "title": "Execute", "class": "execute", "method": "POST" } }, { "get": { "support_async": false, "href": "/api/data/ProvisioningWorkflow/5df35de7ce894e0012b340f2/", "title": "Get", "class": "get", "method": "GET" } }, { "help": { "support_async": false, "href": "/api/data/ProvisioningWorkflow/5df35de7ce894e0012b340f2/help", "title": "Help", "class": "help", "method": "GET" } } ], "path": [ "6t0ggef2c0deab00hb595101", "5df35de7ce894e0012b340f2" ], "model_type": "data/ProvisioningWorkflow", "system_resource": true, "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "name": "_DPCountryPWF-Del", "parameters": { "max_workers": "1", "parallel": "false" }, "workflow": [ { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYNGXF", "macro_list": "{# input.ALLDP.AddCountryCallingXformation #}" } ], "entity": "device/cucm/CallingPartyTransformationPattern", "method": "remove", "advanced_find_options": [ { "model_attribute": "pattern", "mapped_value": "{{fn.evaluate input.COUNTRYNGXF.CountryANIXF}}" }, { "model_attribute": "routePartitionName", "mapped_value": "{{fn.evaluate input.COUNTRYNGXF.CountryANIXFPT}}" } ], "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYEDXF", "macro_list": "{# input.ALLDP.AddCountryCalledXformation #}" } ], "entity": "device/cucm/CalledPartyTransformationPattern", "method": "remove", "advanced_find_options": [ { "model_attribute": "pattern", "mapped_value": "{{fn.evaluate input.COUNTRYEDXF.CountryDNISXF}}" }, { "model_attribute": "routePartitionName", "mapped_value": "{{fn.evaluate input.COUNTRYEDXF.CountryDNISXFPT}}" } ], "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYRP", "macro_list": "{# input.ALLDP.AddCountryRP #}" } ], "entity": "device/cucm/RoutePattern", "method": "remove", "advanced_find_options": [ { "model_attribute": "pattern", "mapped_value": "{{fn.evaluate input.COUNTRYRP.CountryRP}}" }, { "model_attribute": "routePartitionName", "mapped_value": "{{fn.evaluate input.COUNTRYRP.CountryRPPT}}" } ], "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYTP", "macro_list": "{# input.ALLDP.AddCountryTP #}" } ], "entity": "device/cucm/TransPattern", "method": "remove", "advanced_find_options": [ { "model_attribute": "pattern", "mapped_value": "{{fn.evaluate input.COUNTRYTP.Pattern}}" }, { "model_attribute": "routePartitionName", "mapped_value": "{{fn.evaluate input.COUNTRYTP.CountryTPPT}}" } ], "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYCSS", "macro_list": "{# input.ALLDP.AddCountryCSS #}" } ], "entity": "device/cucm/Css", "method": "remove", "advanced_find_options": [ { "model_attribute": "name", "mapped_value": "{{fn.evaluate input.COUNTRYCSS.CountryCSS}}" } ], "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYPT", "macro_list": "{# input.ALLDP.AddCountryPartitions #}" } ], "entity": "device/cucm/RoutePartition", "method": "remove", "advanced_find_options": [ { "model_attribute": "name", "mapped_value": "{{fn.evaluate input.COUNTRYPT.CountryPT}}" } ], "entity_type": "model" } ], "pkid": "5df35de7ce894e0012b340f3", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" } }, { "pkid": "5df35dbfce894e0012b33e3f", "meta": { "tags": [ "feature_tag_add_dialplan", "V4UC", "ba_EndToEnd" ], "cached": true, "title": "_DPCucmPWF", "business_key": { "hierarchy": true, "unique": [ "name" ] }, "schema_version": "0.6.0", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5df35dbfce894e0012b33e3f", "href": "/api/data/ProvisioningWorkflow/5df35dbfce894e0012b33e3f/" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "method": "PUT", "href": "/api/data/ProvisioningWorkflow/5df35dbfce894e0012b33e3f/", "class": "update", "title": "Modify" } }, { "remove": { "support_async": true, "method": "DELETE", "href": "/api/data/ProvisioningWorkflow/5df35dbfce894e0012b33e3f/", "class": "delete", "title": "Delete" } }, { "clone": { "support_async": false, "method": "GET", "href": "/api/data/ProvisioningWorkflow/5df35dbfce894e0012b33e3f/clone/?schema=&schema_rules=true", "class": "clone", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "method": "GET", "href": "/api/data/ProvisioningWorkflow/5df35dbfce894e0012b33e3f/export/", "class": "export", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "class": "tag", "href": "/api/data/ProvisioningWorkflow/5df35dbfce894e0012b33e3f/+tag/", "method": "PATCH", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "class": "tag_version", "href": "/api/data/ProvisioningWorkflow/5df35dbfce894e0012b33e3f/+tag_version/", "method": "PATCH", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "support_async": true, "method": "POST", "href": "/api/data/ProvisioningWorkflow/5df35dbfce894e0012b33e3f/execute/", "class": "execute", "title": "Execute" } }, { "get": { "support_async": false, "method": "GET", "href": "/api/data/ProvisioningWorkflow/5df35dbfce894e0012b33e3f/", "class": "get", "title": "Get" } }, { "help": { "support_async": false, "method": "GET", "href": "/api/data/ProvisioningWorkflow/5df35dbfce894e0012b33e3f/help", "class": "help", "title": "Help" } } ], "path": [ "6t0ggef2c0deab00hb595101", "5df35dbfce894e0012b33e3f" ], "model_type": "data/ProvisioningWorkflow", "system_resource": true, "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "name": "_DPCucmPWF", "parameters": { "max_workers": "1", "parallel": "false" }, "workflow": [ { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "INITCUCMPT", "macro_list": "{# input.ALLDP.AddCucmPartitions #}" } ], "entity": "device/cucm/RoutePartition", "method": "add", "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "INITCUCMCSS", "macro_list": "{# input.ALLDP.AddCucmCSS #}" } ], "entity": "device/cucm/Css", "method": "add", "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "INITCUCMTP", "macro_list": "{# input.ALLDP.AddCucmTP #}" } ], "entity": "device/cucm/TransPattern", "method": "add", "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "INITCUCMRP", "macro_list": "{# input.ALLDP.AddCucmRP #}" } ], "entity": "device/cucm/RoutePattern", "method": "add", "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "INITCUCMEDXF", "macro_list": "{# input.ALLDP.AddCucmCalledXformation #}" } ], "entity": "device/cucm/CalledPartyTransformationPattern", "method": "add", "entity_type": "model" }, { "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "INITCUCMNGXF", "macro_list": "{# input.ALLDP.AddCucmCallingXformation #}" } ], "entity": "device/cucm/CallingPartyTransformationPattern", "method": "add", "entity_type": "model" } ], "pkid": "5df35dbfce894e0012b33e40", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" } } ] }
(Show the first instance)
{ "pkid": "5df35dd0ce894e0012b33f4a", "meta": { "tags": [ "feature_tag_add_dialplan", "V4UC", "ba_EndToEnd" ], "cached": false, "title": "_DPCountryPWF", "business_key": { "hierarchy": true, "unique": [ "name" ] }, "schema_version": "0.6.0", "references": { "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "self": [ { "pkid": "5df35dd0ce894e0012b33f4a", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/" } ], "foreign_key": [], "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "children": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/?hierarchy=[hierarchy]", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/clone/?hierarchy=[hierarchy]&schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/export/?hierarchy=[hierarchy]", "method": "GET", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/+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/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/+tag_version/?hierarchy=[hierarchy]", "class": "tag_version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "execute": { "support_async": true, "class": "execute", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/execute/?hierarchy=[hierarchy]", "method": "POST", "title": "Execute" } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/?hierarchy=[hierarchy]", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/ProvisioningWorkflow/5df35dd0ce894e0012b33f4a/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "path": [ "6t0ggef2c0deab00hb595101", "5df35dd0ce894e0012b33f4a" ], "model_type": "data/ProvisioningWorkflow", "system_resource": true, "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "pkid": "5df35dd0ce894e0012b33f4b", "name": "_DPCountryPWF", "parameters": { "max_workers": "1", "parallel": "false" }, "workflow": [ { "method": "add", "entity_type": "model", "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYPT", "macro_list": "{# input.ALLDP.AddCountryPartitions #}" } ], "entity": "device/cucm/RoutePartition" }, { "method": "add", "entity_type": "model", "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYCSS", "macro_list": "{# input.ALLDP.AddCountryCSS #}" } ], "entity": "device/cucm/Css" }, { "method": "add", "entity_type": "model", "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYTP", "macro_list": "{# input.ALLDP.AddCountryTP #}" } ], "entity": "device/cucm/TransPattern" }, { "method": "add", "entity_type": "model", "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYRP", "macro_list": "{# input.ALLDP.AddCountryRP #}" } ], "entity": "device/cucm/RoutePattern" }, { "method": "add", "entity_type": "model", "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYEDXF", "macro_list": "{# input.ALLDP.AddCountryCalledXformation #}" } ], "entity": "device/cucm/CalledPartyTransformationPattern" }, { "method": "add", "entity_type": "model", "foreach": [ { "context_var": "ALLDP", "macro_list": "{# data.DialPlan.*| DialPlanName:macro.DIALPLAN #}" }, { "context_var": "COUNTRYNGXF", "macro_list": "{# input.ALLDP.AddCountryCallingXformation #}" } ], "entity": "device/cucm/CallingPartyTransformationPattern" } ] } }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for data/ProvisioningWorkflow. | GET | /api/data/ProvisioningWorkflow/help | hierarchy=[hierarchy] | On-line help of Model ref.: data/ProvisioningWorkflow as HTML |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Modify | PUT | /api/data/ProvisioningWorkflow/[pkid] | hierarchy=[hierarchy] | (For payload specification) |
For Bulk modification, refer to the Bulk Modify section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Delete | DELETE | /api/data/ProvisioningWorkflow/[pkid] | hierarchy=[hierarchy] |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Clone instance with [pkid]. The schema rules are applied. | GET | /api/data/ProvisioningWorkflow/[pkid]/clone/?schema=&schema_rules=true |
|
A JSON payload with:
|
GET http://[host-proxy]/api/data/ProvisioningWorkflow/?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/ProvisioningWorkflow; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | GET | /api/data/ProvisioningWorkflow/[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/ProvisioningWorkflow and the JSON format can be used to import instances of data/ProvisioningWorkflow.
For Bulk Export, refer to the Bulk Export section.
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Tag | PATCH | /api/data/ProvisioningWorkflow/[pkid]/+tag | hierarchy=[hierarchy] | If payload required: |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Execute | POST | /api/data/ProvisioningWorkflow/[pkid]/execute | hierarchy=[hierarchy] | If payload required: |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get | GET | /api/data/ProvisioningWorkflow/[pkid] | hierarchy=[hierarchy] | The data/ProvisioningWorkflow instance with [pkid]. |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/data/ProvisioningWorkflow/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for data/ProvisioningWorkflow. |