capabilities.work

Provision a Resource and Run a Consuming Script

A 3-step recipe with Windmill. We can help you get access.

Recipe · 3 steps

Provision a Resource and Run a Consuming Script

Create a Windmill resource and run a script that consumes it.

  1. Create a typed resource at the supplied path. The response body is the created resource path as plain text.
  2. Read the resource value back to confirm it persisted as expected.
  3. Run the consuming script asynchronously. The response body is the new job UUID.
What you'll need to have ready
  • token: Windmill API token presented as a Bearer credential.
  • workspace: The Windmill workspace id.
  • resourcePath: The path to create the resource at (e.g. "f/shared/api_creds").
  • resourceType: The resource_type associated with the resource (e.g. "postgresql").
  • resourceValue: The value payload stored in the resource.
  • scriptPath: Path to the script that consumes the resource.
  • args: The argument map passed to the script (referencing the resource path).
For your developer

Arazzo workflow windmill:provision-resource-and-run-script, 3 operations: createResource → getResourceValue → runScriptByPath. Specs on APIs.io.