Skip to main content
Module

x/windmill/mod.ts>ScriptApi#listScripts

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
method ScriptApi.prototype.listScripts
import { ScriptApi } from "https://deno.land/x/windmill@v1.28.1/mod.ts";

list all available scripts

Parameters

workspace: string
optional
page: number

which page to return (start at 1, default 1)

optional
perPage: number

number of items to return for a given page (default 30, max 100)

optional
orderDesc: boolean

order by desc order (default true)

optional
createdBy: string

mask to filter exact matching user creator

optional
pathStart: string

mask to filter matching starting path

optional
pathExact: string

mask to filter exact matching path

optional
firstParentHash: string

mask to filter scripts whom first direct parent has exact hash

optional
lastParentHash: string

mask to filter scripts whom last parent in the chain has exact hash. Beware that each script stores only a limited number of parents. Hence the last parent hash for a script is not necessarily its top-most parent. To find the top-most parent you will have to jump from last to last hash until finding the parent

optional
parentHash: string

is the hash present in the array of stored parent hashes for this script. The same warning applies than for last_parent_hash. A script only store a limited number of direct parent

optional
showArchived: boolean

(default false) show also the archived files. when multiple archived hash share the same path, only the ones with the latest create_at are displayed.

optional
isTemplate: boolean

(default regardless) if true show only the templates if false show only the non templates if not defined, show all regardless of if the script is a template

optional
isTrigger: boolean

(default regardless) if true show only the trigger scripts if false show only the non trigger scripts if not defined, show all regardless of if the script is a trigger script

optional
_options: Configuration

Returns

Promise<Array<Script>>