[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": { "title": "Name", "description": "The name that is given to the Provisioning Workflow.", "type": "string", "required": true, "pattern": "^((?!\\.).)*$" }, "description": { "title": "Description", "description": "A description for the Provisioning Workflow instance.", "type": "string" }, "parameters": { "title": "Parameters", "description": "Additional execution parameters that are applied to the Provisioning Workflow.", "type": "object", "required": true, "properties": { "parallel": { "title": "Parallel", "description": "An indication if the operation can run in parallel.", "type": "string", "required": true, "default": "false" }, "max_workers": { "title": "Maximum Workers", "description": "A specification of the maximum number of workflow workers allowed for the operation.", "type": "string", "required": true, "default": "1" } } }, "condition": { "title": "Conditions", "description": "The list of conditions that should resolve to True in order for the selected operation to be carried out.", "type": "array", "required": false, "items": { "type": "object", "properties": { "condition": { "title": "Condition", "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.", "type": "string", "required": true }, "action": { "title": "Action to perform on failure.", "description": "Action to perform on failure.", "type": "string", "default": "skip", "choices": [ { "value": "skip", "title": "Skip" }, { "value": "error", "title": "Error" } ] }, "error_message": { "title": "Error Message", "description": "The custom message that would be displayed", "type": "string" } } } }, "rollback_disabled": { "title": "Disable Rollback on Error", "description": "If selected and the toplevel transaction, the Provisioning Workflow will not rollback any of the nested transaction(s) on failure.", "type": "boolean", "required": false, "default": false }, "workflow": { "title": "Workflow", "description": "The list of individual workflow operations that are part of the Provisioning Workflow.", "type": "array", "minItems": 1, "required": true, "items": { "type": "object", "properties": { "method": { "title": "Operation", "description": "A list of operation types in the workflow. The type can be Add, Update, Remove, Execute and Include Workflow.", "type": "string", "required": true, "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" } ] }, "entity_type": { "title": "Step Type", "description": "A selection to indicate whether the workflow step applies to an Entity such as a model or includes another Provisioning Workflow.", "type": "string", "required": false, "default": "model", "choices": [ { "value": "model", "title": "Model" }, { "value": "workflow", "title": "Provisioning Workflow" } ] }, "entity": { "title": "Entity or Workflow", "description": "The selected model or workflow that applies to the workflow step.", "type": "string", "required": true, "choices": [ { "value": "", "title": "" } ] }, "data_id": { "title": "Input Data Identifier", "description": "DESCRIPTION", "type": "string", "required": false }, "hierarchy": { "title": "Context Hierarchy", "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.", "type": "string", "required": false }, "map_data": { "title": "Map Data", "description": "Specify a macro to map data from a Relation/Wizard to the work flow step.", "type": "string", "required": false }, "description": { "title": "Description", "description": "Description for this workflow step", "type": "string", "required": false }, "asynchronous": { "title": "Execute Asynchronously", "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.", "type": "boolean", "default": false }, "execution_behavior": { "title": "Execution Behavior", "description": "Detached Rollback will roll back this and nested transaction separately from the parent transaction.", "type": "string", "required": false, "default": "", "choices": [ { "value": "", "title": "Default" }, { "value": "detached_rollback", "title": "Detached Rollback" } ] }, "network_device_filter": { "title": "Network Device Filter", "type": "object", "required": false, "readonly": false, "is_password": false, "items": {}, "properties": { "device_type": { "title": "Device type", "description": "The type of the device, for example CallManager, CUC", "type": "string", "is_password": false, "required": false, "readonly": 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" } ] }, "device_instance": { "title": "Device Instance", "description": "Network Device instance for search limitations", "type": "string", "is_password": false, "required": false, "readonly": false, "choices": [ { "value": " ", "title": " " } ] } } }, "ignored_error_codes": { "title": "Ignored Errors", "description": "The workflow will continue if this steps encounters the following error codes", "type": "array", "required": false, "items": { "type": "string", "choices": [ { "value": "4001", "title": "Duplicate Resource Found" }, { "value": "5004", "title": "Resource Not Found" }, { "value": "999999", "title": "All Errors" } ] } }, "templates": { "title": "Configuration Templates", "description": "The Configuration Template to apply if the Entity of the operation is a model.", "type": "array", "required": false, "items": { "type": "object", "properties": { "template": { "title": "Template", "description": "Configuration Template", "type": "string", "format": "uri", "required": true, "target": "/api/data/ConfigurationTemplate/template_choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_attr": "name", "target_model_type": "data/ConfigurationTemplate", "choices": [] }, "conditions": { "description": "", "type": "array", "format": "uri", "required": false, "items": { "type": "object", "properties": { "condition": { "title": "Condition", "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.", "type": "string", "required": true } } } } } } }, "foreach": { "title": "Foreach List Macro", "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.", "type": "array", "required": false, "items": { "type": "object", "properties": { "macro_list": { "title": "Macro List Lookup", "description": "The macro to return a list. For the macro syntax to return a list, see the General Help.", "type": "string", "required": true }, "context_var": { "title": "Assigned Variable", "description": "The variable used to store the list returned by the macro.", "type": "string", "required": true } } } }, "set_list": { "title": "Set Context Variables", "description": "A list of variables that enriches the context. Macros can be used to obtain objects and enrich the workflow context.", "type": "array", "required": false, "items": { "type": "object", "properties": { "set_var_name": { "title": "Variable Name", "description": "The name of the variable. This can be a macro or static name.", "type": "string", "required": true }, "set_var_value": { "title": "Value", "description": "The value of the variable. This can be a macro or static value.", "type": "string", "required": true } } } }, "condition": { "title": "Conditions", "description": "The list of conditions that should resolve to True in order for the selected operation to be carried out.", "type": "array", "required": false, "items": { "type": "object", "properties": { "condition": { "title": "Condition", "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.", "type": "string", "required": true }, "action": { "title": "Action to perform on failure", "description": "Action to perform on failure.", "type": "string", "default": "skip", "choices": [ { "value": "skip", "title": "Skip" }, { "value": "error", "title": "Error" } ] }, "error_message": { "title": "Error Message", "description": "The custom message that would be displayed", "type": "string" } } } }, "advanced_find_options": { "title": "Advanced find options", "description": "The specification to find a specific value of an attribute of a model for the workflow operation to be carried out.", "type": "array", "items": { "type": "object", "properties": { "model_attribute": { "title": "Model attribute", "description": "The selected of the attribute of the model.", "type": "string", "choices": [ { "value": "", "title": "" } ] }, "mapped_value": { "title": "Mapped Value", "description": "The specified value of the attribute. Macros can be evaluated here to provide the value.", "type": "string" } } } }, "advanced_find_search_direction": { "title": "Advanced Find Search Direction", "description": "Specifies which direction to search along the hierarchy tree.", "type": "string", "default": "full_tree", "choices": [ { "value": "full_tree", "title": "Full Tree" }, { "value": "up", "title": "Up" }, { "value": "down", "title": "Down" }, { "value": "local", "title": "Local" } ] } } } } }, "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 |
---|---|---|---|---|
Tag | PATCH | /api/data/ProvisioningWorkflow/+tag/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Tag Version | PATCH | /api/data/ProvisioningWorkflow/+tag_version/ |
|
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)
{ "pagination": { "skip": 0, "limit": 3, "maximum_limit": 2000, "total": 3110, "total_limit": null, "order_by": "name", "direction": "asc", "current": "/api/data/ProvisioningWorkflow/?skip=0&limit=3&order_by=name&direction=asc&traversal=fulltree" }, "operations": [ "field_display_policy", "update", "help", "remove", "move", "add", "export", "list", "configuration_template", "get", "bulk_update_form", "migration", "transform", "export_bulkload_template" ], "meta": { "model_type": "data/ProvisioningWorkflow", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "", "business_key": { "unique": [ "name" ], "hierarchy": true }, "api_version": "21.2", "cached": true, "references": { "children": [], "parent": [ { "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101", "pkid": "6t0ggef2c0deab00hb595101" } ], "device": [ { "href": "", "pkid": "" } ], "foreign_key": [] }, "model_specific_actions": [ "add", "bulk_update_form", "clone", "configuration_template", "execute", "export", "export_bulkload_template", "field_display_policy", "get", "help", "list", "migration", "remove", "tag", "tag_version", "update" ], "schema_version": "0.6.0", "actions": [ { "add": { "method": "GET", "class": "add", "href": "/api/data/ProvisioningWorkflow/add/?hierarchy=[hierarchy]", "support_async": false, "title": "Add" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/ProvisioningWorkflow/?hierarchy=[hierarchy]", "support_async": true, "title": "Delete" } }, { "bulk_update_form": { "method": "GET", "class": "update", "href": "/api/data/ProvisioningWorkflow/bulk_update/?hierarchy=[hierarchy]&schema=&schema_rules=true", "support_async": false, "title": "Bulk Modify" } }, { "export": { "method": "POST", "class": "export", "href": "/api/data/ProvisioningWorkflow/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/ProvisioningWorkflow/export_bulkload_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Export Bulk Load Template" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/ProvisioningWorkflow/+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/ProvisioningWorkflow/+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/ProvisioningWorkflow/configuration_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Configuration Template" } }, { "field_display_policy": { "method": "GET", "class": "display_policy", "href": "/api/data/ProvisioningWorkflow/field_display_policy/?hierarchy=[hierarchy]", "support_async": false, "title": "Field Display Policy" } }, { "migration": { "method": "GET", "class": "migration", "href": "/api/data/ProvisioningWorkflow/migration/?hierarchy=[hierarchy]", "support_async": false, "title": "Migration Template" } }, { "list": { "method": "GET", "class": "list", "href": "/api/data/ProvisioningWorkflow/?hierarchy=[hierarchy]", "support_async": false, "title": "List" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/ProvisioningWorkflow/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } } ] }, "resources": [ { "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": "5ad5b52baffa9343e4d9362d", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" }, "meta": { "model_type": "data/ProvisioningWorkflow", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [ "feature_tag_add_dialplan", "V4UC", "ba_EndToEnd" ], "title": "_DPCountryPWF", "business_key": { "hierarchy": true, "unique": [ "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/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/", "pkid": "5ad5b52baffa9343e4d93620" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5b52baffa9343e4d93620" ], "system_resource": true, "schema_version": "0.6.0", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/+tag/", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/+tag_version/", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "method": "POST", "class": "execute", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/execute/", "support_async": true, "title": "Execute" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5ad5b52baffa9343e4d93620" }, { "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": "5ad5b52caffa9343e4d93657", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" }, "meta": { "model_type": "data/ProvisioningWorkflow", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [ "V4UC", "ba_EndToEnd" ], "title": "_DPCountryPWF-Del", "business_key": { "hierarchy": true, "unique": [ "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/ProvisioningWorkflow/5ad5b52caffa9343e4d93656/", "pkid": "5ad5b52caffa9343e4d93656" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5b52caffa9343e4d93656" ], "system_resource": true, "schema_version": "0.6.0", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/ProvisioningWorkflow/5ad5b52caffa9343e4d93656/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/ProvisioningWorkflow/5ad5b52caffa9343e4d93656/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/ProvisioningWorkflow/5ad5b52caffa9343e4d93656/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/ProvisioningWorkflow/5ad5b52caffa9343e4d93656/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/ProvisioningWorkflow/5ad5b52caffa9343e4d93656/+tag/", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/ProvisioningWorkflow/5ad5b52caffa9343e4d93656/+tag_version/", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "method": "POST", "class": "execute", "href": "/api/data/ProvisioningWorkflow/5ad5b52caffa9343e4d93656/execute/", "support_async": true, "title": "Execute" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/ProvisioningWorkflow/5ad5b52caffa9343e4d93656/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/ProvisioningWorkflow/5ad5b52caffa9343e4d93656/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5ad5b52caffa9343e4d93656" }, { "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": "5ad5b52aaffa9343e4d93601", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" }, "meta": { "model_type": "data/ProvisioningWorkflow", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [ "feature_tag_add_dialplan", "V4UC", "ba_EndToEnd" ], "title": "_DPCucmPWF", "business_key": { "hierarchy": true, "unique": [ "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/ProvisioningWorkflow/5ad5b52aaffa9343e4d935f4/", "pkid": "5ad5b52aaffa9343e4d935f4" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5b52aaffa9343e4d935f4" ], "system_resource": true, "schema_version": "0.6.0", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/ProvisioningWorkflow/5ad5b52aaffa9343e4d935f4/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/ProvisioningWorkflow/5ad5b52aaffa9343e4d935f4/", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/ProvisioningWorkflow/5ad5b52aaffa9343e4d935f4/clone/?schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/ProvisioningWorkflow/5ad5b52aaffa9343e4d935f4/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/data/ProvisioningWorkflow/5ad5b52aaffa9343e4d935f4/+tag/", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/data/ProvisioningWorkflow/5ad5b52aaffa9343e4d935f4/+tag_version/", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/" } }, { "execute": { "method": "POST", "class": "execute", "href": "/api/data/ProvisioningWorkflow/5ad5b52aaffa9343e4d935f4/execute/", "support_async": true, "title": "Execute" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/ProvisioningWorkflow/5ad5b52aaffa9343e4d935f4/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/ProvisioningWorkflow/5ad5b52aaffa9343e4d935f4/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5ad5b52aaffa9343e4d935f4" } ] }
(Show the first instance)
{ "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": "5ad5b52baffa9343e4d9362d" }, "meta": { "model_type": "data/ProvisioningWorkflow", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [ "feature_tag_add_dialplan", "V4UC", "ba_EndToEnd" ], "title": "_DPCountryPWF", "business_key": { "unique": [ "name" ], "hierarchy": true }, "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/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/", "pkid": "5ad5b52baffa9343e4d93620" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5ad5b52baffa9343e4d93620" ], "system_resource": true, "schema_version": "0.6.0", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/?hierarchy=[hierarchy]", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/?hierarchy=[hierarchy]", "support_async": true, "title": "Delete" } }, { "clone": { "method": "GET", "class": "clone", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/clone/?hierarchy=[hierarchy]&schema=&schema_rules=true", "support_async": false, "title": "Clone" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/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/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/+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/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/+tag_version/?hierarchy=[hierarchy]", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "execute": { "method": "POST", "class": "execute", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/execute/?hierarchy=[hierarchy]", "support_async": true, "title": "Execute" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/?hierarchy=[hierarchy]", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/ProvisioningWorkflow/5ad5b52baffa9343e4d93620/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } } ] }, "pkid": "5ad5b52baffa9343e4d93620" }
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. |