API Definition
Endpoint: JIRA_BASE_URL/rest/jip-api/1.0/index/query.json
Method: POST
Request Headers:
- Content-Type: application/json
- Authorization: Basic hash of user name and password. Example: Basic YWRtaW46YWRtaW4=
Post parameters
Parameter | Type | Example | Description |
---|---|---|---|
searchType | String | basic | Fixed value |
listType | String | detail | Fixed value |
genericKeyword | String | For advanced manual Lucene Query. Leave it null to use queryIndexSearchParams | |
queryIndexSearchParams | List of QueryIndexSearchParam | List of search criteria | |
pageNumber | Integer | 1 | Page number of the results. Results will return as paged. |
pageSize | Integer | 15 | Size of page |
sortDirection | String | asc / desc | asc or desc |
sortField | String | asset.name | Field to sort. Use system fields or attribute names. |
sortType | String | STRING | Use one of search field types. |
QueryIndexSearchParam
Parameter | Type | Example | Description |
---|---|---|---|
field | String | External System Id | Field to search. Attribute name or System Fields are valid. |
keyword | String | AB001 | Wildcard search is supported. i.e Tom* or Tom? |
keywords | List of String | ["AB", "XDVl", "DRR"] | Use this field for LIST, ALL_ASSETS_REF and ASSETS_REF_BY_FORM field types searches. |
minNum | Float | 1 or 10.5 | Use this field for LONG and DOUBLE field types. For exact search set range to false and use minNum field. |
maxNum | Float | 1 or 10.5 | Use this field for LONG and DOUBLE field types. For exact search set range to false and use minNum field and set maxNum to null |
minDate | String | 2019-05-29T11:49 or 2019-05-29 | Use this field for DATE and DATE_TIME field types. Use ISO time format. For exact search set range to false and use minDate field. |
maxDate | String | 2019-05-29T11:49 or 2019-05-29 | Use this field for DATE and DATE_TIME field types. Use ISO time format. For exact search set range to false and use minDate field and and set maxDate to null |
fieldType | String | STRING | One of Search Field Types |
range | boolean | true / false | For date and numeric RANGE searches. Set "false" for exact search. |
Search Field Types
Field Type (use capital case) | |
---|---|
LIST | List type of attributes |
STRING | Text field |
DATE | Date field without time |
DATE_TIME | Date field with time |
LONG | Numeric long value, i.e. 1001 |
DOUBLE | Numeric Double/Floeat value, i.e. 100.12 |
ALL_ASSETS_REF | Asset reference attribute type |
ASSETS_REF_BY_FORM | Asset reference filtered with asset type attribute type |
System Fields
These fields are available to search and sort.
System Field Name | Field Type | Description |
---|---|---|
asset.content | STRING | Any field. Search for any field including system fields and attributes. |
scheme.id | LONG | Asset type scheme id |
scheme.name | LIST | Asset type scheme name |
form.id | LONG | Asset type ID (formerly FORM) |
form.name | LIST | Asset type name (formerly FORM) |
asset.id | LONG | Asset ID |
asset.name | STRING | Asset name |
asset.attachment | STRING | Attachment file name (not content of the file) |
asset.creator | STRING | User name of the user how created asset. |
asset.created | DATE_TIME | Create date time of asset |
Examples:
For more examples, you can use Asset Navigator UI to search on screen and then inspect on page. Locate "query" Network call and see Request and Responses. So first do a screen search and find the real example meeting your system and fields.
Search for one String field
Request
{ "searchType": "basic", "listType": "detail", "genericKeyword": null, "queryIndexSearchParams": [ { "field": "External System Id", "keyword": "1012", "keywords": [], "fieldType": "STRING", "range": true } ], "pageNumber": 1, "pageSize": 15, "sortDirection": "asc", "sortField": "asset.name", "sortType": "STRING", "respTime": 1558685025363 }
Response
{ "queryIndexParam": { "searchType": "basic", "listType": "detail", "genericKeyword": null, "queryIndexSearchParams": [ { "field": "External System Id", "fieldLabel": null, "keyword": "1012", "keywords": [], "fieldType": "STRING", "minNum": null, "maxNum": null, "minDate": null, "maxDate": null, "range": true } ], "pageNumber": 1, "pageSize": 15, "sortDirection": "asc", "sortField": "asset.name", "sortType": "STRING", "respTime": 1558685031755 }, "recordIds": [ null ], "queryPagingInfo": { "pageRecordSize": 1, "totalRecords": 1, "totalPages": 1, "pageNumber": 1, "pageSize": 15, "hasNext": false }, "assets": [ { "id": 21, "name": "Printer002", "sortOrder": 0, "objectSchemaId": 1, "objectSchemaName": "Default Asset Scheme", "formId": 6, "formName": "Printers", "created": null, "createdFormatted": null, "creator": null, "attachments": "[ ]", "inventoryItems": [ { "value": "1012", "attributeName": "External System Id", "attributeType": "Text", "inventoryRefs": [], "multiListValues": [], "attributeId": 84, "id": 1207, "formAttributeId": 397, "displayValue": "1012", "textValues": "1012", "isoDateValue": null }, { "value": "12685-3434-4522-1335", "attributeName": "Serial Number", "attributeType": "Text", "inventoryRefs": [], "multiListValues": [], "attributeId": 7, "id": 153, "formAttributeId": 33, "displayValue": "12685-3434-4522-1335", "textValues": "12685-3434-4522-1335", "isoDateValue": null }, { "value": "HP", "attributeName": "Vendor", "attributeType": "DropdownList", "inventoryRefs": [], "multiListValues": [], "attributeId": 61, "id": 1209, "formAttributeId": 398, "displayValue": "HP", "textValues": "HP", "isoDateValue": null }, { "value": "HP 4665", "attributeName": "Model", "attributeType": "Text", "inventoryRefs": [], "multiListValues": [], "attributeId": 18, "id": 155, "formAttributeId": 35, "displayValue": "HP 4665", "textValues": "HP 4665", "isoDateValue": null } ], "customfieldId": "customfield_10100", "optionId": 10303, "inventoryItemListSize": 4 } ] }
Search for Asset Type Scheme, Asset Type, Asset Name, Asset ID
Request
{ "searchType": "basic", "listType": "detail", "genericKeyword": null, "queryIndexSearchParams": [ { "field": "asset.id", "keyword": "", "keywords": [], "fieldType": "LONG", "minNum": 1, "maxNum": 200, "minDate": null, "maxDate": null, "range": true }, { "field": "asset.name", "keyword": "tom*", "keywords": null, "fieldType": "STRING", "minNum": null, "maxNum": null, "minDate": null, "maxDate": null, "range": false }, { "field": "form.name", "keyword": null, "keywords": [ "Servers" ], "fieldType": "LIST", "minNum": null, "maxNum": null, "minDate": null, "maxDate": null, "range": false }, { "field": "scheme.name", "keywords": [ "Default Asset Scheme" ], "fieldType": "LIST" } ], "pageNumber": 1, "pageSize": 15, "sortDirection": "asc", "sortField": "asset.name", "sortType": "STRING", "respTime": 1558688161063 }
Reponse
{ "queryIndexParam" : { "searchType" : "basic", "listType" : "detail", "genericKeyword" : null, "queryIndexSearchParams" : [ { "field" : "asset.id", "fieldLabel" : null, "keyword" : "", "keywords" : [ ], "fieldType" : "LONG", "minNum" : 1.0, "maxNum" : 200.0, "minDate" : null, "maxDate" : null, "range" : true }, { "field" : "asset.name", "fieldLabel" : null, "keyword" : "tom*", "keywords" : null, "fieldType" : "STRING", "minNum" : null, "maxNum" : null, "minDate" : null, "maxDate" : null, "range" : false }, { "field" : "form.name", "fieldLabel" : null, "keyword" : null, "keywords" : [ "Servers" ], "fieldType" : "LIST", "minNum" : null, "maxNum" : null, "minDate" : null, "maxDate" : null, "range" : false }, { "field" : "scheme.name", "fieldLabel" : null, "keyword" : null, "keywords" : [ "Default Asset Scheme" ], "fieldType" : "LIST", "minNum" : null, "maxNum" : null, "minDate" : null, "maxDate" : null, "range" : false } ], "pageNumber" : 1, "pageSize" : 15, "sortDirection" : "asc", "sortField" : "asset.name", "sortType" : "STRING", "respTime" : 1558688165409 }, "recordIds" : [ null, null, null ], "queryPagingInfo" : { "pageRecordSize" : 3, "totalRecords" : 3, "totalPages" : 1, "pageNumber" : 1, "pageSize" : 15, "hasNext" : false }, "assets" : [{ "id" : 1, "name" : "Alpha Tomcat Server", "sortOrder" : 0, "objectSchemaId" : 1, "objectSchemaName" : "Default Asset Scheme", "formId" : 2, "formName" : "Servers", "created" : null, "createdFormatted" : null, "creator" : null, "attachments" : "[ {\n \"originalFileName\" : \"ombMnU6umGQ.jpg\",\n \"serverFileName\" : \"13307_43813_1556782191293.jpg\",\n \"fileSize\" : \"71 KB\",\n \"created\" : \"02/May/19 10:29 AM\",\n \"creator\" : \"admin\"\n} ]", "inventoryItems" : [ { "value" : "cyrus", "attributeName" : "Server Name", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 5, "id" : 1, "formAttributeId" : 6, "displayValue" : "cyrus", "textValues" : "cyrus", "isoDateValue" : null }, { "value" : "1254-4432-3455-6642", "attributeName" : "Serial Number", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 7, "id" : 3, "formAttributeId" : 8, "displayValue" : "1254-4432-3455-6642", "textValues" : "1254-4432-3455-6642", "isoDateValue" : null }, { "value" : "10.10.13.21", "attributeName" : "IP", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 6, "id" : 2, "formAttributeId" : 7, "displayValue" : "10.10.13.21", "textValues" : "10.10.13.21", "isoDateValue" : null } ], "customfieldId" : "customfield_10100", "optionId" : 10111, "inventoryItemListSize" : 3 },{ "id" : 2, "name" : "Beta Tomcat Server", "sortOrder" : 0, "objectSchemaId" : 1, "objectSchemaName" : "Default Asset Scheme", "formId" : 2, "formName" : "Servers", "created" : null, "createdFormatted" : null, "creator" : null, "attachments" : null, "inventoryItems" : [ { "value" : "zeus", "attributeName" : "Server Name", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 5, "id" : 4, "formAttributeId" : 6, "displayValue" : "zeus", "textValues" : "zeus", "isoDateValue" : null }, { "value" : "2344-4321-5354-5413", "attributeName" : "Serial Number", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 7, "id" : 6, "formAttributeId" : 8, "displayValue" : "2344-4321-5354-5413", "textValues" : "2344-4321-5354-5413", "isoDateValue" : null }, { "value" : "10.10.13.22", "attributeName" : "IP", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 6, "id" : 5, "formAttributeId" : 7, "displayValue" : "10.10.13.22", "textValues" : "10.10.13.22", "isoDateValue" : null } ], "customfieldId" : "customfield_10100", "optionId" : 10112, "inventoryItemListSize" : 3 },{ "id" : 3, "name" : "Prod Tomcat Server", "sortOrder" : 0, "objectSchemaId" : 1, "objectSchemaName" : "Default Asset Scheme", "formId" : 2, "formName" : "Servers", "created" : null, "createdFormatted" : null, "creator" : null, "attachments" : null, "inventoryItems" : [ { "value" : "apollon", "attributeName" : "Server Name", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 5, "id" : 7, "formAttributeId" : 6, "displayValue" : "apollon", "textValues" : "apollon", "isoDateValue" : null }, { "value" : "9989-2838-3434-8787", "attributeName" : "Serial Number", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 7, "id" : 9, "formAttributeId" : 8, "displayValue" : "9989-2838-3434-8787", "textValues" : "9989-2838-3434-8787", "isoDateValue" : null }, { "value" : "10.10.13.23", "attributeName" : "IP", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 6, "id" : 8, "formAttributeId" : 7, "displayValue" : "10.10.13.23", "textValues" : "10.10.13.23", "isoDateValue" : null } ], "customfieldId" : "customfield_10100", "optionId" : 10109, "inventoryItemListSize" : 3 }] }
Search for any field including all attributes and system fields
Request
{ "searchType": "basic", "listType": "detail", "genericKeyword": null, "queryIndexSearchParams": [ { "field": "asset.content", "keyword": "tom*", "fieldType": "STRING" } ], "pageNumber": 1, "pageSize": 15, "sortDirection": "asc", "sortField": "asset.name", "sortType": "STRING", "respTime": 1558688449556 }
Response
{ "queryIndexParam" : { "searchType" : "basic", "listType" : "detail", "genericKeyword" : null, "queryIndexSearchParams" : [ { "field" : "asset.content", "fieldLabel" : null, "keyword" : "tom*", "keywords" : null, "fieldType" : "STRING", "minNum" : null, "maxNum" : null, "minDate" : null, "maxDate" : null, "range" : false } ], "pageNumber" : 1, "pageSize" : 15, "sortDirection" : "asc", "sortField" : "asset.name", "sortType" : "STRING", "respTime" : 1558688452519 }, "recordIds" : [ null, null, null, null, null, null ], "queryPagingInfo" : { "pageRecordSize" : 6, "totalRecords" : 6, "totalPages" : 1, "pageNumber" : 1, "pageSize" : 15, "hasNext" : false }, "assets" : [{ "id" : 83, "name" : "*tunca", "sortOrder" : 0, "objectSchemaId" : 1, "objectSchemaName" : "Default Asset Scheme", "formId" : 25, "formName" : "Assets with all type of fields", "created" : 1556635656863, "createdFormatted" : "30/Apr/19 5:47 PM", "creator" : "admin", "attachments" : "[ {\n \"originalFileName\" : \"V-YMg2ds8ZA.jpg\",\n \"serverFileName\" : \"88678_69772_1556635701800.jpg\",\n \"fileSize\" : \"198 KB\",\n \"created\" : \"30/Apr/19 5:48 PM\",\n \"creator\" : \"admin\"\n}, {\n \"originalFileName\" : \"B5PNmw5XSpk.jpg\",\n \"serverFileName\" : \"36255_99478_1556635701801.jpg\",\n \"fileSize\" : \"216 KB\",\n \"created\" : \"30/Apr/19 5:48 PM\",\n \"creator\" : \"admin\"\n}, {\n \"originalFileName\" : \"mdJ3qu-GRhw.jpg\",\n \"serverFileName\" : \"39051_38165_1556635701802.jpg\",\n \"fileSize\" : \"492 KB\",\n \"created\" : \"30/Apr/19 5:48 PM\",\n \"creator\" : \"admin\"\n} ]", "inventoryItems" : [ { "value" : "a1 text here", "attributeName" : "2 text", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 79, "id" : 646, "formAttributeId" : 227, "displayValue" : "a1 text here", "textValues" : "a1 text here", "isoDateValue" : null }, { "value" : "", "attributeName" : "2 asset list", "attributeType" : "InventoryList", "inventoryRefs" : [ { "id" : 1, "name" : "Alpha Tomcat Server" }, { "id" : 5, "name" : "John Sober's Computer" }, { "id" : 80, "name" : "L2" } ], "multiListValues" : [ ], "attributeId" : 65, "id" : 632, "formAttributeId" : 213, "displayValue" : "<a style=\"font-size: 100%\" href=\"http://localhost:2990/jira/secure/DashboardAIPAction!default.jspa#/browse/1\">Alpha Tomcat Server</a>, <a style=\"font-size: 100%\" href=\"http://localhost:2990/jira/secure/DashboardAIPAction!default.jspa#/browse/5\">John Sober's Computer</a>, <a style=\"font-size: 100%\" href=\"http://localhost:2990/jira/secure/DashboardAIPAction!default.jspa#/browse/80\">L2</a>", "textValues" : "Alpha Tomcat Server;John Sober's Computer;L2", "isoDateValue" : null }, { "value" : "", "attributeName" : "2 asset list by asset types", "attributeType" : "InventoryListByForm", "inventoryRefs" : [ { "id" : 27, "name" : "Fred Fenster" }, { "id" : 36, "name" : "Keyboard0002" } ], "multiListValues" : [ ], "attributeId" : 66, "id" : 633, "formAttributeId" : 214, "displayValue" : "<a style=\"font-size: 100%\" href=\"http://localhost:2990/jira/secure/DashboardAIPAction!default.jspa#/browse/27\">Fred Fenster</a>, <a style=\"font-size: 100%\" href=\"http://localhost:2990/jira/secure/DashboardAIPAction!default.jspa#/browse/36\">Keyboard0002</a>", "textValues" : "Fred Fenster;Keyboard0002", "isoDateValue" : null }, { "value" : "30/Apr/19", "attributeName" : "2 date picker", "attributeType" : "DatePicker", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 68, "id" : 635, "formAttributeId" : 216, "displayValue" : "30/Apr/19", "textValues" : "30/Apr/19", "isoDateValue" : "2019-04-30" }, { "value" : "30/Apr/23 5:40 PM", "attributeName" : "2 date time picker", "attributeType" : "DatetimePicker", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 69, "id" : 636, "formAttributeId" : 217, "displayValue" : "30/Apr/23 5:40 PM", "textValues" : "30/Apr/23 5:40 PM", "isoDateValue" : "2023-04-30T17:40" }, { "value" : "1.1.1.1.1", "attributeName" : "2 IP", "attributeType" : "IP", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 71, "id" : 638, "formAttributeId" : 219, "displayValue" : "1.1.1.1.1", "textValues" : "1.1.1.1.1", "isoDateValue" : null }, { "value" : "2.2.2.3", "attributeName" : "2 IPv6", "attributeType" : "IPv6", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 72, "id" : 639, "formAttributeId" : 220, "displayValue" : "2.2.2.3", "textValues" : "2.2.2.3", "isoDateValue" : null }, { "value" : "admin", "attributeName" : "2 Jira User Picker", "attributeType" : "UserPicker", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 73, "id" : 640, "formAttributeId" : 221, "displayValue" : "admin", "textValues" : "admin", "isoDateValue" : null }, { "value" : "", "attributeName" : "2 Checkbox", "attributeType" : "CheckboxList", "inventoryRefs" : [ ], "multiListValues" : [ "ada", "bur", "ist" ], "attributeId" : 67, "id" : 634, "formAttributeId" : 215, "displayValue" : "ada, bur, ist", "textValues" : "ada;bur;ist", "isoDateValue" : null }, { "value" : "radiohead", "attributeName" : "2 radio", "attributeType" : "RadioButtonList", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 78, "id" : 645, "formAttributeId" : 226, "displayValue" : "radiohead", "textValues" : "radiohead", "isoDateValue" : null }, { "value" : "ada", "attributeName" : "2 drop down list", "attributeType" : "DropdownList", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 70, "id" : 637, "formAttributeId" : 218, "displayValue" : "ada", "textValues" : "ada", "isoDateValue" : null }, { "value" : "tol", "attributeName" : "2 list box", "attributeType" : "ListBox", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 74, "id" : 641, "formAttributeId" : 222, "displayValue" : "tol", "textValues" : "tol", "isoDateValue" : null }, { "value" : "", "attributeName" : "2 list box multiple", "attributeType" : "ListBoxMultiple", "inventoryRefs" : [ ], "multiListValues" : [ "ada", "bal" ], "attributeId" : 75, "id" : 642, "formAttributeId" : 223, "displayValue" : "ada, bal", "textValues" : "ada;bal", "isoDateValue" : null }, { "value" : "1001", "attributeName" : "2 number float", "attributeType" : "NumberFloat", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 76, "id" : 643, "formAttributeId" : 224, "displayValue" : "1001", "textValues" : "1001", "isoDateValue" : null }, { "value" : "101", "attributeName" : "2 number long", "attributeType" : "NumberLong", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 77, "id" : 644, "formAttributeId" : 225, "displayValue" : "101", "textValues" : "101", "isoDateValue" : null }, { "value" : "https://mail.google.com/mail/u/0/", "attributeName" : "2 url", "attributeType" : "URL", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 81, "id" : 648, "formAttributeId" : 229, "displayValue" : "<a style=\"font-size: 100%\" href=\"https://mail.google.com/mail/u/0/\" target=\"_blank\">https://mail.google.com/mail/u/0/</a>", "textValues" : "https://mail.google.com/mail/u/0/", "isoDateValue" : null }, { "value" : "I'm sorry, but besides the official documentation here I don't have anything on my own.\nDo you have any specific issues?\n\nMy biggest issue was how to actually create the objects and import configuration, so what I did at first was to let Insight automatically (try) to create the appropriate Insight objects and import configuration.\n\nDepending on the size of your LPAD infrastructure this may take quite some time and maybe even fail (as it happened to me).\n\nI attached you two screenshots of my configuration where I import information from our LDAP to a user object (called \"Benutzer\"), hope this may already be of help.", "attributeName" : "2 text area", "attributeType" : "TextArea", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 80, "id" : 647, "formAttributeId" : 228, "displayValue" : "I'm sorry, but besides the official documentation here I don't have anything on my own.\nDo you have any specific issues?\n\nMy biggest issue was how to actually create the objects and import configuration, so what I did at first was to let Insight automatically (try) to create the appropriate Insight objects and import configuration.\n\nDepending on the size of your LPAD infrastructure this may take quite some time and maybe even fail (as it happened to me).\n\nI attached you two screenshots of my configuration where I import information from our LDAP to a user object (called \"Benutzer\"), hope this may already be of help.", "textValues" : "I'm sorry, but besides the official documentation here I don't have anything on my own.\nDo you have any specific issues?\n\nMy biggest issue was how to actually create the objects and import configuration, so what I did at first was to let Insight automatically (try) to create the appropriate Insight objects and import configuration.\n\nDepending on the size of your LPAD infrastructure this may take quite some time and maybe even fail (as it happened to me).\n\nI attached you two screenshots of my configuration where I import information from our LDAP to a user object (called \"Benutzer\"), hope this may already be of help.", "isoDateValue" : null } ], "customfieldId" : null, "optionId" : null, "inventoryItemListSize" : 17 },{ "id" : 65, "name" : "Alpha Tomcat Server", "sortOrder" : 0, "objectSchemaId" : 2, "objectSchemaName" : "IT Assets Scheme", "formId" : 17, "formName" : "Server", "created" : 1556621499951, "createdFormatted" : "30/Apr/19 1:51 PM", "creator" : "admin", "attachments" : null, "inventoryItems" : [ { "value" : "cyrus2", "attributeName" : "Server Name", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 5, "id" : 511, "formAttributeId" : 138, "displayValue" : "cyrus2", "textValues" : "cyrus2", "isoDateValue" : null }, { "value" : "1254-4432-3455-6642", "attributeName" : "Serial Number", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 7, "id" : 512, "formAttributeId" : 139, "displayValue" : "1254-4432-3455-6642", "textValues" : "1254-4432-3455-6642", "isoDateValue" : null }, { "value" : null, "attributeName" : "Operating System", "attributeType" : "DropdownList", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 50, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Vendor", "attributeType" : "DropdownList", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 61, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : "PowerEdge T130 Server", "attributeName" : "Model", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 18, "id" : 513, "formAttributeId" : 142, "displayValue" : "PowerEdge T130 Server", "textValues" : "PowerEdge T130 Server", "isoDateValue" : null }, { "value" : "4/Apr/17", "attributeName" : "Date of Purchase", "attributeType" : "DatePicker", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 17, "id" : 514, "formAttributeId" : 143, "displayValue" : "4/Apr/17", "textValues" : "4/Apr/17", "isoDateValue" : "2017-04-04" }, { "value" : "4/Apr/19", "attributeName" : "Warranty Expiration Date", "attributeType" : "DatePicker", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 62, "id" : 515, "formAttributeId" : 144, "displayValue" : "4/Apr/19", "textValues" : "4/Apr/19", "isoDateValue" : "2019-04-04" }, { "value" : null, "attributeName" : "Device Status", "attributeType" : "ListBox", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 27, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Server Type", "attributeType" : "ListBox", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 54, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : "Intel Xeon E3-1280 v6 3.9GHz, 8M cache, 4C/8T, turbo (72W)", "attributeName" : "CPU", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 10, "id" : 516, "formAttributeId" : 147, "displayValue" : "Intel Xeon E3-1280 v6 3.9GHz, 8M cache, 4C/8T, turbo (72W)", "textValues" : "Intel Xeon E3-1280 v6 3.9GHz, 8M cache, 4C/8T, turbo (72W)", "isoDateValue" : null }, { "value" : "10.10.13.21", "attributeName" : "IP", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 6, "id" : 517, "formAttributeId" : 148, "displayValue" : "10.10.13.21", "textValues" : "10.10.13.21", "isoDateValue" : null }, { "value" : "12:12:12:12", "attributeName" : "MAC Address", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 16, "id" : 518, "formAttributeId" : 149, "displayValue" : "12:12:12:12", "textValues" : "12:12:12:12", "isoDateValue" : null }, { "value" : "1TB", "attributeName" : "Memory", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 11, "id" : 519, "formAttributeId" : 150, "displayValue" : "1TB", "textValues" : "1TB", "isoDateValue" : null }, { "value" : null, "attributeName" : "Storage Type", "attributeType" : "ListBox", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 19, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : "10TB", "attributeName" : "Storage Size", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 56, "id" : 520, "formAttributeId" : 152, "displayValue" : "10TB", "textValues" : "10TB", "isoDateValue" : null }, { "value" : "123123123123", "attributeName" : "AssetTag", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 21, "id" : 521, "formAttributeId" : 153, "displayValue" : "123123123123", "textValues" : "123123123123", "isoDateValue" : null } ], "customfieldId" : null, "optionId" : 13359, "inventoryItemListSize" : 16 },{ "id" : 1, "name" : "Alpha Tomcat Server", "sortOrder" : 0, "objectSchemaId" : 1, "objectSchemaName" : "Default Asset Scheme", "formId" : 2, "formName" : "Servers", "created" : null, "createdFormatted" : null, "creator" : null, "attachments" : "[ {\n \"originalFileName\" : \"ombMnU6umGQ.jpg\",\n \"serverFileName\" : \"13307_43813_1556782191293.jpg\",\n \"fileSize\" : \"71 KB\",\n \"created\" : \"02/May/19 10:29 AM\",\n \"creator\" : \"admin\"\n} ]", "inventoryItems" : [ { "value" : "cyrus", "attributeName" : "Server Name", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 5, "id" : 1, "formAttributeId" : 6, "displayValue" : "cyrus", "textValues" : "cyrus", "isoDateValue" : null }, { "value" : "1254-4432-3455-6642", "attributeName" : "Serial Number", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 7, "id" : 3, "formAttributeId" : 8, "displayValue" : "1254-4432-3455-6642", "textValues" : "1254-4432-3455-6642", "isoDateValue" : null }, { "value" : "10.10.13.21", "attributeName" : "IP", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 6, "id" : 2, "formAttributeId" : 7, "displayValue" : "10.10.13.21", "textValues" : "10.10.13.21", "isoDateValue" : null } ], "customfieldId" : "customfield_10100", "optionId" : 10111, "inventoryItemListSize" : 3 },{ "id" : 2, "name" : "Beta Tomcat Server", "sortOrder" : 0, "objectSchemaId" : 1, "objectSchemaName" : "Default Asset Scheme", "formId" : 2, "formName" : "Servers", "created" : null, "createdFormatted" : null, "creator" : null, "attachments" : null, "inventoryItems" : [ { "value" : "zeus", "attributeName" : "Server Name", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 5, "id" : 4, "formAttributeId" : 6, "displayValue" : "zeus", "textValues" : "zeus", "isoDateValue" : null }, { "value" : "2344-4321-5354-5413", "attributeName" : "Serial Number", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 7, "id" : 6, "formAttributeId" : 8, "displayValue" : "2344-4321-5354-5413", "textValues" : "2344-4321-5354-5413", "isoDateValue" : null }, { "value" : "10.10.13.22", "attributeName" : "IP", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 6, "id" : 5, "formAttributeId" : 7, "displayValue" : "10.10.13.22", "textValues" : "10.10.13.22", "isoDateValue" : null } ], "customfieldId" : "customfield_10100", "optionId" : 10112, "inventoryItemListSize" : 3 },{ "id" : 150, "name" : "Copy of Copy of a1", "sortOrder" : 0, "objectSchemaId" : 1, "objectSchemaName" : "Default Asset Scheme", "formId" : 25, "formName" : "Assets with all type of fields", "created" : 1557999774797, "createdFormatted" : "16/May/19 12:42 PM", "creator" : "tuncay", "attachments" : "[{\"originalFileName\":\"UrmhoKEpn7k.jpg\",\"serverFileName\":\"20603_54226_1557999773391.jpg\",\"fileSize\":\"390 KB\",\"created\":\"16/May/19 12:42 PM\",\"creator\":\"admin\"}]", "inventoryItems" : [ { "value" : "a1 text here", "attributeName" : "2 text", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 79, "id" : 1187, "formAttributeId" : 227, "displayValue" : "a1 text here", "textValues" : "a1 text here", "isoDateValue" : null }, { "value" : "", "attributeName" : "2 asset list", "attributeType" : "InventoryList", "inventoryRefs" : [ { "id" : 1, "name" : "Alpha Tomcat Server" } ], "multiListValues" : [ ], "attributeId" : 65, "id" : 1173, "formAttributeId" : 213, "displayValue" : "<a style=\"font-size: 100%\" href=\"http://localhost:2990/jira/secure/DashboardAIPAction!default.jspa#/browse/1\">Alpha Tomcat Server</a>", "textValues" : "Alpha Tomcat Server", "isoDateValue" : null }, { "value" : "", "attributeName" : "2 asset list by asset types", "attributeType" : "InventoryListByForm", "inventoryRefs" : [ { "id" : 27, "name" : "Fred Fenster" }, { "id" : 36, "name" : "Keyboard0002" } ], "multiListValues" : [ ], "attributeId" : 66, "id" : 1174, "formAttributeId" : 214, "displayValue" : "<a style=\"font-size: 100%\" href=\"http://localhost:2990/jira/secure/DashboardAIPAction!default.jspa#/browse/27\">Fred Fenster</a>, <a style=\"font-size: 100%\" href=\"http://localhost:2990/jira/secure/DashboardAIPAction!default.jspa#/browse/36\">Keyboard0002</a>", "textValues" : "Fred Fenster;Keyboard0002", "isoDateValue" : null }, { "value" : "30/Apr/19", "attributeName" : "2 date picker", "attributeType" : "DatePicker", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 68, "id" : 1176, "formAttributeId" : 216, "displayValue" : "30/Apr/19", "textValues" : "30/Apr/19", "isoDateValue" : "2019-04-30" }, { "value" : "30/Apr/23 5:40 PM", "attributeName" : "2 date time picker", "attributeType" : "DatetimePicker", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 69, "id" : 1177, "formAttributeId" : 217, "displayValue" : "30/Apr/23 5:40 PM", "textValues" : "30/Apr/23 5:40 PM", "isoDateValue" : "2023-04-30T17:40" }, { "value" : "1.1.1.1.1", "attributeName" : "2 IP", "attributeType" : "IP", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 71, "id" : 1179, "formAttributeId" : 219, "displayValue" : "1.1.1.1.1", "textValues" : "1.1.1.1.1", "isoDateValue" : null }, { "value" : "2.2.2.3", "attributeName" : "2 IPv6", "attributeType" : "IPv6", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 72, "id" : 1180, "formAttributeId" : 220, "displayValue" : "2.2.2.3", "textValues" : "2.2.2.3", "isoDateValue" : null }, { "value" : "admin", "attributeName" : "2 Jira User Picker", "attributeType" : "UserPicker", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 73, "id" : 1181, "formAttributeId" : 221, "displayValue" : "admin", "textValues" : "admin", "isoDateValue" : null }, { "value" : "", "attributeName" : "2 Checkbox", "attributeType" : "CheckboxList", "inventoryRefs" : [ ], "multiListValues" : [ "ada", "bur", "ist" ], "attributeId" : 67, "id" : 1175, "formAttributeId" : 215, "displayValue" : "ada, bur, ist", "textValues" : "ada;bur;ist", "isoDateValue" : null }, { "value" : "radiohead", "attributeName" : "2 radio", "attributeType" : "RadioButtonList", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 78, "id" : 1186, "formAttributeId" : 226, "displayValue" : "radiohead", "textValues" : "radiohead", "isoDateValue" : null }, { "value" : "ada", "attributeName" : "2 drop down list", "attributeType" : "DropdownList", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 70, "id" : 1178, "formAttributeId" : 218, "displayValue" : "ada", "textValues" : "ada", "isoDateValue" : null }, { "value" : "tol", "attributeName" : "2 list box", "attributeType" : "ListBox", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 74, "id" : 1182, "formAttributeId" : 222, "displayValue" : "tol", "textValues" : "tol", "isoDateValue" : null }, { "value" : "", "attributeName" : "2 list box multiple", "attributeType" : "ListBoxMultiple", "inventoryRefs" : [ ], "multiListValues" : [ "ada", "bal" ], "attributeId" : 75, "id" : 1183, "formAttributeId" : 223, "displayValue" : "ada, bal", "textValues" : "ada;bal", "isoDateValue" : null }, { "value" : "1001", "attributeName" : "2 number float", "attributeType" : "NumberFloat", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 76, "id" : 1184, "formAttributeId" : 224, "displayValue" : "1001", "textValues" : "1001", "isoDateValue" : null }, { "value" : "101", "attributeName" : "2 number long", "attributeType" : "NumberLong", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 77, "id" : 1185, "formAttributeId" : 225, "displayValue" : "101", "textValues" : "101", "isoDateValue" : null }, { "value" : "https://mail.google.com/mail/u/0/", "attributeName" : "2 url", "attributeType" : "URL", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 81, "id" : 1189, "formAttributeId" : 229, "displayValue" : "<a style=\"font-size: 100%\" href=\"https://mail.google.com/mail/u/0/\" target=\"_blank\">https://mail.google.com/mail/u/0/</a>", "textValues" : "https://mail.google.com/mail/u/0/", "isoDateValue" : null }, { "value" : "I'm sorry, but besides the official documentation here I don't have anything on my own.\nDo you have any specific issues?\n\nMy biggest issue was how to actually create the objects and import configuration, so what I did at first was to let Insight automatically (try) to create the appropriate Insight objects and import configuration.\n\nDepending on the size of your LPAD infrastructure this may take quite some time and maybe even fail (as it happened to me).\n\nI attached you two screenshots of my configuration where I import information from our LDAP to a user object (called \"Benutzer\"), hope this may already be of help.", "attributeName" : "2 text area", "attributeType" : "TextArea", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 80, "id" : 1188, "formAttributeId" : 228, "displayValue" : "I'm sorry, but besides the official documentation here I don't have anything on my own.\nDo you have any specific issues?\n\nMy biggest issue was how to actually create the objects and import configuration, so what I did at first was to let Insight automatically (try) to create the appropriate Insight objects and import configuration.\n\nDepending on the size of your LPAD infrastructure this may take quite some time and maybe even fail (as it happened to me).\n\nI attached you two screenshots of my configuration where I import information from our LDAP to a user object (called \"Benutzer\"), hope this may already be of help.", "textValues" : "I'm sorry, but besides the official documentation here I don't have anything on my own.\nDo you have any specific issues?\n\nMy biggest issue was how to actually create the objects and import configuration, so what I did at first was to let Insight automatically (try) to create the appropriate Insight objects and import configuration.\n\nDepending on the size of your LPAD infrastructure this may take quite some time and maybe even fail (as it happened to me).\n\nI attached you two screenshots of my configuration where I import information from our LDAP to a user object (called \"Benutzer\"), hope this may already be of help.", "isoDateValue" : null } ], "customfieldId" : null, "optionId" : null, "inventoryItemListSize" : 17 },{ "id" : 3, "name" : "Prod Tomcat Server", "sortOrder" : 0, "objectSchemaId" : 1, "objectSchemaName" : "Default Asset Scheme", "formId" : 2, "formName" : "Servers", "created" : null, "createdFormatted" : null, "creator" : null, "attachments" : null, "inventoryItems" : [ { "value" : "apollon", "attributeName" : "Server Name", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 5, "id" : 7, "formAttributeId" : 6, "displayValue" : "apollon", "textValues" : "apollon", "isoDateValue" : null }, { "value" : "9989-2838-3434-8787", "attributeName" : "Serial Number", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 7, "id" : 9, "formAttributeId" : 8, "displayValue" : "9989-2838-3434-8787", "textValues" : "9989-2838-3434-8787", "isoDateValue" : null }, { "value" : "10.10.13.23", "attributeName" : "IP", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 6, "id" : 8, "formAttributeId" : 7, "displayValue" : "10.10.13.23", "textValues" : "10.10.13.23", "isoDateValue" : null } ], "customfieldId" : "customfield_10100", "optionId" : 10109, "inventoryItemListSize" : 3 }] }
Search for one asset with asset ID
Request
{ "searchType": "basic", "listType": "detail", "genericKeyword": null, "queryIndexSearchParams": [ { "field": "asset.id", "keyword": "", "keywords": [], "fieldType": "LONG", "minNum": 151, "maxNum": null, "minDate": null, "maxDate": null, "range": false } ], "pageNumber": 1, "pageSize": 15, "sortDirection": "asc", "sortField": "asset.name", "sortType": "STRING" }
Response
{ "queryIndexParam" : { "searchType" : "basic", "listType" : "detail", "genericKeyword" : null, "queryIndexSearchParams" : [ { "field" : "asset.id", "fieldLabel" : null, "keyword" : "", "keywords" : [ ], "fieldType" : "LONG", "minNum" : 151.0, "maxNum" : null, "minDate" : null, "maxDate" : null, "range" : false } ], "pageNumber" : 1, "pageSize" : 15, "sortDirection" : "asc", "sortField" : "asset.name", "sortType" : "STRING", "respTime" : 1558688608224 }, "recordIds" : [ null ], "queryPagingInfo" : { "pageRecordSize" : 1, "totalRecords" : 1, "totalPages" : 1, "pageNumber" : 1, "pageSize" : 15, "hasNext" : false }, "assets" : [{ "id" : 151, "name" : "*tolga", "sortOrder" : 0, "objectSchemaId" : 4, "objectSchemaName" : "Vendor Assets", "formId" : 26, "formName" : "Employee 2", "created" : 1558002699239, "createdFormatted" : "16/May/19 1:31 PM", "creator" : "tuncay", "attachments" : null, "inventoryItems" : [ { "value" : null, "attributeName" : "Employee ID", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 30, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "First Name", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 1, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Last Name", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 2, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "National ID Number", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 46, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "JIRA User", "attributeType" : "UserPicker", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 9, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Email", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 29, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Department", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 24, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Title", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 59, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Location", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 41, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Hire Date", "attributeType" : "DatePicker", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 32, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "End Date of Employment ", "attributeType" : "DatePicker", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 31, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Postal Address", "attributeType" : "TextArea", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 51, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Office Phone Number", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 48, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Mobile Phone Number", "attributeType" : "Text", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 43, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Marital Status", "attributeType" : "ListBox", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 42, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null }, { "value" : null, "attributeName" : "Gender", "attributeType" : "ListBox", "inventoryRefs" : [ ], "multiListValues" : [ ], "attributeId" : 4, "id" : 0, "formAttributeId" : 0, "displayValue" : "", "textValues" : null, "isoDateValue" : null } ], "customfieldId" : null, "optionId" : null, "inventoryItemListSize" : 16 }] }