GLPI

GLPI open source ITSM solution.

Case Management · GLPI

Details

IDGLPI
ProviderOpen Source
CategoryCase Management
From Version6.2.0
Docker Imagedemisto/glpi:1.0.0.10133006
Supported ModulesAgentix XSIAM

README

GLPI open source ITSM solution
This integration was integrated and tested with version 9.5.5 of GLPI

Configure GLPI in Cortex

Parameter Description Required
Server URL (e.g. https://example.net/apirest.php)   True
Application Token   True
User Token   True
Fetch incidents   False
Incident type   False
Trust any certificate (not secure)   False
Use system proxy settings   False
Incidents Fetch Interval   False
Long running instance   False
Maximum number of incidents to mirror each time   False
Incident Mirror Direction Cortex XSOAR only parameter. False
Tag used for work note mirroring   False
Tag used for comment mirroring   False
Tag used for file mirroring   False
First fetch timestamp (<number> <time unit>, e.g., 12 hours, 7 days)   False
Max incidents fetch at the same time   False

Commands

You can execute these commands from the CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.

glpi-create-user


Create a new GLPI user

Base Command

glpi-create-user

Input

Argument Name Description Required
name Login. Required
firstname Firstname. Optional
lastname Lastname. Optional
email Email address. Optional
password Password. Required
profile Profile name. Optional
additional_fields Additional fields in the format: fieldname1=value;fieldname2=value;. Optional

Context Output

Path Type Description
GLPI.User.id unknown Created user ID
GLPI.User.message unknown User creation message

glpi-delete-user


Delete GLPI user

Base Command

glpi-delete-user

Input

Argument Name Description Required
name Username. Required
purge Default : False, will use the trash, use True to definitively remove the user from the system. Possible values are: True, False. Default is False. Optional

Context Output

There is no context output for this command.

glpi-disable-user


Disable GLPI user

Base Command

glpi-disable-user

Input

Argument Name Description Required
name Username. Required

Context Output

There is no context output for this command.

glpi-enable-user


Enable GLPI user

Base Command

glpi-enable-user

Input

Argument Name Description Required
name Username. Required

Context Output

There is no context output for this command.

get-mapping-fields


Return the list of fields for an incident type

Base Command

get-mapping-fields

Input

| Argument Name | Description | Required |
| — | — | — |

Context Output

There is no context output for this command.

get-modified-remote-data


Mirroring feature, use only for debug

Base Command

get-modified-remote-data

Input

Argument Name Description Required
lastUpdate lastUpdate parameter. Possible values are: . Optional

Context Output

There is no context output for this command.

glpi-get-username


Get username by user ID

Base Command

glpi-get-username

Input

Argument Name Description Required
id User ID. Required

Context Output

Path Type Description
GLPI.User Unknown GLPI User details
GLPI.User.id unknown User id
GLPI.User.username unknown Username

glpi-delete-ticket


Delete GLPI ticket

Base Command

glpi-delete-ticket

Input

Argument Name Description Required
ticket_id Ticket ID. Required
purge Default : False, will use the trash, use True to definitively remove the ticket from the system. Possible values are: False, True. Default is False. Optional

Context Output

There is no context output for this command.

glpi-get-ticket


Get ticket details by ticket ID

Base Command

glpi-get-ticket

Input

Argument Name Description Required
ticket_id The Ticket ID. Required
get_attachments If “True” will retrieve ticket attachments. Default is “False”. Possible values are: False, True. Default is False. Optional

Context Output

Path Type Description
GLPI.Ticket.actiontime Unknown Ticket action time
GLPI.Ticket.begin_waiting_date Unknown Ticket begin waiting date
GLPI.Ticket.close_delay_stat Unknown Ticket close delay stat
GLPI.Ticket.closedate Unknown Tocket closed date
GLPI.Ticket.content Unknown Ticket content
GLPI.Ticket.date Unknown Ticket date
GLPI.Ticket.date_creation Unknown Ticket date creation
GLPI.Ticket.date_mod Unknown Ticket date modification
GLPI.Ticket.entities_id Unknown Ticket entities ids
GLPI.Ticket.global_validation Unknown Ticket global validation
GLPI.Ticket.id Unknown Ticket ID
GLPI.Ticket.impact Unknown Ticket Impact
GLPI.Ticket.internal_time_to_own Unknown Ticket internal time to own
GLPI.Ticket.internal_time_to_resolve Unknown Ticket internal time to resolve
GLPI.Ticket.is_deleted Unknown Ticket is_deleted?
GLPI.Ticket.itilcategories_id Unknown Ticket ITIL categories id
GLPI.Ticket.links Unknown Ticket links
GLPI.Ticket.locations_id Unknown Tickets locations id
GLPI.Ticket.name Unknown Ticket name
GLPI.Ticket.ola_ttr_begin_date Unknown Ticket ola ttr begin date
GLPI.Ticket.ola_waiting_duration Unknown Ticket ola waiting duration
GLPI.Ticket.olalevels_id_ttr Unknown Ticket ola levels id ttr
GLPI.Ticket.olas_id_tto Unknown Ticket olas id tto
GLPI.Ticket.olas_id_ttr Unknown Ticket olas id ttr
GLPI.Ticket.priority Unknown Ticket priority
GLPI.Ticket.requesttypes_id Unknown Ticket request types id
GLPI.Ticket.sla_waiting_duration Unknown Ticket sla waiting duration
GLPI.Ticket.slalevels_id_ttr Unknown Ticket slale levels id ttr
GLPI.Ticket.slas_id_tto Unknown Ticket slas id tto
GLPI.Ticket.slas_id_ttr Unknown Ticket stats id ttr
GLPI.Ticket.solve_delay_stat Unknown Ticket solve delay stat
GLPI.Ticket.solvedate Unknown Ticket solve date
GLPI.Ticket.status Unknown Ticket status
GLPI.Ticket.takeintoaccount_delay_stat Unknown Ticket take into account delay stat
GLPI.Ticket.time_to_own Unknown Ticket time to own
GLPI.Ticket.time_to_resolve Unknown Ticket time to resolve
GLPI.Ticket.type Unknown Ticket type
GLPI.Ticket.urgency Unknown Ticket urgency
GLPI.Ticket.users_id_lastupdater Unknown Ticket users id last updater
GLPI.Ticket.users_id_recipient Unknown Ticket users id recipient
GLPI.Ticket.validation_percent Unknown Ticket validation percent
GLPI.Ticket.waiting_duration Unknown Ticket waiting duration
File.Info string Attachment file info.
File.Name unknown Attachment file name.
File.Size number Attachment file size.
File.SHA1 string Attachment file SHA1 hash.
File.SHA256 string Attachment file SHA256 hash.
File.EntryID string Attachment file entry ID.
File.Type string Attachment file type.
File.MD5 string Attachment file MD5 hash.

glpi-create-ticket


Create a GLPI ticket

Base Command

glpi-create-ticket

Input

Argument Name Description Required
name Ticket name. Required
content Ticket description. Required
type Ticket type. Possible values are: Incident, Request. Required
status Ticket status. Possible values are: New, Processing(assigned), Processing(planned), Pending, Solved, Closed. Optional
urgency Ticket urgency. Possible values are: Veryhigh, High, Medium, Low, Verylow. Optional
impact Ticket impact. Possible values are: Veryhigh, High, Medium, Low, Verylow. Optional
priority Ticket priority. Possible values are: Major, Veryhigh, High, Medium, Low, Verylow. Optional
entryid File EntryID to upload , multiple files supported. Optional
entities_id Ticket entities ID. Optional
locations_id Ticket locations ID. Optional
itilcategories_id Ticket ITIL categories ID. Optional
time_to_resolve Ticket time to resolve, in the format: YYYY-MM-DD HH:MM:SS. Optional
time_to_own Ticket time to own, in the format: YYYY-MM-DD HH:MM:SS. Optional
internal_time_to_resolve Ticket internal time to resolve, in the format: YYYY-MM-DD HH:MM:SS. Optional
internal_time_to_own Ticket internal time to own, in the format: YYYY-MM-DD HH:MM:SS. Optional
requesttypes_id Ticket Request source. Possible values are: Direct, E-Mail, Helpdesk, Other, Phone, Written. Optional
additional_fields Additional fields in the format: fieldname1=value;fieldname2=value;. Optional

Context Output

Path Type Description
GLPI.Ticket.id unknown The created ticket ID
GLPI.Ticket.message unknown Result message from ticket creation

glpi-search


Search GLPI items

Base Command

glpi-search

Input

Argument Name Description Required
item_type Item type to search (ex : Ticket). Required
query The search query, please visit https://github.com/glpi-project/glpi/blob/master/apirest.md#search-items. Optional
forcedisplay Coma separated additional fields to display. Optional
srange Search range limit (ex : 0-50). Optional

Context Output

Path Type Description
GLPI.Search unknown Search results
GLPI.Search.item_type unknown This varies depending on the input item_type (case sensitive)

glpi-add-comment


Add comment to ticket ID

Base Command

glpi-add-comment

Input

Argument Name Description Required
ticket_id The ticket ID. Required
comment ticket comment. Possible values are: . Required

Context Output

Path Type Description
GLPI.Comment.id unknown Created comment ID
GLPI.Comment.message unknown GLPI message

glpi-upload-file


Upload document

Base Command

glpi-upload-file

Input

Argument Name Description Required
entryid File EntryID. Possible values are: . Required
filename Filename. Possible values are: . Optional
doc_name Doc name. Possible values are: . Optional

Context Output

Path Type Description
GLPI.Document Unknown Document
GLPI.Document.id unknown Created document ID
GLPI.Document.message unknown GLPI upload message
GLPI.Document.upload_result.filename.size unknown Uploaded file size
GLPI.Document.upload_result.filename.display unknown File display name
GLPI.Document.upload_result.filename.deleteUrl Unknown Document deleteURL
GLPI.Document.upload_result.filename.deleteType Unknown Document deleteType
GLPI.Document.upload_result.filename.name unknown system file name
GLPI.Document.upload_result.filename.url unknown Document URL
GLPI.Document.upload_result.filename.id Unknown Document filename id

glpi-get-item


Get item details by item type and item ID

Base Command

glpi-get-item

Input

Argument Name Description Required
item_type Item type. Possible values are: . Required
item_id Item ID. Possible values are: . Required

Context Output

Path Type Description
GLPI.item_type unknown This varies depending on the input item_type (case sensitive)

glpi-update-ticket


Update a GLPI ticket

Base Command

glpi-update-ticket

Input

Argument Name Description Required
id Ticket id. Required
description Ticket description. Optional
type Ticket type. Possible values are: Incident, Request. Optional
status Ticket status. Possible values are: New, Processing(assigned), Processing(planned), Pending, Solved, Closed. Optional
urgency Ticket urgency. Possible values are: Veryhigh, High, Medium, Low, Verylow. Optional
impact Ticket impact. Possible values are: Veryhigh, High, Medium, Low, Verylow. Optional
priority Ticket priority. Possible values are: Major, Veryhigh, High, Medium, Low, Verylow. Optional
entryid File EntryID to upload , multiple files supported. Optional
entities_id Ticket entities ID. Optional
locations_id Ticket locations ID. Optional
itilcategories_id Ticket ITIL categories ID. Optional
global_validation Global validation. Possible values are: . Optional
time_to_resolve Ticket time to resolve, in the format: YYYY-MM-DD HH:MM:SS. Optional
time_to_own Ticket time to own, in the format: YYYY-MM-DD HH:MM:SS. Optional
internal_time_to_resolve Ticket internal time to resolve, in the format: YYYY-MM-DD HH:MM:SS. Optional
internal_time_to_own Ticket internal time to own, in the format: YYYY-MM-DD HH:MM:SS. Optional
additional_fields Additional fields in the format: fieldname1=value;fieldname2=value;. Optional

Context Output

Path Type Description
GLPI.Ticket.id unknown The updated ticket ID
GLPI.Ticket.message unknown Result message from ticket update

get-remote-data


get remote data command

Base Command

get-remote-data

Input

Argument Name Description Required
id ticket id. Possible values are: . Optional
lastUpdate last update parameter. Possible values are: . Optional

Context Output

There is no context output for this command.

glpi-add-link


Link tickets

Base Command

glpi-add-link

Input

Argument Name Description Required
ticket_ID_1 First ticket ID. Required
ticket_ID_2 Second ticket ID. Required
link Relation between tickets. Possible values are: Link, Duplicate, Child, Parent. Required

Context Output

There is no context output for this command.

glpi-update-user


Update a user

Base Command

glpi-update-user

Input

| Argument Name | Description | Required |
| — | — | — |

Context Output

There is no context output for this command.

glpi-get-userid


Get GLPI User ID by Username

Base Command

glpi-get-userid

Input

Argument Name Description Required
name Username. Required

Context Output

Path Type Description
GLPI.User Unknown GLPI User details
GLPI.User.id unknown User id
GLPI.User.username unknown Username

Configuration parameters

  • url — Server URL (e.g. https://example.net/apirest.php) (required)
  • app_token — Application Token (required)
  • user_token — User Token (required)
  • isFetch — Fetch incidents
  • incidentType — Incident type
  • insecure — Trust any certificate (not secure)
  • proxy — Use system proxy settings
  • incidentFetchInterval — Incidents Fetch Interval
  • longRunning — Long running instance
  • mirror_limit — Maximum number of incidents to mirror each time
  • mirror_direction — Incident Mirror Direction
  • work_notes_tag — Tag used for work note mirroring
  • comment_tag — Tag used for comment mirroring
  • file_tag — Tag used for file mirroring
  • first_fetch — First fetch timestamp (<number> <time unit>, e.g., 12 hours, 7 days)
  • max_fetch — Max incidents fetch at the same time

Commands (19)

  • get-mapping-fields

    Return the list of fields for an incident type.

  • get-modified-remote-data

    Mirroring feature, use only for debug.

  • get-remote-data

    get remote data command.

  • glpi-add-comment

    Add comment to ticket ID.

  • glpi-add-link

    Link tickets.

  • glpi-create-ticket

    Create a GLPI ticket.

  • glpi-create-user

    Create a new GLPI user.

  • glpi-delete-ticket

    Delete GLPI ticket.

  • glpi-delete-user

    Delete GLPI user.

  • glpi-disable-user

    Disable GLPI user.

  • glpi-enable-user

    Enable GLPI user.

  • glpi-get-item

    Get item details by item type and item ID.

  • glpi-get-ticket

    Get ticket details by ticket ID.

  • glpi-get-userid

    Get GLPI User ID by Username.

  • glpi-get-username

    Get username by user ID.

  • glpi-search

    Search GLPI items.

  • glpi-update-ticket

    Update a GLPI ticket.

  • glpi-update-user

    Update a user.

  • glpi-upload-file

    Upload document.

commonfields:
  id: GLPI
  version: -1
name: GLPI
display: GLPI
category: Case Management
provider: Open Source
description: GLPI open source ITSM solution.
defaultclassifier: GLPI - Classifier
defaultmapperin: GLPI - Incoming Mapper
defaultmapperout: GLPI - Outgoing Mapper
configuration:
- name: url
  display: Server URL (e.g. https://example.net/apirest.php)
  required: true
  defaultvalue:
  type: 0
  additionalinfo:
- name: app_token
  display: Application Token
  required: true
  defaultvalue:
  type: 4
  additionalinfo:
- name: user_token
  display: User Token
  required: true
  defaultvalue:
  type: 4
  additionalinfo:
- name: isFetch
  display: Fetch incidents
  type: 8
  required: false
- name: incidentType
  display: Incident type
  type: 13
  required: false
- name: insecure
  display: Trust any certificate (not secure)
  type: 8
  additionalinfo:
  required: false
- name: proxy
  display: Use system proxy settings
  type: 8
  additionalinfo:
  required: false
- name: incidentFetchInterval
  display: Incidents Fetch Interval
  defaultvalue: '1'
  type: 19
  additionalinfo:
  required: false
- name: longRunning
  display: Long running instance
  type: 8
  additionalinfo:
  required: false
- name: mirror_limit
  display: Maximum number of incidents to mirror each time
  defaultvalue: '50'
  type: 0
  additionalinfo:
  required: false
- name: mirror_direction
  display: Incident Mirror Direction
  defaultvalue: None
  type: 15
  additionalinfo: Cortex XSOAR only parameter.
  options:
  - None
  - Incoming
  - Outgoing
  - Incoming And Outgoing
  required: false
  hidden:
  - marketplacev2
  - platform
- name: work_notes_tag
  display: Tag used for work note mirroring
  defaultvalue: work_notes
  type: 0
  additionalinfo:
  required: false
- name: comment_tag
  display: Tag used for comment mirroring
  defaultvalue: comments
  type: 0
  additionalinfo:
  required: false
- name: file_tag
  display: Tag used for file mirroring
  defaultvalue: forGLPI
  type: 0
  additionalinfo:
  required: false
- name: first_fetch
  display: First fetch timestamp (<number> <time unit>, e.g., 12 hours, 7 days)
  defaultvalue: 7 days
  type: 0
  required: false
- name: max_fetch
  display: Max incidents fetch at the same time
  defaultvalue: 50
  type: 0
  required: false
script:
  script: ''
  type: python
  commands:
  - name: glpi-create-user
    arguments:
    - name: name
      required: true
      description: Login.
    - name: firstname
      description: Firstname.
    - name: lastname
      description: Lastname.
    - name: email
      description: Email address.
    - name: password
      required: true
      description: Password.
    - name: profile
      description: Profile name.
    - name: additional_fields
      description: 'Additional fields in the format: fieldname1=value;fieldname2=value;.'
    outputs:
    - contextPath: GLPI.User.id
      description: Created user ID.
    - contextPath: GLPI.User.message
      description: User creation message.
    description: Create a new GLPI user.
  - name: glpi-delete-user
    arguments:
    - name: name
      required: true
      description: Username.
    - name: purge
      default: true
      auto: PREDEFINED
      predefined:
      - 'True'
      - 'False'
      description: 'Default : False, will use the trash, use True to definitively remove the user from the system.'
      defaultValue: 'False'
    description: Delete GLPI user.
    outputs: []
  - name: glpi-disable-user
    arguments:
    - name: name
      required: true
      description: Username.
    description: Disable GLPI user.
    outputs: []
  - name: glpi-enable-user
    arguments:
    - name: name
      required: true
      description: Username.
    description: Enable GLPI user.
    outputs: []
  - name: get-mapping-fields
    arguments: []
    description: Return the list of fields for an incident type.
    outputs: []
  - name: get-modified-remote-data
    arguments:
    - name: lastUpdate
      description: lastUpdate parameter.
      defaultValue: ''
      predefined:
      - ''
    description: Mirroring feature, use only for debug.
    outputs: []
  - name: glpi-get-username
    arguments:
    - name: id
      required: true
      description: User ID.
    outputs:
    - contextPath: GLPI.User
      description: GLPI User details.
      type: Unknown
    - contextPath: GLPI.User.id
      description: User id.
    - contextPath: GLPI.User.username
      description: Username.
    description: Get username by user ID.
  - name: glpi-get-userid
    arguments:
    - name: name
      required: true
      description: Username.
    outputs:
    - contextPath: GLPI.User
      description: GLPI User details.
      type: Unknown
    - contextPath: GLPI.User.id
      description: User id.
    - contextPath: GLPI.User.username
      description: Username.
    description: Get GLPI User ID by Username.
  - name: glpi-delete-ticket
    arguments:
    - name: ticket_id
      required: true
      description: Ticket ID.
    - name: purge
      default: true
      auto: PREDEFINED
      predefined:
      - 'False'
      - 'True'
      description: 'Default : False, will use the trash, use True to definitively remove the ticket from the system.'
      defaultValue: 'False'
    description: Delete GLPI ticket.
    outputs: []
  - name: glpi-get-ticket
    arguments:
    - name: ticket_id
      required: true
      description: The Ticket ID.
    - name: get_attachments
      default: true
      auto: PREDEFINED
      predefined:
      - 'False'
      - 'True'
      description: If "True" will retrieve ticket attachments. Default is "False".
      defaultValue: 'False'
    outputs:
    - contextPath: GLPI.Ticket.actiontime
      description: Ticket action time.
      type: Unknown
    - contextPath: GLPI.Ticket.begin_waiting_date
      description: Ticket begin waiting date.
      type: Unknown
    - contextPath: GLPI.Ticket.close_delay_stat
      description: Ticket close delay stat.
      type: Unknown
    - contextPath: GLPI.Ticket.closedate
      description: Tocket closed date.
      type: Unknown
    - contextPath: GLPI.Ticket.content
      description: Ticket content.
      type: Unknown
    - contextPath: GLPI.Ticket.date
      description: Ticket date.
      type: Unknown
    - contextPath: GLPI.Ticket.date_creation
      description: Ticket date creation.
      type: Unknown
    - contextPath: GLPI.Ticket.date_mod
      description: Ticket date modification.
      type: Unknown
    - contextPath: GLPI.Ticket.entities_id
      description: Ticket entities ids.
      type: Unknown
    - contextPath: GLPI.Ticket.global_validation
      description: Ticket global validation.
      type: Unknown
    - contextPath: GLPI.Ticket.id
      description: Ticket ID.
      type: Unknown
    - contextPath: GLPI.Ticket.impact
      description: Ticket Impact.
      type: Unknown
    - contextPath: GLPI.Ticket.internal_time_to_own
      description: Ticket internal time to own.
      type: Unknown
    - contextPath: GLPI.Ticket.internal_time_to_resolve
      description: Ticket internal time to resolve.
      type: Unknown
    - contextPath: GLPI.Ticket.is_deleted
      description: Ticket is_deleted?.
      type: Unknown
    - contextPath: GLPI.Ticket.itilcategories_id
      description: Ticket ITIL categories id.
      type: Unknown
    - contextPath: GLPI.Ticket.links
      description: Ticket links.
      type: Unknown
    - contextPath: GLPI.Ticket.locations_id
      description: Tickets locations id.
      type: Unknown
    - contextPath: GLPI.Ticket.name
      description: Ticket name.
      type: Unknown
    - contextPath: GLPI.Ticket.ola_ttr_begin_date
      description: Ticket ola ttr begin date.
      type: Unknown
    - contextPath: GLPI.Ticket.ola_waiting_duration
      description: Ticket ola waiting duration.
      type: Unknown
    - contextPath: GLPI.Ticket.olalevels_id_ttr
      description: Ticket ola levels id ttr.
      type: Unknown
    - contextPath: GLPI.Ticket.olas_id_tto
      description: Ticket olas id tto.
      type: Unknown
    - contextPath: GLPI.Ticket.olas_id_ttr
      description: Ticket olas id ttr.
      type: Unknown
    - contextPath: GLPI.Ticket.priority
      description: Ticket priority.
      type: Unknown
    - contextPath: GLPI.Ticket.requesttypes_id
      description: Ticket request types id.
      type: Unknown
    - contextPath: GLPI.Ticket.sla_waiting_duration
      description: Ticket sla waiting duration.
      type: Unknown
    - contextPath: GLPI.Ticket.slalevels_id_ttr
      description: Ticket slale levels id ttr.
      type: Unknown
    - contextPath: GLPI.Ticket.slas_id_tto
      description: Ticket slas id tto.
      type: Unknown
    - contextPath: GLPI.Ticket.slas_id_ttr
      description: Ticket stats id ttr.
      type: Unknown
    - contextPath: GLPI.Ticket.solve_delay_stat
      description: Ticket solve delay stat.
      type: Unknown
    - contextPath: GLPI.Ticket.solvedate
      description: Ticket solve date.
      type: Unknown
    - contextPath: GLPI.Ticket.status
      description: Ticket status.
      type: Unknown
    - contextPath: GLPI.Ticket.takeintoaccount_delay_stat
      description: Ticket take into account delay stat.
      type: Unknown
    - contextPath: GLPI.Ticket.time_to_own
      description: Ticket time to own.
      type: Unknown
    - contextPath: GLPI.Ticket.time_to_resolve
      description: Ticket time to resolve.
      type: Unknown
    - contextPath: GLPI.Ticket.type
      description: Ticket type.
      type: Unknown
    - contextPath: GLPI.Ticket.urgency
      description: Ticket urgency.
      type: Unknown
    - contextPath: GLPI.Ticket.users_id_lastupdater
      description: Ticket users id last updater.
      type: Unknown
    - contextPath: GLPI.Ticket.users_id_recipient
      description: Ticket users id recipient.
      type: Unknown
    - contextPath: GLPI.Ticket.validation_percent
      description: Ticket validation percent.
      type: Unknown
    - contextPath: GLPI.Ticket.waiting_duration
      description: Ticket waiting duration.
      type: Unknown
    - contextPath: File.Info
      description: Attachment file info.
      type: string
    - contextPath: File.Name
      description: Attachment file name.
    - contextPath: File.Size
      description: Attachment file size.
      type: number
    - contextPath: File.SHA1
      description: Attachment file SHA1 hash.
      type: string
    - contextPath: File.SHA256
      description: Attachment file SHA256 hash.
      type: string
    - contextPath: File.EntryID
      description: Attachment file entry ID.
      type: string
    - contextPath: File.Type
      description: Attachment file type.
      type: string
    - contextPath: File.MD5
      description: Attachment file MD5 hash.
      type: string
    description: Get ticket details by ticket ID.
  - name: glpi-create-ticket
    arguments:
    - name: name
      required: true
      description: Ticket name.
    - name: content
      required: true
      description: Ticket description.
    - name: type
      required: true
      auto: PREDEFINED
      predefined:
      - Incident
      - Request
      description: Ticket type.
    - name: status
      auto: PREDEFINED
      predefined:
      - New
      - Processing(assigned)
      - Processing(planned)
      - Pending
      - Solved
      - Closed
      description: Ticket status.
    - name: urgency
      auto: PREDEFINED
      predefined:
      - Veryhigh
      - High
      - Medium
      - Low
      - Verylow
      description: Ticket urgency.
    - name: impact
      auto: PREDEFINED
      predefined:
      - Veryhigh
      - High
      - Medium
      - Low
      - Verylow
      description: Ticket impact.
    - name: priority
      auto: PREDEFINED
      predefined:
      - Major
      - Veryhigh
      - High
      - Medium
      - Low
      - Verylow
      description: Ticket priority.
    - name: entryid
      description: File EntryID to upload , multiple files supported.
      isArray: true
    - name: entities_id
      description: Ticket entities ID.
    - name: locations_id
      description: Ticket locations ID.
    - name: itilcategories_id
      description: Ticket ITIL categories ID.
    - name: time_to_resolve
      description: 'Ticket time to resolve, in the format: YYYY-MM-DD HH:MM:SS.'
    - name: time_to_own
      description: 'Ticket time to own, in the format: YYYY-MM-DD HH:MM:SS.'
    - name: internal_time_to_resolve
      description: 'Ticket internal time to resolve, in the format: YYYY-MM-DD HH:MM:SS.'
    - name: internal_time_to_own
      description: 'Ticket internal time to own, in the format: YYYY-MM-DD HH:MM:SS.'
    - name: requesttypes_id
      auto: PREDEFINED
      predefined:
      - Direct
      - E-Mail
      - Helpdesk
      - Other
      - Phone
      - Written
      description: Ticket Request source.
    - name: additional_fields
      description: 'Additional fields in the format: fieldname1=value;fieldname2=value;.'
    outputs:
    - contextPath: GLPI.Ticket.id
      description: The created ticket ID.
    - contextPath: GLPI.Ticket.message
      description: Result message from ticket creation.
    description: Create a GLPI ticket.
  - name: glpi-search
    arguments:
    - name: item_type
      required: true
      description: 'Item type to search (ex : Ticket).'
    - name: query
      description: The search query, please visit https://github.com/glpi-project/glpi/blob/master/apirest.md#search-items
    - name: forcedisplay
      description: Coma separated additional fields to display.
    - name: srange
      description: 'Search range limit (ex : 0-50).'
    outputs:
    - contextPath: GLPI.Search
      description: Search results.
    - contextPath: GLPI.Search.item_type
      description: This varies depending on the input item_type (case sensitive).
    description: Search GLPI items.
  - name: glpi-add-comment
    arguments:
    - name: ticket_id
      required: true
      description: The ticket ID.
    - name: comment
      description: ticket comment.
      required: true
      defaultValue: ''
      predefined:
      - ''
    outputs:
    - contextPath: GLPI.Comment.id
      description: 'Created comment ID .'
    - contextPath: GLPI.Comment.message
      description: GLPI message.
    description: Add comment to ticket ID.
  - name: glpi-upload-file
    arguments:
    - name: entryid
      description: File EntryID.
      required: true
      defaultValue: ''
      predefined:
      - ''
    - name: filename
      description: Filename.
      defaultValue: ''
      predefined:
      - ''
    - name: doc_name
      description: Doc name.
      defaultValue: ''
      predefined:
      - ''
    outputs:
    - contextPath: GLPI.Document
      description: Document.
      type: Unknown
    - contextPath: GLPI.Document.id
      description: Created document ID.
    - contextPath: GLPI.Document.message
      description: GLPI upload message.
    - contextPath: GLPI.Document.upload_result.filename.size
      description: Uploaded file size.
    - contextPath: GLPI.Document.upload_result.filename.display
      description: File display name.
    - contextPath: GLPI.Document.upload_result.filename.deleteUrl
      description: Document deleteURL.
      type: Unknown
    - contextPath: GLPI.Document.upload_result.filename.deleteType
      description: Document deleteType.
      type: Unknown
    - contextPath: GLPI.Document.upload_result.filename.name
      description: system file name.
    - contextPath: GLPI.Document.upload_result.filename.url
      description: Document URL.
    - contextPath: GLPI.Document.upload_result.filename.id
      description: Document filename id.
      type: Unknown
    description: Upload document.
  - name: glpi-get-item
    arguments:
    - name: item_type
      description: Item type.
      required: true
      defaultValue: ''
      predefined:
      - ''
    - name: item_id
      description: Item ID.
      required: true
      defaultValue: ''
      predefined:
      - ''
    outputs:
    - contextPath: GLPI.item_type
      description: This varies depending on the input item_type (case sensitive).
    description: Get item details by item type and item ID.
  - name: glpi-update-ticket
    arguments:
    - name: id
      required: true
      description: Ticket id.
    - name: description
      description: Ticket description.
    - name: type
      auto: PREDEFINED
      predefined:
      - Incident
      - Request
      description: Ticket type.
    - name: status
      auto: PREDEFINED
      predefined:
      - New
      - Processing(assigned)
      - Processing(planned)
      - Pending
      - Solved
      - Closed
      description: Ticket status.
    - name: urgency
      auto: PREDEFINED
      predefined:
      - Veryhigh
      - High
      - Medium
      - Low
      - Verylow
      description: Ticket urgency.
    - name: impact
      auto: PREDEFINED
      predefined:
      - Veryhigh
      - High
      - Medium
      - Low
      - Verylow
      description: Ticket impact.
    - name: priority
      auto: PREDEFINED
      predefined:
      - Major
      - Veryhigh
      - High
      - Medium
      - Low
      - Verylow
      description: Ticket priority.
    - name: entryid
      description: File EntryID to upload , multiple files supported.
      isArray: true
    - name: entities_id
      description: Ticket entities ID.
    - name: locations_id
      description: Ticket locations ID.
    - name: itilcategories_id
      description: Ticket ITIL categories ID.
    - name: name
      description: Ticket title.
    - name: global_validation
      description: Global validation.
      defaultValue: ''
      predefined:
      - ''
    - name: time_to_resolve
      description: 'Ticket time to resolve, in the format: YYYY-MM-DD HH:MM:SS.'
    - name: time_to_own
      description: 'Ticket time to own, in the format: YYYY-MM-DD HH:MM:SS.'
    - name: internal_time_to_resolve
      description: 'Ticket internal time to resolve, in the format: YYYY-MM-DD HH:MM:SS.'
    - name: internal_time_to_own
      description: 'Ticket internal time to own, in the format: YYYY-MM-DD HH:MM:SS.'
    - name: additional_fields
      description: 'Additional fields in the format: fieldname1=value;fieldname2=value;.'
    outputs:
    - contextPath: GLPI.Ticket.id
      description: The updated ticket ID.
    - contextPath: GLPI.Ticket.message
      description: Result message from ticket update.
    description: Update a GLPI ticket.
  - name: get-remote-data
    description: get remote data command.
    arguments:
    - name: id
      description: ticket id.
      defaultValue: ''
      predefined:
      - ''
    - name: lastUpdate
      description: last update parameter.
      defaultValue: ''
      predefined:
      - ''
    outputs: []
  - name: glpi-add-link
    arguments:
    - name: ticket_ID_1
      required: true
      description: First ticket ID.
    - name: ticket_ID_2
      required: true
      description: Second ticket ID.
    - name: link
      required: true
      auto: PREDEFINED
      predefined:
      - Link
      - Duplicate
      - Child
      - Parent
      description: Relation between tickets.
    description: Link tickets.
    outputs: []
  - name: glpi-update-user
    description: Update a user.
    arguments:
    - name: id
      required: true
      description: User ID.
    - name: name
      description: Login.
    - name: firstname
      description: Firstname.
    - name: lastname
      description: Lastname.
    - name: email
      description: Email address.
    - name: password
      description: Password.
    - name: profile
      description: Profile name.
    - name: update_fields
      description: 'Additional fields in the format: fieldname1=value;fieldname2=value;.'
    outputs: []
  dockerimage: demisto/glpi:1.0.0.10133006
  isfetch: true
  longRunning: true
  subtype: python3
  ismappable: true
  isremotesyncin: true
  isremotesyncout: true
fromversion: 6.2.0
tests:
- No tests (auto formatted)