> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/job-examples.md).

# ジョブの例

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2Fgit-blob-fdd038cf0c00d43baef8524b6a4c870ef946924f%2Fimage%20(138)-ja.png?alt=media" alt=""><figcaption></figcaption></figure>

本セクションでは、Keeperエンドポイント特権マネージャーのジョブ連携でよくあるシナリオを、すぐに使えるJSONテンプレートとしてまとめています。各サブページでは1シナリオずつ、デプロイ可能なJSONと、例の要点・利用場面を説明しています。

各テンプレートはファイル内の説明だけで意図がわかるようになっています。各ファイルの `description` フィールドは `SCENARIO:` で始まるため、ファイル全体を読まなくてもテンプレートの目的を把握できます。本番へデプロイする前に、プレースホルダのパス、ID、トピック名を実際の値に置き換えてください。

## ジョブの例 <a href="#job-examples-1" id="job-examples-1"></a>

ジョブファイルはエージェント上の `Jobs/{id}.json` に配置します。以下では、サポート対象の各OSで一般的なトリガーとスケジュールのパターンを取り上げます。

<table data-header-hidden="false" data-header-sticky><thead><tr><th width="218">例</th><th>内容</th></tr></thead><tbody><tr><td><a href="/keeperpam/jp/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/job-examples/job-minimal-windows.md">最小ジョブ (Windows)</a></td><td>Windows上の最もシンプルな有効なジョブ。インターバルスケジュール、サービスタスクの実行、KeeperLoggerへの出力。Windows向けテンプレートの出発点として利用可能</td></tr><tr><td><a href="/keeperpam/jp/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/job-examples/job-minimal-macos.md">最小ジョブ (macOS)</a></td><td>同じ最小構成をmacOS向けに合わせた例。バイナリの正しいパスと <code>osFilter</code> の設定例</td></tr><tr><td><a href="/keeperpam/jp/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/job-examples/job-minimal-linux.md">最小ジョブ (Linux)</a></td><td>同じ最小構成をLinux向けに合わせた例。バイナリの正しいパスと <code>osFilter</code> の設定例</td></tr><tr><td><a href="/keeperpam/jp/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/job-examples/job-schedule-and-startup.md">スケジュールと起動時のジョブ</a></td><td>起動直後に1回実行したうえで、一定間隔の繰り返し実行。スキャナー型のツールで推奨されるパターン</td></tr><tr><td><a href="/keeperpam/jp/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/job-examples/job-with-event-topic.md">イベントトピック付きジョブ</a></td><td>MQTTのカスタム <code>eventTopic</code> へ進捗をパブリッシュする例。<code>eventTopic</code> と <code>mqttTopics.allowedPublications</code> の対応づけ</td></tr></tbody></table>

## 始める前に <a href="#before-you-begin" id="before-you-begin"></a>

* いずれの例をデプロイする前に、[カスタムジョブガイド](/keeperpam/jp/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide.md)をご参照ください。バイナリの配置、署名要件、MQTTトピックの権限モデルを把握したうえでデプロイしてください。
* より多くのフィールドが記入されたWindows向けジョブのサンプルが必要な場合は、親のカスタムツールバンドル内の `secrets-scanner-sample-job.json` をご参照ください。
* エンドポイントへ配布する前に、ジョブJSONは `POST /api/Jobs/validate` で検証できます。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/job-examples.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
