Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

OpenManage Enterprise Version 3.4 and OpenManage Enterprise - Modular Edition Version 1.20.00 RESTful API Guide

PDF

GET method for QueryContexts(Id)

This method returns the information for a specified Query Context.

Description
Returns the information for a specified Query Context.
Privilege
VIEW
HTTP response codes
200
Example Response Body
{
 "@odata.context": "/api/$metadata#QuerySupportService.QueryContext/$entity",
 "@odata.type": "#QuerySupportService.QueryContext",
 "@odata.id": "/api/QuerySupportService/QueryContexts(1)",
 "Id": 1,
 "Name": "Alerts",
 "Description": null,
 "BaseCategoryId": 2,
 "Tables":
  [
   {
    "Id": 5,
    "Name": "Device General Info",
    "Description": null,
    "ParentTableId": 1
   },
   {
    "Id": 4,
    "Name": "Alert Sub-Category",
    "Description": null,
    "ParentTableId": 2
   },
   {
    "Id": 1,
    "Name": "Alert",
    "Description": null,
    "ParentTableId": -1
   }
  ],
 "Fields": 
  [
   {
    "Id": 17,
    "Name": "Device Name",
    "TableId": 5,
    "Description": null,
    "FieldTypeId": 1,
    "StrMaxLen": 256,
    "EnumOpts": []
   },
   {
    "Id": 18,
    "Name": "Device Global Status",
    "TableId": 5,
    "Description": null,
    "FieldTypeId": 4,
    "StrMaxLen": 0,
    "EnumOpts": 
     [
      {
       "Id": 1000,
       "Name": "Normal"
      },
      {
       "Id": 2000,
       "Name": "Unknown"
      },
      {
       "Id": 3000,
       "Name": "Warning"
      },
      {
       "Id": 4000,
       "Name": "Critical"
      },
      {
       "Id": 5000,
       "Name": "No Status"
      }
     ]
    },
     {
      "Id": 19,
      "Name": "Device Model",
      "TableId": 5,
      "Description": null,
      "FieldTypeId": 1,
      "StrMaxLen": 256,
      "EnumOpts": []
     },
     {
      "Id": 20,
      "Name": "Device Service Tag",
      "TableId": 5,
      "Description": null,
      "FieldTypeId": 1,
      "StrMaxLen": 256,
      "EnumOpts": []
     },
     {
      "Id": 23,
      "Name": "Device Asset Tag",
      "TableId": 5,
      "Description": null,
      "FieldTypeId": 1,
      "StrMaxLen": 256,
      "EnumOpts": []
     },
     {
      "Id": 15,
      "Name": "Sub-Category Prefix",
      "TableId": 4,
      "Description": null,
      "FieldTypeId": 1,
      "StrMaxLen": 20,
      "EnumOpts": []
     },
     {
      "Id": 16,
      "Name": "Sub-Category Description",
      "TableId": 4,
      "Description": null,
      "FieldTypeId": 1,
      "StrMaxLen": 256,
      "EnumOpts": []
     },
     {
      "Id": 3,
      "Name": "Alert Status",
      "TableId": 1,
      "Description": null,
      "FieldTypeId": 4,
      "StrMaxLen": 0,
      "EnumOpts": 
       [
        {
         "Id": 1000,
         "Name": "Acknowledged"
        },
        {
         "Id": 2000,
         "Name": "Not Acknowledged"
        }
       ]
      },
      {
       "Id": 5,
       "Name": "Alert Message ID",
       "TableId": 1,
       "Description": null,
       "FieldTypeId": 1,
       "StrMaxLen": 256,
       "EnumOpts": []
       },
       {
        "Id": 2,
        "Name": "Alert Message",
        "TableId": 1,
        "Description": null,
        "FieldTypeId": 1,
        "StrMaxLen": 2048,
        "EnumOpts": []
       }
    ]
}

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\