MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / listWorkflows

Function listWorkflows

workflows/list-workflows.ts:27–34  ·  view source on GitHub ↗
(projectId: string, location: string)

Source from the content-addressed store, hash-verified

25// const location = 'us-central1';
26
27async function listWorkflows(projectId: string, location: string) {
28 const [workflows] = await client.listWorkflows({
29 parent: client.locationPath(projectId, location),
30 });
31 for (const workflow of workflows) {
32 console.info(`name: ${workflow.name}`);
33 }
34}
35
36listWorkflows(projectId, location).catch((err: Error) => {
37 console.error(err.message);

Callers 1

list-workflows.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected