# API経由でRemote Engineを自動化

APIの専用セットにより、Remote EngineとRemote Engine Clusterのライフサイクルを自動化できます。

以下の例を使ってRemote Engine APIの作業を開始してください。

情報メモ注: APIリクエストにはアクセストークンが必要です。

* TMCトークンを生成:

  * ユーザーの場合は、[パーソナルアクセストークンを生成](https://help.qlik.com/talend/r/ja-JP/Cloud/management-console-user-guide/cloud-access-token)に従ってパーソナルアクセストークンを生成します。
  * サービスアカウントの場合は、[サービスアカウントトークンを生成](https://help.qlik.com/talend/r/ja-JP/Cloud/api-user-guide/generate-service-account-token)に従ってサービスアクセストークンを生成します。

  生成されたサービスアカウントトークンは30分後に期限切れになります。期限切れになった場合は、エンドポイントhttps://api.&lt;env&gt;.cloud.talend.com/security/oauth/tokenでPOSTメソッドを使って新しいトークンを生成します。トークンの生成に関する詳細は、[サービスアカウントトークンを生成](https://help.qlik.com/talend/r/ja-JP/Cloud/api-user-guide/generate-service-account-token)をご覧ください。

APIを通じてRemote EngineやRemote Engineクラスターで可能なアクションの詳細は、Talend APIドキュメンテーションポータルで[Report Engine](https://api.talend.com/apis/processing/2021-03/#section_remote-engines)をチェックしてください。

### このセクション内

* [プログラミングでRemote Engineを作成およびペアリング](https://help.qlik.com/talend/ja-JP/remote-engine-user-guide-linux/Cloud/creating-and-pairing-remote-engine-programmatically)
* [既存のRemote EngineをRemote Engine Clusterに追加](https://help.qlik.com/talend/ja-JP/remote-engine-user-guide-linux/Cloud/adding-existing-remote-engine-to-remote-engine-cluster)