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

Function listWorkflows

workflows/list-workflows.js:31–38  ·  view source on GitHub ↗
(projectId, location)

Source from the content-addressed store, hash-verified

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

Callers 1

list-workflows.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected