{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"TD IntegrationsでTreasure ワークフローを使用する","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"td-integrationsでtreasure-ワークフローを使用する","__idx":0},"children":["TD IntegrationsでTreasure ワークフローを使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ほとんどのバッチインポートおよびエクスポートintegrationsは、より高度なデータパイプラインの一部としてworkflowsに追加できます。基本的な手順は次のとおりです："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["YAMLファイルであるworkflow定義を準備します。importインテグレーションには",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_load>"]}," operatorを、exportインテグレーションには",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td>"]}," operatorを使用します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールまたはコマンドラインインターフェースからworkflowを実行します"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"import-integrationの事前定義されたsourceを使用する","__idx":1},"children":["import integrationの事前定義されたSourceを使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["import integration用のSourceをすでに作成している場合は、そのユニークIDを使用してworkflow内で実行できます"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integration Hub"]},"でターゲットのSourceを特定します"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["..."]},"メニューを選択し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Copy Unique ID"]},"を選択します"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/using-td-workflow-with-td-integrations-2024-08-09.f0acc37b697f4693c6d5e5f2fccc80706461e31eff5d1baabef37ed64a2c2773.18b4736f.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_load>"]}," operatorを使用してworkflowタスクを定義します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+my_first_worklfow_step:\n   td_load>: unique_id_of_your_source\n","lang":"yaml"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"import-integration用の設定ファイルを使用する","__idx":2},"children":["import integration用の設定ファイルを使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["または、import connectorのすべてのパラメータをYAMLファイルに記述し、workflow定義でそれを参照することもできます"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["import integration用の設定ファイル（例：",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["load_config.yml"]},"）を準備します。例と完全なパラメータの説明は、各integrationのドキュメントに記載されています"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["それを参照するworkflowを定義します"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+my_first_workflow_step:\n   td_load>: config/load_config.yml\n   database: my_database_name\n   table: my_table_name\n","lang":"yaml"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"export-integrationを含むworkflowを定義する","__idx":3},"children":["export integrationを含むworkflowを定義する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリを実行し、その結果をexport integrationにアップロードするworkflowタスクを定義する方法がいくつかあります"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td>"]}," operatorと事前定義されたAuthenticationの",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["name"]},"を使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/using-td-workflow-with-td-integrations-2024-08-09-1.a52133de619be06eed4ff85425ba571cd590adc97e5e7d600dd617864ea051f6.18b4736f.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+query_and_export:\n   td>: queries/sample.sql\n   database: my_database\n   result_connection: ads_with_oauth\n   result_settings:\n      parameter1: value1\n      parameter2: value2\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["パラメータの説明は、以下のSFCC Export Integrationのように、各integrationのドキュメントに記載されています"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/using-td-workflow-with-td-integrations-2024-08-14.c8d92f28ae6ba0e800fa2fda32d81638c3713763f4f9e5dd43fdb074178ff49e.18b4736f.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td>"]}," operatorと事前定義されたAuthenticationの",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ID"]},"を使用する"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/google-ads-import-integration-v2-2024-08-06-9.fdc162a377e20998a8f41e69c38afef49bbd1ab0b84f6b913fd06fe82b2010f3.7c52a81f.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+query_data_and_write_result_with_existing_authentication_by_url:\n   td>:   query: 'select * from wf_test'\n   database: my_database\n   result_url: '{\"type\": \"google_adwords_v2\", \"td_authentication_id\": 330392, \"bucket\": \"qa-auto-test-3\", \"path\": \"viet/assume_role_from_eu01.csv\"}'\n","lang":"yaml"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_run>"]}," operatorと保存済みクエリを使用する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+query_a_saved_sql:\n   td_run>: presto_select_all_s3v2\n   database: my_database\n   result_url: '{\"type\":\"s3_v2\", \"td_authentication_id\":260370, \"bucket\": \"qqus-east-1\", \"path\":\"foo/wf_jan16_1444.csv\"}'\n","lang":"yaml"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"workflowを実行する","__idx":4},"children":["workflowを実行する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["workflowを定義して実行するには2つのオプションがあります"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure コンソール"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Workflows"]},"のグラフィカルインターフェースを使用する"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["TD Toolbeltのコマンドラインインターフェースを使用する"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソールを使用する方がコマンドラインインターフェースよりも簡単ですが、Treasure CLIツールはより複雑な設定のオプションを提供します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure ワークフローの構文と使用方法の詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/data-workbench/workflows/about-workflow-syntax"},"children":["こちら"]},"を参照してください"]}]},"headings":[{"value":"TD IntegrationsでTreasure ワークフローを使用する","id":"td-integrationsでtreasure-ワークフローを使用する","depth":1},{"value":"import integrationの事前定義されたSourceを使用する","id":"import-integrationの事前定義されたsourceを使用する","depth":2},{"value":"import integration用の設定ファイルを使用する","id":"import-integration用の設定ファイルを使用する","depth":2},{"value":"export integrationを含むworkflowを定義する","id":"export-integrationを含むworkflowを定義する","depth":2},{"value":"workflowを実行する","id":"workflowを実行する","depth":3}],"frontmatter":{"seo":{"title":"TD IntegrationsでTreasure ワークフローを使用する"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/using-td-workflow-with-td-integrations","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}