# Zendesk plugin # Introduction Plugin to manage tickets in zendesk. # Compatibility matrix
**Systems where it has been tested**CentOS 7, Fedora
**Systems where it should work**Any linux system
# Pre requisites Required: - Enable API authentication - **\*** Python3 - **\*** Module requests **\* In the binary version of the plugin it is not necessary to install these dependencies, since they are already included in the plugin.** # Configuration You have to enable password access to the api in zendesk or token access. These options can be found in administrator > API. [![image-1643040019199.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-01/scaled-1680-/image-1643040019199.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-01/image-1643040019199.png) # Parámeters **Parámetros**
Method-mget,post,put o delete
host-i, --ipname zendesk site
user-usname user (email)
password-ppassword
token-t token +API
ticket name-tnname ticket
ticket comment-tbcontent ticket
ticket id-idid ticket
ticket status-tsnew,open,hold, pending,solved o closed
ticket priority-tpurgent,high,normal o low
ticket type-ttproblem, incident,question, task
**Métodos** Get to list, post to create ticket, put to update ticket and delete to delete ticket. # Create ticket **Parameters**
Method-mget,post,put o delete
host-i, --ipname site zendesk
user-usname user (email)
password-ppass API
token-t token API
ticket name-tnname ticket
ticket comment-tbcontent ticket
ticket id-idid ticket
ticket status-tsnew,open,hold, pending,solved o closed
ticket priority-tpurgent,high,normal o low
ticket type-ttproblem, incident,question, task
You can authenticate in the API with token or pass as you have configured it in zendesk. To do so, enter the required argument. The group creation options are: name, comment (message body), status, priority and type. The id is automatically assigned to the ticket. Example of ticket creation with manual execution. ``` ./pandora_zendesk -m post -i pandoraplugin -us -p -tn "manual" -tb "esto es el contenido de la incidencia" -tp urgent -tt "question" -ts new ``` That command will create the following ticket : [![image-1641400983333.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-01/scaled-1680-/image-1641400983333.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-01/image-1641400983333.png) [![image-1641401007730.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-01/scaled-1680-/image-1641401007730.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-01/image-1641401007730.png) # Update ticket **Parameters**
Method-mget,post,put o delete
host-i, --ipname site zendesk
user-usname user (email)
password-ppass API
token-ttoken API
ticket name-tnname ticket
ticket comment-tbcontent ticket
ticket id-idid ticket
ticket status-tsnew,open,hold, pending,solved o closed
ticket priority-tpurgent,high,normal o low
ticket type-ttproblem, incident,question, task
Example of a ticket update with manual execution. ``` ./pandora_zendesk -m put -i pandoraplugin -us -p -id 19 -tn "yea22h" -tb "Comg" -tp urgent -tt "question" -ts new ``` This command will update the following ticket : [![image-1641400694458.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-01/scaled-1680-/image-1641400694458.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-01/image-1641400694458.png) # Delete ticket A ticket will be deleted by searching for its id. Example with manual execution ``` ./pandora_zendesk -m delete -i pandoraplugin -us -p -id 4 ```