Source
$this->getAuditDetails('resourcename', $this->delete_actionid, 'Updated SSH script', self::$resourceid_ssh);
<?php
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
require_once dirname(__FILE__).'/common/testAuditlogCommon.php';
/**
* @backup scripts
*/
class testAuditlogScript extends testAuditlogCommon {
/**
* Webhook parameter id.
*/
protected static $parameterid;
/**
* Created SSH script id.
*/
protected static $resourceid_ssh;
/**
* Created Webhook script id.
*/
protected static $resourceid_webhook;
/**
* Created script id.
*/
protected static $resourceid_script;
/**
* Created script with authtype id.
*/
protected static $resourceid_authtype;
public function testAuditlogScript_CreateSSH() {
$create = $this->call('script.create', [
[
'name' => 'Created SSH script',
'command' => 'Created command to run',
'type' => 2,
'scope' => 2,
'menu_path' => 'created/menu/path',
'authtype' => 1,
'username' => 'created_user',
'password' => 'created_password',
'publickey' => 'created_public_key',
'privatekey' => 'created_private_key',
'port' => '12345',
'host_access' => 3,