()
| 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] |