[Index]
Data model to capture Model list and instance counts under a certain hierarchy.
Model ref.: data/ModelReport
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": {
"title": {
"title": "Report Title",
"description": "Title of the report.",
"type": "string",
"readonly": false
},
"status": {
"title": "Status",
"description": "Running status.",
"type": "string",
"readonly": false
},
"timestamp": {
"title": "Time Stamp",
"type": "string",
"required": true,
"readonly": false
},
"data_models": {
"title": "DATA Models",
"description": "DATA Model instance count.",
"type": "array",
"readonly": false,
"items": {
"type": "object",
"properties": {
"modeltype": {
"title": "Model Type",
"description": "Model Type.",
"type": "string"
},
"count": {
"title": "Count",
"description": "Instance count of the model type.",
"type": "string"
}
}
}
},
"cucm_models": {
"title": "CUCM Models",
"description": "CUCM Model instance count.",
"type": "array",
"readonly": false,
"items": {
"type": "object",
"properties": {
"modeltype": {
"title": "Model Type",
"description": "Model Type.",
"type": "string"
},
"count": {
"title": "Count",
"description": "Instance count of the model type.",
"type": "string"
}
}
}
},
"cuc_models": {
"title": "CUC Models",
"description": "CUC Model instance count.",
"type": "array",
"readonly": false,
"items": {
"type": "object",
"properties": {
"modeltype": {
"title": "Model Type",
"description": "Model Type.",
"type": "string"
},
"count": {
"title": "Count",
"description": "Instance count of the model type.",
"type": "string"
}
}
}
},
"ldap_models": {
"title": "LDAP Models",
"description": "LDAP Model instance count.",
"type": "array",
"readonly": false,
"items": {
"type": "object",
"properties": {
"modeltype": {
"title": "Model Type",
"description": "Model Type.",
"type": "string"
},
"count": {
"title": "Count",
"description": "Instance count of the model type.",
"type": "string"
}
}
}
},
"id": {
"title": "ID",
"description": "Unique ID of the report.",
"type": "string",
"required": true,
"readonly": false
}
},
"schema_version": "1.0"
}
| Task | Call | URL | Parameters | Payload |
|---|---|---|---|---|
| Bulk delete [pkid1],[pkid2]... | DELETE | /api/data/ModelReport/ | hierarchy=[hierarchy] | {"hrefs":["/api/data/ModelReport/[pkid1]", "/api/data/ModelReport/[pkid2]", ...]} |
GET http://[host-proxy]/api/data/ModelReport/?hierarchy=[hierarchy]&format=json
| Task | Call | URL | Parameters | Response |
|---|---|---|---|---|
| List | GET | /api/data/ModelReport/ |
|
The data/ModelReport schema and all instances as JSON. |
(The list will return 0 to 3 data/ModelReport instances)
{
"pagination": {
"skip": 0,
"limit": 3,
"maximum_limit": 2000,
"total": 0,
"total_limit": null,
"order_by": "id",
"direction": "asc",
"current": "/api/data/ModelReport/?skip=0&limit=3&order_by=id&direction=asc&traversal=down"
},
"operations": [
"help",
"bulk_update_form",
"update",
"add",
"export",
"get",
"list",
"export_bulkload_template",
"migration",
"remove",
"move",
"transform",
"configuration_template",
"field_display_policy"
],
"meta": {
"model_type": "data/ModelReport",
"summary_attrs": [
{
"name": "id",
"title": "ID"
},
{
"name": "status",
"title": "Status"
},
{
"name": "timestamp",
"title": "Time Stamp"
},
{
"name": "hierarchy_friendly_name",
"title": "Located At",
"allow_filtering": true
}
],
"tagged_versions": [],
"tags": [],
"title": "",
"business_key": {},
"api_version": "21.2",
"cached": true,
"references": {
"children": [],
"parent": [
{
"href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101",
"pkid": "6t0ggef2c0deab00hb595101"
}
],
"device": [
{
"href": "",
"pkid": ""
}
],
"foreign_key": []
},
"model_specific_actions": [
"get",
"help",
"list",
"remove"
],
"schema_version": "1.0",
"actions": [
{
"remove": {
"method": "DELETE",
"class": "delete",
"href": "/api/data/ModelReport/?hierarchy=[hierarchy]",
"support_async": true,
"title": "Delete"
}
},
{
"list": {
"method": "GET",
"class": "list",
"href": "/api/data/ModelReport/?hierarchy=[hierarchy]",
"support_async": false,
"title": "List"
}
},
{
"help": {
"method": "GET",
"class": "help",
"href": "/api/data/ModelReport/help?hierarchy=[hierarchy]",
"support_async": false,
"title": "Help"
}
}
]
},
"resources": []
}
| Task | Call | URL | Parameters | Response |
|---|---|---|---|---|
| Get the on-line Help for data/ModelReport. | GET | /api/data/ModelReport/help | hierarchy=[hierarchy] | On-line help of Model ref.: data/ModelReport as HTML |
| Task | Call | URL | Parameters | Response |
|---|---|---|---|---|
| Delete | DELETE | /api/data/ModelReport/[pkid] | hierarchy=[hierarchy] |
| Task | Call | URL | Parameters | Response |
|---|---|---|---|---|
| Get | GET | /api/data/ModelReport/[pkid] | hierarchy=[hierarchy] | The data/ModelReport instance with [pkid]. |
| Task | Call | URL | Parameters | Response |
|---|---|---|---|---|
| Help | GET | /api/data/ModelReport/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for data/ModelReport. |