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

Function getJob

dlp/getJob.js:32–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 // const jobName = 'your-job-name';
31
32 async function getJob() {
33 // Construct request for finding job using job name.
34 const request = {
35 name: jobName,
36 };
37
38 // Send the request and receive response from the service
39 const [job] = await dlp.getDlpJob(request);
40
41 // Print results.
42 console.log(`Job ${job.name} status: ${job.state}`);
43 }
44
45 getJob();
46 // [END dlp_get_job]

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected