[Index]
This relation wraps the device/cucm/TimePeriod element.
Model ref.: relation/HcsTimePeriodREL
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": { "dayOfMonth": { "title": "Day of Month", "minItems": 0, "required": false, "default": 0, "maxItems": 1, "type": "integer" }, "name": { "description": "Enter a name in the Time Period Name field. The name can comprise up to 50 alphanumeric characters and can contain any combination of spaces, periods (.), hyphens (-), and underscore characters (_). Ensure each time period name is unique to the plan. \n \n \n \n Note\u00a0\u00a0\u00a0 \n Use concise and descriptive names for your time periods. The hours_or_days format usually provides a sufficient level of detail and is short enough to enable you to quickly and easily identify a time period. For example, office_M_to_F identifies a time period for the business hours of an office from Monday to Friday. \n \n \n \n Cisco Unified Communications Manager provides the All the time\u00a0time period. This special, system time period includes all hours, is published to end users, and cannot be deleted; this time period can be copied. ", "title": "Name", "minItems": 1, "required": true, "maxItems": 1, "maxLength": 50, "type": "string" }, "endDay": { "title": "Day of Week End", "minItems": 0, "required": false, "choices": [ { "value": "Sun", "title": "Sun" }, { "value": "Mon", "title": "Mon" }, { "value": "Tue", "title": "Tue" }, { "value": "Wed", "title": "Wed" }, { "value": "Thu", "title": "Thu" }, { "value": "Fri", "title": "Fri" }, { "value": "Sat", "title": "Sat" }, { "value": "None", "title": "None" } ], "default": "None", "maxItems": 1, "type": "string" }, "startDay": { "title": "Day of Week Start", "minItems": 0, "required": false, "choices": [ { "value": "Sun", "title": "Sun" }, { "value": "Mon", "title": "Mon" }, { "value": "Tue", "title": "Tue" }, { "value": "Wed", "title": "Wed" }, { "value": "Thu", "title": "Thu" }, { "value": "Fri", "title": "Fri" }, { "value": "Sat", "title": "Sat" }, { "value": "None", "title": "None" } ], "default": "None", "maxItems": 1, "type": "string" }, "isPublished": { "description": "TimePeriod cannot be published if it has a todOwnerId assigned to it. Only Administrative Time Period can be published.", "title": "Is Published", "minItems": 0, "required": false, "maxItems": 1, "type": "boolean" }, "monthOfYearEnd": { "title": "Month of Year End", "minItems": 0, "required": false, "choices": [ { "value": "None", "title": "None" }, { "value": "Jan", "title": "Jan" }, { "value": "Feb", "title": "Feb" }, { "value": "Mar", "title": "Mar" }, { "value": "Apr", "title": "Apr" }, { "value": "May", "title": "May" }, { "value": "Jun", "title": "Jun" }, { "value": "Jul", "title": "Jul" }, { "value": "Aug", "title": "Aug" }, { "value": "Sep", "title": "Sep" }, { "value": "Oct", "title": "Oct" }, { "value": "Nov", "title": "Nov" }, { "value": "Dec", "title": "Dec" } ], "default": "None", "maxItems": 1, "type": "string" }, "monthOfYear": { "title": "Month Of Year", "minItems": 0, "required": false, "choices": [ { "value": "None", "title": "None" }, { "value": "Jan", "title": "Jan" }, { "value": "Feb", "title": "Feb" }, { "value": "Mar", "title": "Mar" }, { "value": "Apr", "title": "Apr" }, { "value": "May", "title": "May" }, { "value": "Jun", "title": "Jun" }, { "value": "Jul", "title": "Jul" }, { "value": "Aug", "title": "Aug" }, { "value": "Sep", "title": "Sep" }, { "value": "Oct", "title": "Oct" }, { "value": "Nov", "title": "Nov" }, { "value": "Dec", "title": "Dec" } ], "default": "None", "maxItems": 1, "type": "string" }, "startTime": { "description": "From the drop-down list box, choose the time when this time period starts. The available listed start times comprise 15-minute intervals throughout a 24-hour day. The default value is No Office Hours. \n \n \n \n Note\u00a0\u00a0\u00a0 \n To start a time period at midnight, choose the 00:00 value. \n \n \n ", "title": "Time Of Day Start", "minItems": 0, "required": false, "choices": [ { "value": "No Office Hours", "title": "No Office Hours" }, { "value": "00:00", "title": "00:00" }, { "value": "00:15", "title": "00:15" }, { "value": "00:30", "title": "00:30" }, { "value": "00:45", "title": "00:45" }, { "value": "01:00", "title": "01:00" }, { "value": "01:15", "title": "01:15" }, { "value": "01:30", "title": "01:30" }, { "value": "01:45", "title": "01:45" }, { "value": "02:00", "title": "02:00" }, { "value": "02:15", "title": "02:15" }, { "value": "02:30", "title": "02:30" }, { "value": "02:45", "title": "02:45" }, { "value": "03:00", "title": "03:00" }, { "value": "03:15", "title": "03:15" }, { "value": "03:30", "title": "03:30" }, { "value": "03:45", "title": "03:45" }, { "value": "04:00", "title": "04:00" }, { "value": "04:15", "title": "04:15" }, { "value": "04:30", "title": "04:30" }, { "value": "04:45", "title": "04:45" }, { "value": "05:00", "title": "05:00" }, { "value": "05:15", "title": "05:15" }, { "value": "05:30", "title": "05:30" }, { "value": "05:45", "title": "05:45" }, { "value": "06:00", "title": "06:00" }, { "value": "06:15", "title": "06:15" }, { "value": "06:30", "title": "06:30" }, { "value": "06:45", "title": "06:45" }, { "value": "07:00", "title": "07:00" }, { "value": "07:15", "title": "07:15" }, { "value": "07:30", "title": "07:30" }, { "value": "07:45", "title": "07:45" }, { "value": "08:00", "title": "08:00" }, { "value": "08:15", "title": "08:15" }, { "value": "08:30", "title": "08:30" }, { "value": "08:45", "title": "08:45" }, { "value": "09:00", "title": "09:00" }, { "value": "09:15", "title": "09:15" }, { "value": "09:30", "title": "09:30" }, { "value": "09:45", "title": "09:45" }, { "value": "10:00", "title": "10:00" }, { "value": "10:15", "title": "10:15" }, { "value": "10:30", "title": "10:30" }, { "value": "10:45", "title": "10:45" }, { "value": "11:00", "title": "11:00" }, { "value": "11:15", "title": "11:15" }, { "value": "11:30", "title": "11:30" }, { "value": "11:45", "title": "11:45" }, { "value": "12:00", "title": "12:00" }, { "value": "12:15", "title": "12:15" }, { "value": "12:30", "title": "12:30" }, { "value": "12:45", "title": "12:45" }, { "value": "13:00", "title": "13:00" }, { "value": "13:15", "title": "13:15" }, { "value": "13:30", "title": "13:30" }, { "value": "13:45", "title": "13:45" }, { "value": "14:00", "title": "14:00" }, { "value": "14:15", "title": "14:15" }, { "value": "14:30", "title": "14:30" }, { "value": "14:45", "title": "14:45" }, { "value": "15:00", "title": "15:00" }, { "value": "15:15", "title": "15:15" }, { "value": "15:30", "title": "15:30" }, { "value": "15:45", "title": "15:45" }, { "value": "16:00", "title": "16:00" }, { "value": "16:15", "title": "16:15" }, { "value": "16:30", "title": "16:30" }, { "value": "16:45", "title": "16:45" }, { "value": "17:00", "title": "17:00" }, { "value": "17:15", "title": "17:15" }, { "value": "17:30", "title": "17:30" }, { "value": "17:45", "title": "17:45" }, { "value": "18:00", "title": "18:00" }, { "value": "18:15", "title": "18:15" }, { "value": "18:30", "title": "18:30" }, { "value": "18:45", "title": "18:45" }, { "value": "19:00", "title": "19:00" }, { "value": "19:15", "title": "19:15" }, { "value": "19:30", "title": "19:30" }, { "value": "19:45", "title": "19:45" }, { "value": "20:00", "title": "20:00" }, { "value": "20:15", "title": "20:15" }, { "value": "20:30", "title": "20:30" }, { "value": "20:45", "title": "20:45" }, { "value": "21:00", "title": "21:00" }, { "value": "21:15", "title": "21:15" }, { "value": "21:30", "title": "21:30" }, { "value": "21:45", "title": "21:45" }, { "value": "22:00", "title": "22:00" }, { "value": "22:15", "title": "22:15" }, { "value": "22:30", "title": "22:30" }, { "value": "22:45", "title": "22:45" }, { "value": "23:00", "title": "23:00" }, { "value": "23:15", "title": "23:15" }, { "value": "23:30", "title": "23:30" }, { "value": "23:45", "title": "23:45" }, { "value": "24:00", "title": "24:00" } ], "default": "No Office Hours", "maxItems": 1, "type": "string" }, "dayOfMonthEnd": { "title": "Day of Month End", "minItems": 0, "required": false, "default": 0, "maxItems": 1, "type": "integer" }, "todOwnerIdName": { "target": "/api/device/cucm/User/choices/?field=userid&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "format": "uri", "minItems": 0, "required": false, "choices": [], "target_attr": "userid", "maxItems": 1, "target_model_type": "device/cucm/User", "title": "Tod Owner Id Name", "type": [ "string", "null" ] }, "endTime": { "description": "From the drop-down list box, choose the time when this time period ends. The available listed end times comprise 15-minute intervals throughout a 24-hour day. The default value is No Office Hours. \n \n \n \n Note\u00a0\u00a0\u00a0 \n You must choose an End Time that is later than the Start Time that you chose. \n \n \n \n \n \n \n Note\u00a0\u00a0\u00a0 \n To end a time period at midnight, choose the 24:00 value. \n \n \n ", "title": "Time of Day End", "minItems": 0, "required": false, "choices": [ { "value": "No Office Hours", "title": "No Office Hours" }, { "value": "00:00", "title": "00:00" }, { "value": "00:15", "title": "00:15" }, { "value": "00:30", "title": "00:30" }, { "value": "00:45", "title": "00:45" }, { "value": "01:00", "title": "01:00" }, { "value": "01:15", "title": "01:15" }, { "value": "01:30", "title": "01:30" }, { "value": "01:45", "title": "01:45" }, { "value": "02:00", "title": "02:00" }, { "value": "02:15", "title": "02:15" }, { "value": "02:30", "title": "02:30" }, { "value": "02:45", "title": "02:45" }, { "value": "03:00", "title": "03:00" }, { "value": "03:15", "title": "03:15" }, { "value": "03:30", "title": "03:30" }, { "value": "03:45", "title": "03:45" }, { "value": "04:00", "title": "04:00" }, { "value": "04:15", "title": "04:15" }, { "value": "04:30", "title": "04:30" }, { "value": "04:45", "title": "04:45" }, { "value": "05:00", "title": "05:00" }, { "value": "05:15", "title": "05:15" }, { "value": "05:30", "title": "05:30" }, { "value": "05:45", "title": "05:45" }, { "value": "06:00", "title": "06:00" }, { "value": "06:15", "title": "06:15" }, { "value": "06:30", "title": "06:30" }, { "value": "06:45", "title": "06:45" }, { "value": "07:00", "title": "07:00" }, { "value": "07:15", "title": "07:15" }, { "value": "07:30", "title": "07:30" }, { "value": "07:45", "title": "07:45" }, { "value": "08:00", "title": "08:00" }, { "value": "08:15", "title": "08:15" }, { "value": "08:30", "title": "08:30" }, { "value": "08:45", "title": "08:45" }, { "value": "09:00", "title": "09:00" }, { "value": "09:15", "title": "09:15" }, { "value": "09:30", "title": "09:30" }, { "value": "09:45", "title": "09:45" }, { "value": "10:00", "title": "10:00" }, { "value": "10:15", "title": "10:15" }, { "value": "10:30", "title": "10:30" }, { "value": "10:45", "title": "10:45" }, { "value": "11:00", "title": "11:00" }, { "value": "11:15", "title": "11:15" }, { "value": "11:30", "title": "11:30" }, { "value": "11:45", "title": "11:45" }, { "value": "12:00", "title": "12:00" }, { "value": "12:15", "title": "12:15" }, { "value": "12:30", "title": "12:30" }, { "value": "12:45", "title": "12:45" }, { "value": "13:00", "title": "13:00" }, { "value": "13:15", "title": "13:15" }, { "value": "13:30", "title": "13:30" }, { "value": "13:45", "title": "13:45" }, { "value": "14:00", "title": "14:00" }, { "value": "14:15", "title": "14:15" }, { "value": "14:30", "title": "14:30" }, { "value": "14:45", "title": "14:45" }, { "value": "15:00", "title": "15:00" }, { "value": "15:15", "title": "15:15" }, { "value": "15:30", "title": "15:30" }, { "value": "15:45", "title": "15:45" }, { "value": "16:00", "title": "16:00" }, { "value": "16:15", "title": "16:15" }, { "value": "16:30", "title": "16:30" }, { "value": "16:45", "title": "16:45" }, { "value": "17:00", "title": "17:00" }, { "value": "17:15", "title": "17:15" }, { "value": "17:30", "title": "17:30" }, { "value": "17:45", "title": "17:45" }, { "value": "18:00", "title": "18:00" }, { "value": "18:15", "title": "18:15" }, { "value": "18:30", "title": "18:30" }, { "value": "18:45", "title": "18:45" }, { "value": "19:00", "title": "19:00" }, { "value": "19:15", "title": "19:15" }, { "value": "19:30", "title": "19:30" }, { "value": "19:45", "title": "19:45" }, { "value": "20:00", "title": "20:00" }, { "value": "20:15", "title": "20:15" }, { "value": "20:30", "title": "20:30" }, { "value": "20:45", "title": "20:45" }, { "value": "21:00", "title": "21:00" }, { "value": "21:15", "title": "21:15" }, { "value": "21:30", "title": "21:30" }, { "value": "21:45", "title": "21:45" }, { "value": "22:00", "title": "22:00" }, { "value": "22:15", "title": "22:15" }, { "value": "22:30", "title": "22:30" }, { "value": "22:45", "title": "22:45" }, { "value": "23:00", "title": "23:00" }, { "value": "23:15", "title": "23:15" }, { "value": "23:30", "title": "23:30" }, { "value": "23:45", "title": "23:45" }, { "value": "24:00", "title": "24:00" } ], "default": "No Office Hours", "maxItems": 1, "type": "string" }, "shadow": { "items": { "type": "object", "properties": { "name": { "is_password": false, "title": "Name", "required": true, "displayable": false, "readonly": false, "maxLength": 1024, "type": "string" } } }, "type": "array", "maxItems": 1, "title": "Shadow" }, "description": { "description": "Enter a description for this time period. ", "title": "Description", "minItems": 0, "required": false, "maxItems": 1, "maxLength": 255, "type": "string" } }, "schema_version": "2.1" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the GUI Add form. | GET | /api/relation/HcsTimePeriodREL/add/ |
|
The GUI Add form of relation/HcsTimePeriodREL 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/relation/HcsTimePeriodREL/ | 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/relation/HcsTimePeriodREL/ | hierarchy=[hierarchy] | {"hrefs":["/api/relation/HcsTimePeriodREL/[pkid1]", "/api/relation/HcsTimePeriodREL/[pkid2]", ...]} |
GET http://[host-proxy]/api/relation/HcsTimePeriodREL/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Get a selected [export_format] of the schema and instances [pkid1], [pkid2],... of relation/HcsTimePeriodREL; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | POST | /api/relation/HcsTimePeriodREL/export/ |
|
{ "hrefs":["/api/relation/HcsTimePeriodREL/[pkid1]", "/api/relation/HcsTimePeriodREL/[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 relation/HcsTimePeriodREL and the JSON format can be used to import instances of relation/HcsTimePeriodREL.
GET http://[host-proxy]/api/relation/HcsTimePeriodREL/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a compressed format of the Bulk Load spreadsheet template for relation/HcsTimePeriodREL | POST | /api/relation/HcsTimePeriodREL/export_bulkload_template/ |
|
The response is an attachment of the format: filetype_bulkloadsheet.xlsx.gz |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
List | GET | /api/relation/HcsTimePeriodREL/ |
|
The relation/HcsTimePeriodREL schema and all instances as JSON. |
(The list will return 0 to 3 relation/HcsTimePeriodREL instances)
{ "operations": [ "field_display_policy", "configuration_template", "help", "get", "clone", "list", "update", "remove", "add", "bulk_update", "export", "export_bulkload_template" ], "pagination": { "direction": "asc", "order_by": "name", "maximum_limit": 2000, "skip": 0, "current": "/api/relation/HcsTimePeriodREL/?skip=0&limit=3&order_by=name&direction=asc&traversal=default", "limit": 3, "total_limit": null, "total": 16 }, "meta": { "tags": [], "cached": true, "title": "", "business_key": {}, "schema_version": "2.1", "references": { "device": [ { "pkid": "", "href": "" } ], "self": [ { "pkid": null, "href": "/api/relation/HcsTimePeriodREL/None/" } ], "children": [], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "actions": [ { "add": { "support_async": false, "class": "add", "href": "/api/relation/HcsTimePeriodREL/add/?hierarchy=[hierarchy]", "method": "GET", "title": "Add" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/relation/HcsTimePeriodREL/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/relation/HcsTimePeriodREL/export/?hierarchy=[hierarchy]", "method": "POST", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "export_bulkload_template": { "support_async": false, "class": "bulkload_template", "href": "/api/relation/HcsTimePeriodREL/export_bulkload_template/?hierarchy=[hierarchy]", "method": "POST", "title": "Export Bulk Load Template" } }, { "list": { "support_async": false, "class": "list", "href": "/api/relation/HcsTimePeriodREL/?hierarchy=[hierarchy]", "method": "GET", "title": "List" } }, { "help": { "support_async": false, "class": "help", "href": "/api/relation/HcsTimePeriodREL/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "relation/HcsTimePeriodREL", "model_specific_actions": [ "help", "get", "clone", "list", "update", "remove", "add", "export", "export_bulkload_template" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" }, { "allow_filtering": false, "name": "summary_device", "title": "Device" } ], "api_version": "20.1.1", "tagged_versions": [] }, "resources": [ { "pkid": "5fff5683ce894e001550648a", "meta": { "tags": [], "cached": true, "title": "All the time", "business_key": {}, "schema_version": "", "summary": "false", "references": { "owner": [ { "pkid": "" } ], "device": [ { "pkid": "5fff5677ce894e0015506295", "href": "/api/v0/data/CallManager/5fff5677ce894e0015506295" } ], "self": [ { "pkid": "5fff5683ce894e001550648a", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/" } ], "parent": [ { "pkid": "5fff560ace894e001550455c", "href": "/api/data/HierarchyNode/5fff560ace894e001550455c" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/clone/?schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "get": { "support_async": false, "class": "get", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/help", "method": "GET", "title": "Help" } } ], "model_type": "relation/HcsTimePeriodREL", "path": [ "6t0ggef2c0deab00hb595101", "5fff24a2ce894e0015f6de4e", "5fff560ace894e001550455c", "5fff5683ce894e001550648a" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" }, { "allow_filtering": false, "name": "summary_device", "title": "Device" } ], "api_version": "20.1.1", "tagged_versions": [] }, "data": { "endTime": "24:00", "dayOfMonth": 0, "name": "All the time", "hierarchy": "5fff560ace894e001550455c", "endDay": "Sat", "startDay": "Sun", "isPublished": false, "monthOfYearEnd": "None", "monthOfYear": "None", "startTime": "00:00", "dayOfMonthEnd": 0, "todOwnerIdName": null, "summary_device": "Shared CUCM, 192.168.100.17, 8443, hcs.CS-P", "hierarchy_friendly_name": "CS-P (Provider)", "hierarchy_path": "sys.hcs.CS-P" } }, { "pkid": "5fff56b9ce894e00155071d3", "meta": { "tags": [], "cached": true, "title": "All the time", "business_key": {}, "schema_version": "", "summary": "false", "references": { "device": [ { "pkid": "5fff56abce894e0015506e8c", "href": "/api/v0/data/CallManager/5fff56abce894e0015506e8c" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5fff56b9ce894e00155071d3", "href": "/api/relation/HcsTimePeriodREL/5fff56b9ce894e00155071d3/" } ], "parent": [ { "pkid": "5fff5657ce894e001550592f", "href": "/api/data/HierarchyNode/5fff5657ce894e001550592f" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "href": "/api/relation/HcsTimePeriodREL/5fff56b9ce894e00155071d3/", "title": "Modify", "class": "update", "method": "PUT" } }, { "remove": { "support_async": true, "href": "/api/relation/HcsTimePeriodREL/5fff56b9ce894e00155071d3/", "title": "Delete", "class": "delete", "method": "DELETE" } }, { "clone": { "support_async": false, "href": "/api/relation/HcsTimePeriodREL/5fff56b9ce894e00155071d3/clone/?schema=&schema_rules=true", "title": "Clone", "class": "clone", "method": "GET" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/relation/HcsTimePeriodREL/5fff56b9ce894e00155071d3/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "get": { "support_async": false, "href": "/api/relation/HcsTimePeriodREL/5fff56b9ce894e00155071d3/", "title": "Get", "class": "get", "method": "GET" } }, { "help": { "support_async": false, "href": "/api/relation/HcsTimePeriodREL/5fff56b9ce894e00155071d3/help", "title": "Help", "class": "help", "method": "GET" } } ], "model_type": "relation/HcsTimePeriodREL", "path": [ "6t0ggef2c0deab00hb595101", "5fff24a2ce894e0015f6de4e", "5fff560ace894e001550455c", "5fff5649ce894e001550558f", "5fff5657ce894e001550592f", "5fff56b9ce894e00155071d3" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" }, { "allow_filtering": false, "name": "summary_device", "title": "Device" } ], "api_version": "20.1.1", "tagged_versions": [] }, "data": { "endTime": "24:00", "dayOfMonth": 0, "name": "All the time", "endDay": "Sat", "startDay": "Sun", "isPublished": false, "monthOfYearEnd": "None", "monthOfYear": "None", "startTime": "00:00", "dayOfMonthEnd": 0, "todOwnerIdName": null, "summary_device": "Dedicated CUCM, 192.168.100.15, 8443, hcs.CS-P.CS-NB.AAAGlobal", "hierarchy_friendly_name": "AAAGlobal (Customer)", "hierarchy_path": "sys.hcs.CS-P.CS-NB.AAAGlobal" } }, { "pkid": "5fff570ece894e00155085ba", "meta": { "tags": [], "cached": true, "title": "All the time", "business_key": {}, "schema_version": "", "summary": "false", "references": { "device": [ { "pkid": "5fff56f3ce894e00155080b5", "href": "/api/v0/data/CallManager/5fff56f3ce894e00155080b5" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5fff570ece894e00155085ba", "href": "/api/relation/HcsTimePeriodREL/5fff570ece894e00155085ba/" } ], "parent": [ { "pkid": "5fff5657ce894e001550592f", "href": "/api/data/HierarchyNode/5fff5657ce894e001550592f" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "method": "PUT", "href": "/api/relation/HcsTimePeriodREL/5fff570ece894e00155085ba/", "class": "update", "title": "Modify" } }, { "remove": { "support_async": true, "method": "DELETE", "href": "/api/relation/HcsTimePeriodREL/5fff570ece894e00155085ba/", "class": "delete", "title": "Delete" } }, { "clone": { "support_async": false, "method": "GET", "href": "/api/relation/HcsTimePeriodREL/5fff570ece894e00155085ba/clone/?schema=&schema_rules=true", "class": "clone", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "method": "GET", "href": "/api/relation/HcsTimePeriodREL/5fff570ece894e00155085ba/export/", "class": "export", "view": "/api/view/ExportData/add/" } }, { "get": { "support_async": false, "method": "GET", "href": "/api/relation/HcsTimePeriodREL/5fff570ece894e00155085ba/", "class": "get", "title": "Get" } }, { "help": { "support_async": false, "method": "GET", "href": "/api/relation/HcsTimePeriodREL/5fff570ece894e00155085ba/help", "class": "help", "title": "Help" } } ], "model_type": "relation/HcsTimePeriodREL", "path": [ "6t0ggef2c0deab00hb595101", "5fff24a2ce894e0015f6de4e", "5fff560ace894e001550455c", "5fff5649ce894e001550558f", "5fff5657ce894e001550592f", "5fff570ece894e00155085ba" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" }, { "allow_filtering": false, "name": "summary_device", "title": "Device" } ], "api_version": "20.1.1", "tagged_versions": [] }, "data": { "endTime": "24:00", "dayOfMonth": 0, "name": "All the time", "endDay": "Sat", "startDay": "Sun", "isPublished": false, "monthOfYearEnd": "None", "monthOfYear": "None", "startTime": "00:00", "dayOfMonthEnd": 0, "todOwnerIdName": null, "summary_device": "Dedicated CUCM, 192.168.100.16, 8443, hcs.CS-P.CS-NB.AAAGlobal", "hierarchy_friendly_name": "AAAGlobal (Customer)", "hierarchy_path": "sys.hcs.CS-P.CS-NB.AAAGlobal" } } ] }
(Show the first instance)
{ "pkid": "5fff5683ce894e001550648a", "meta": { "tags": [], "cached": true, "cache_control_policy": "cache_then_device", "title": "All the time", "business_key": {}, "schema_version": "2.1", "references": { "device": [ { "pkid": "5fff5677ce894e0015506295", "href": "/api/v0/data/CallManager/5fff5677ce894e0015506295" } ], "self": [ { "pkid": "5fff5683ce894e001550648a", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/" } ], "children": [], "parent": [ { "pkid": "5fff560ace894e001550455c", "href": "/api/data/HierarchyNode/5fff560ace894e001550455c" } ] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/?hierarchy=[hierarchy]", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/clone/?hierarchy=[hierarchy]&schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/export/?hierarchy=[hierarchy]", "method": "GET", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "get": { "support_async": false, "class": "get", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/?hierarchy=[hierarchy]", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/relation/HcsTimePeriodREL/5fff5683ce894e001550648a/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "relation/HcsTimePeriodREL", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" }, { "allow_filtering": false, "name": "summary_device", "title": "Device" } ], "api_version": "20.1.1", "tagged_versions": [] }, "data": { "name": "All the time", "endDay": "Sat", "startDay": "Sun", "isPublished": false, "monthOfYearEnd": "None", "monthOfYear": "None", "startTime": "00:00", "dayOfMonthEnd": 0, "todOwnerIdName": null, "endTime": "24:00", "shadow": [], "dayOfMonth": 0 } }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for relation/HcsTimePeriodREL. | GET | /api/relation/HcsTimePeriodREL/help | hierarchy=[hierarchy] | On-line help of Model ref.: relation/HcsTimePeriodREL as HTML |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Modify | PUT | /api/relation/HcsTimePeriodREL/[pkid]/ | hierarchy=[hierarchy] | (For payload specification) |
For Bulk modification, refer to the Bulk Modify section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Delete | DELETE | /api/relation/HcsTimePeriodREL/[pkid]/ | hierarchy=[hierarchy] |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Clone instance with [pkid]. The schema rules are applied. | GET | /api/relation/HcsTimePeriodREL/[pkid]/clone/?schema=&schema_rules=true |
|
A JSON payload with:
|
GET http://[host-proxy]/api/relation/HcsTimePeriodREL/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a selected [export_format] of the schema and a single instance with [pkid] of relation/HcsTimePeriodREL; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | GET | /api/relation/HcsTimePeriodREL/[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 relation/HcsTimePeriodREL and the JSON format can be used to import instances of relation/HcsTimePeriodREL.
For Bulk Export, refer to the Bulk Export section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get | GET | /api/relation/HcsTimePeriodREL/[pkid]/ | hierarchy=[hierarchy] | The relation/HcsTimePeriodREL instance with [pkid]. |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/relation/HcsTimePeriodREL/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for relation/HcsTimePeriodREL. |