Skip to content

Instantly share code, notes, and snippets.

@rkaldung
Last active August 25, 2021 11:21
Show Gist options
  • Select an option

  • Save rkaldung/1ae7b8e2fe73dfdd7ee218f6867b557b to your computer and use it in GitHub Desktop.

Select an option

Save rkaldung/1ae7b8e2fe73dfdd7ee218f6867b557b to your computer and use it in GitHub Desktop.
Using the GenericInterface to set ConfigItems expired after a certain date

Requirements

  • ((OTRS)) Community Edition 6
  • Add-ons
    • GeneralCatalog
    • ITSMCore
    • ITSMConfigurationManagement

Webservice

Add a new webservice by uploading the file CMDB.yml as a new webservice configuration.

---
Debugger:
DebugThreshold: debug
TestMode: '0'
Description: ''
FrameworkVersion: 6.0.27
Provider:
Operation:
ConfigItemGet:
Description: ''
IncludeTicketData: '0'
Type: ConfigItem::ConfigItemGet
ConfigItemSearch:
Description: ''
IncludeTicketData: '0'
Type: ConfigItem::ConfigItemSearch
SessionCreate:
Description: ''
IncludeTicketData: '0'
Type: Session::SessionCreate
Transport:
Config:
AdditionalHeaders: ~
KeepAlive: ''
MaxLength: '10000000'
RouteOperationMapping:
ConfigItemGet:
ParserBackend: JSON
RequestMethod:
- GET
Route: /ConfigItem/:ConfigItemID
ConfigItemSearch:
ParserBackend: JSON
RequestMethod:
- POST
Route: /ConfigItem
SessionCreate:
ParserBackend: JSON
RequestMethod:
- POST
Route: /Session
Type: HTTP::REST
RemoteSystem: ''
Requester:
Transport:
Type: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment