[Index]
Model ref.: view/NumberInventoryRangeMgmtVIEW
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": { "extLen": { "is_password": false, "description": "Extension Length for the current Site", "title": "Extension Length", "minItems": 0, "required": false, "displayable": false, "readonly": true, "type": "string" }, "enforce_hcs_rules": { "default": "false", "type": "boolean", "title": "HCS Rules Enforced" }, "slcBased": { "is_password": false, "description": "Site Location Code Based true or false", "title": "Customer-Dialplan is SLC-based", "minItems": 0, "required": false, "displayable": false, "readonly": true, "type": "boolean" }, "tag": { "type": "string", "description": "Tag used for filtering INI numbers. This can be any free text to identify or comment a range of internal numbers.", "title": "Tag" }, "internal_number_type": { "choices": [ { "value": "DirectRouting", "title": "Direct Routing" }, { "value": "CallingPlan", "title": "Calling Plan" }, { "value": "OperatorConnect", "title": "Operator Connect" } ], "type": "string", "title": "Internal Number Type" }, "reservation_notes": { "type": "string", "title": "Reservation Notes" }, "operation": { "default": "Add", "choices": [ { "value": "Add", "title": "Add" }, { "value": "Modify", "title": "Modify" }, { "value": "Delete", "title": "Delete" } ], "type": "string", "description": "Select operation Add, Modify or Delete.", "title": "Operation" }, "description": { "type": "string", "description": "Description field", "title": "Description" }, "endNum": { "is_password": false, "description": "Ending Number for th DN Mgmt Range", "title": "Ending Extension", "minItems": 0, "pattern": "^(\\*|\\+|\\#|\\\\)?[0-9]*$", "required": false, "displayable": false, "readonly": false, "type": "string" }, "startNum": { "is_password": false, "description": "Starting Number for th DN Mgmt Range", "title": "Starting Extension", "minItems": 0, "pattern": "^(\\*|\\+|\\#|\\\\)?[0-9]*$", "required": true, "displayable": false, "readonly": false, "type": "string" }, "extra1": { "type": "string", "description": "Extra field 1", "title": "Extra1" }, "extra2": { "type": "string", "description": "Extra field 2", "title": "Extra2" }, "extra3": { "type": "string", "description": "Extra field 3", "title": "Extra3" }, "extra4": { "type": "string", "description": "Extra field 4", "title": "Extra4" }, "extra5": { "type": "string", "description": "Extra field 5", "title": "Extra5" }, "extra6": { "type": "string", "description": "Extra field 6", "title": "Extra6" }, "extra7": { "type": "string", "description": "Extra field 7", "title": "Extra7" }, "extra8": { "type": "string", "description": "Extra field 8", "title": "Extra8" }, "extra9": { "type": "string", "description": "Extra field 9", "title": "Extra9" }, "status": { "default": "Available", "choices": [ { "value": "Available", "title": "Available" }, { "value": "Reserved", "title": "Reserved" } ], "type": "string", "description": "Initial status to apply to each Number", "title": "Status" }, "vendor": { "choices": [ { "value": "Cisco", "title": "Cisco" }, { "value": "Microsoft", "title": "Microsoft" }, { "value": "Cisco, Microsoft", "title": "Cisco, Microsoft" }, { "value": "Webex Calling", "title": "Webex Calling" } ], "type": "string", "title": "Vendor" }, "site_hn": { "is_password": false, "description": "Please choose Site to Provision DNs. If site not specified, inventory will be added to the current hierarchy node if allowed.", "title": "Target Site", "minItems": 0, "required": false, "displayable": false, "choices": [ { "value": " ", "title": " " } ], "readonly": false, "type": "string" }, "isp": { "is_password": false, "description": "Inter-Site-Prefix (ISP) for the Customer", "title": "ISP", "minItems": 0, "required": false, "displayable": false, "readonly": true, "type": "string" }, "webex": { "items": { "attr_props": [], "choices": [] }, "choices": [], "type": "object", "properties": { "webexPush": { "readonly": false, "type": "boolean", "description": "Provision Numbers in the Webex Control Hub", "title": "Push Numbers to Webex" }, "webexPush_active": { "type": "boolean", "description": "Provision Numbers in the Webex Control Hub in ACTIVE state", "title": "Push as Active" }, "webexConfigured": { "readonly": true, "type": "boolean", "description": "Does the site meet the requirements for webex", "title": "Webex Configured" }, "site_hn_pkid": { "type": "string", "description": "PKID of site hierarchy", "title": "Site Hierarchy PKID" } }, "title": "Webex Control Hub" }, "e164number": { "type": "string", "description": "Number in E164 format", "title": "E164Number" }, "add_days": { "type": "string", "title": "Reservation duration (days)" }, "currentHierarchyNodeType": { "type": "string", "title": "Current Hierarchy Node Type (Informational)" }, "slc": { "is_password": false, "description": "Site Location Code for the current Site", "title": "Site Location Code", "minItems": 0, "required": false, "displayable": false, "readonly": true, "type": "string" } }, "schema_version": "1.2" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the GUI Add form. | GET | /api/view/NumberInventoryRangeMgmtVIEW/add/ |
|
The GUI Add form of view/NumberInventoryRangeMgmtVIEW 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/view/NumberInventoryRangeMgmtVIEW | hierarchy=[hierarchy] |
|
tool/Transaction/[trans pkid]shows the View resource has no instance pkid, because a view model stores no instances.
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Get a selected [export_format] of the schema and instances [pkid1], [pkid2],... of view/NumberInventoryRangeMgmtVIEW; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | POST | /api/view/NumberInventoryRangeMgmtVIEW/export/ |
|
{ "hrefs":["/api/view/NumberInventoryRangeMgmtVIEW/[pkid1]", "/api/view/NumberInventoryRangeMgmtVIEW/[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 view/NumberInventoryRangeMgmtVIEW and the JSON format can be used to import instances of view/NumberInventoryRangeMgmtVIEW.
GET http://[host-proxy]/api/view/NumberInventoryRangeMgmtVIEW/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a compressed format of the Bulk Load spreadsheet template for view/NumberInventoryRangeMgmtVIEW | POST | /api/view/NumberInventoryRangeMgmtVIEW/export_bulkload_template/ |
|
The response is an attachment of the format: filetype_bulkloadsheet.xlsx.gz |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for view/NumberInventoryRangeMgmtVIEW. | GET | /api/view/NumberInventoryRangeMgmtVIEW/help | hierarchy=[hierarchy] | On-line help of Model ref.: view/NumberInventoryRangeMgmtVIEW as HTML |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a selected [export_format] of the schema and a single instance with [pkid] of view/NumberInventoryRangeMgmtVIEW; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | GET | /api/view/NumberInventoryRangeMgmtVIEW/[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 view/NumberInventoryRangeMgmtVIEW and the JSON format can be used to import instances of view/NumberInventoryRangeMgmtVIEW.
For Bulk Export, refer to the Bulk Export section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/view/NumberInventoryRangeMgmtVIEW/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for view/NumberInventoryRangeMgmtVIEW. |