The method allows to retrieve scripts according to the given parameters该方法允许根据给定的参数检索脚本.
Parameters参数
(object)
Parameters defining the desired output定义所需输出的参数.
The method supports the following parameters该方法支持以下参数.
an array of objects一组对象;
the count of retrieved objects, if the
countOutput
parameter has been used如果已经使用了countOutput
参数,则检索对象的计数.
Examples范例
Retrieve all scripts检索所有脚本
Retrieve all configured scripts检索所有已配置的脚本.
Response响应:
- {
- "jsonrpc": "2.0",
- "result": [
- {
- "scriptid": "1",
- "name": "Ping",
- "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",
- "host_access": "2",
- "groupid": "0",
- "description": "",
- "confirmation": "",
- "type": "0",
- "execute_on": "1"
- },
- {
- "scriptid": "2",
- "name": "Traceroute",
- "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",
- "host_access": "2",
- "usrgrpid": "0",
- "groupid": "0",
- "description": "",
- "confirmation": "",
- "type": "0",
- "execute_on": "1"
- {
- "scriptid": "3",
- "name": "Detect operating system",
- "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",
- "host_access": "2",
- "usrgrpid": "7",
- "groupid": "0",
- "description": "",
- "confirmation": "",
- "type": "0",
- "execute_on": "1"
- }
- ],
- "id": 1
- }