REST API - View an asset catalog entry


GET  /catalog-assets/{catalog_id}

  • This method allows information about a specified asset catalog entry to be obtained: equipment / software / contract.
           Example documentation icon EN.png  /catalog-assets/3321

Notes

      Open url.png  see Product name - ev itsm.png REST API Conventions

  • If successful, an HTTP status code 200 is returned.
    • A URL link (HREF) to the resource is provided.
    • All fields are provided, including e_field_name and available_field_x, except for certain sensitive fields reserved for Logo - EasyVista.png.
       

List of parameters / objects

Mandatory parameters

You must use the JSON object below in the body of the HTTP request.
 

Objet Type Description / Example
catalog_id integer Entry catalog identifier

Optional parameters

You can use the parameters detailed below in the HTTP request string.
 

Objet Type Description / Example
fields string Select fields to display.
  • Example documentation icon EN.png /catalog-assets/3321?fields=code,catalog_guid

Fields that could be used in optional parameters

You can use all the JSON fields from the AM_CATALOG table except those mentioned below.

NotAuthorized_OptionalParametersFields_Catalog
  • lft ; rgt 
  • level 
  • big_picture_path 
  • default_root_cause_id 
  • forms_id 
  • workflow_id ; closing_workflow_id ; immediate_workflow_id 
  • manager_id 
  • request_asset_tag 
  • move_service 
  • path_to_compute 
  • sd_catalog_id_for_caddy 
  • category_id
  • click_2_get_software_package_id 
  • click_2_get_button_label_*

HTTP status codes for the method

StatusHeader
Code Error Description
Status200
200 OK (Success) Request processed successfully.
Status401
401 Unauthorized Authentication process for accessing the resource is incorrect: Login/Password incorrect, Invalid session, Incorrect Product name - ev itsm.png account.
Example documentation icon EN.png
{
 "error": "Invalid Login / Password"
}
Status404
404 Not Found Resource not found: Incorrect URI, Missing resource, Incorrect communication with the server, rfc_number not found.
Example documentation icon EN.png
{
 "error": "Resource not found"
}

Example

Result with a status code 200 returned

{
 "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321",
 "ARTICLE_MODEL": "Camedia Master",
 "ARTICLE_MODEL_URL": "",
 "AVAILABLE_FIELD_1": "",
 "AVAILABLE_FIELD_2": "",
 "AVAILABLE_FIELD_3": "",
 "AVAILABLE_FIELD_4": "",
 "AVAILABLE_FIELD_5": "",
 "AVAILABLE_FIELD_6": "",
 "CAN_BE_PURCHASED": "0",
 "CATALOG_GUID": "",
 "CATALOG_ID": "3321",
 "CURRENT_LICENSE_VERSION": "1  0",
 "DEFAULT_BUY_BACK_VALUE": "",
 "DEFAULT_BUY_BACK_VALUE_CUR_ID": "",
 "DEFAULT_CHARGE_BACK": "",
 "DEFAULT_CHARGE_BACK_CUR_ID": "",
 "DEFAULT_DISPOSAL_VALUE": "",
 "DEFAULT_DISPOSAL_VALUE_CUR_ID": "",
 "DEFAULT_RENEWAL_VALUE": "",
 "DEFAULT_RENEWAL_VALUE_CUR_ID": "",
 "DESCRIPTION_EN": {
   "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321/description_en"
  },
 "DESCRIPTION_FR": {
   "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321/description_fr"
  },
 "DESCRIPTION_GE": {
   "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321/description_ge"
  },
 "DESCRIPTION_IT": {
   "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321/description_it"
  },
 "DESCRIPTION_L1": {
   "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321/description_l1"
  },
 "DESCRIPTION_L2": {
   "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321/description_l2"
  },
 "DESCRIPTION_L3": {
   "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321/description_l3"
  },
 "DESCRIPTION_L4": {
   "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321/description_l4"
  },
 "DESCRIPTION_L5": {
   "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321/description_l5"
  },
 "DESCRIPTION_L6": {
   "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321/description_l6"
  },
 "DESCRIPTION_PO": {
   "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321/description_po"
  },
 "DESCRIPTION_SP": {
   "HREF": "http://{your_server}/api/v1/{account}/catalog-assets/3321/description_sp"
  },
 "END_DATE": "",
 "END_OF_NEWS": "",
 "ESTIMATED_PERCENTAGE_USE": "75",
 "ESTIMATED_POWER_CONSUMPTION_WH": "",
 "IMPACT_ID": "",
 "INITIAL_STOCK": "",
 "LAST_INTEGRATION": "",
 "LAST_UPDATE": "2009-03-27",
 "LEVEL_VERSION": "",
 "LICENSE_PRICE_PER_SEAT": "",
 "LICENSE_PRICE_PER_SEAT_CUR_ID": "",
 "LICENSE_PROGRAM": "",
 "MAINTENANCE_DURATION": "180",
 "MANAGED_LICENSE": "",
 "MANAGER_ID": "",
 "MANUFACTURER_ID": "362",
 "MANUFACTURER_REF": "",
 "MANUFACTURER_WARRANTY_DURATION": "",
 "MONTHLY_NET_RENTAL": "",
 "MONTHLY_NET_RENTAL_CUR_ID": "",
 "NB_INSTALLS": "",
 "NET_PRICE": "",
 "NET_PRICE_CUR_ID": "",
 "PERCENT_MAINTENANCE_COST": "",
 "QTY_PACKAGED": "",
 "REF_GLPI": "",
 "REF_LANDESK": "",
 "REF_SCCM": "",
 "SLA_ID": "",
 "SMBIOS_NAME": "",
 "START_DATE": "",
 "TAX_ID": "",
 "TECHNICAL_VALIDATION_REQUIRED": "",
 "TITLE_EN": "",
 "TITLE_FR": "",
 "TITLE_GE": "",
 "TITLE_IT": "",
 "TITLE_L1": "",
 "TITLE_L2": "",
 "TITLE_L3": "",
 "TITLE_L4": "",
 "TITLE_L5": "",
 "TITLE_L6": "",
 "TITLE_PO": "",
 "TITLE_SP": "",
 "YEARS_EXPECTED_USAGE": "3",
 "MANUFACTURER": {
   "HREF": "http://{your_server}/api/v1/{account}/manufacturers/362",
   "DISCOVERY_NAME": "",
   "MANUFACTURER": "Olympus",
   "MANUFACTURER_ID": "362"
  }
}


ConventionsAPI

REST API Conventions

Convention Meaning
Orange Parameters used in an HTTP request string (URL) which do not correspond to Product name - ev itsm.png database fields.
Example documentation icon EN.png   Method View a list of assets
https://{your_server}/api/v1/{your_account}/assets?max_rows=3&fields=asset_tag
Black and Bold Parameters used in the URL of an HTTP request which correspond to Product name - ev itsm.png database fields.
Example documentation icon EN.png   Method View an asset
https://{your_server}/api/v1/{your_account}/assets/{asset_id}
Green Parameters used in the body of an HTTP request which represent JSON object names corresponding to Product name - ev itsm.png database fields; they allow the value of a database field to be assigned or modified.
Example documentation icon EN.png   Method Close an incident/request

{  "closed": {  "end_date": "11/20/2016 12:12:12",  }  }
Parameters used in the body of an HTTP request which represent JSON object names not corresponding to Product name - ev itsm.png database fields.
Example documentation icon EN.png   Method Reopen an incident/request

{  "restarted": {  "comment": "string (required)"  }  }

Tags:
Last modified by Unknown User on 2018/10/24 14:48
Created by Administrator XWiki on 2017/12/21 08:48

Shortcuts

Recent Updates

Haven't been here in a while? Here's what changed recently:

-   Product name - ev itsm.png
-   Product name - ev sas.png

Interesting Content

How to Automate Integration
Add a Shortcut to an App
History
Quick Dashboard
Full text search - Stop Words

Powered by XWiki ©, EasyVista 2018