This is the documentation page for an unsupported version of Zabbix.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

Script

Methods

Class containing methods for operations with Scripts.

Methods Description
get() Get script details
execute() Check if script exists
create() Create scripts
update() Update script details
delete() Delete scripts

Object details

The table contains complete list of Script attributes.

Parameter Type Description Details
scriptid int Script ID
name string Script description
command string Command to execute
host_access integer Needed host access for script execution
usrgrpid integer User group ID
groupid integer Host group ID

Common tasks

The table contains list of common script-related tasks and possible implementation using Zabbix API

Task HOWTO
Add an script Use method script.create
Add a bunch of new scripts Use method script.create with array of Script objects
Retrieve script details by Script IDs Use method script.get with parameter scriptids
Retrieve scripts details by Host name Use method script.get with parameter filter, specify "name": ["<your script>"]