{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"既存のAuthenticationを再利用する","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":"既存のauthenticationを再利用する","__idx":0},"children":["既存のAuthenticationを再利用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このガイドでは、「Reuse Connector Authentication」と呼ばれる新機能について説明します。この機能により、既存のConnector Authenticationを再利用できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しい統合ごとに新しいAuthenticationを作成する代わりに、既存のAuthenticationsを再利用できます。これにより、セキュリティが向上し、統合のセットアップ時の時間を節約できます。また、OAuth2認証方法のみをサポートする統合を、WorkflowおよびTD Toolbelt CLIで利用できるようになります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"authenticationの作成と再利用","__idx":1},"children":["Authenticationの作成と再利用"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しいauthenticationを作成するオプション","__idx":2},"children":["新しいAuthenticationを作成する（オプション）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["必要に応じて、新しいAuthenticationを作成します:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub > Catalog"]},"に移動します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/26617500.ca92fa4ab9277dca95973c6bd413fc662a3f0d04b57d58f7a8c952a29f28bbec.ef656343.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Catalogで統合を検索し、アイコンの上にマウスをホバーして",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/26617501.d6a5ad453f9fa98b4336af9506dadbd04ea44299e2f9af7fd760f75ac68e3f88.ef656343.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Credentialsタブが選択されていることを確認し、統合の資格情報を入力します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Authenticationの詳細は、タイプによって異なります（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-integrations/about-treasure-data-integrations"},"children":["About Treasure Data Integrations"]},"を参照）。以下はAuthenticationページの例です:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-4-18_11-7-14.94b62d1ba550c90c07c8664e6b98c607512237d3e1ca928c681329ba4c042beb.ef656343.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Authenticationの名前を入力し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"既存のauthentication-idを特定する","__idx":3},"children":["既存のAuthentication IDを特定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["既存のAuthenticationを再利用するには、まずAuthentication IDを特定する必要があります。このIDは通常、AuthenticationsのブラウザURLに表示されます。保存されているAuthenticationのAuthentication IDを取得するには、次の手順に従います。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソール UIで操作します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub > Authentications"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["保存されているAuthenticationをクリックします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ブラウザURLのAuthentication IDをコピーして保存します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/authid.8ef0eb138b0aca4a9fdfd1d3efabb92353a04b78567d36f64199b75e3e46dcfc.ef656343.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"既存のauthenticationを使用する","__idx":4},"children":["既存のAuthenticationを使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["既存のAuthenticationを再利用するには、設定キー td_authentication_id に Authentication IDの値を指定します。上記の例では、値は255574になります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この設定キーは、以下のCLIコマンドで使用できます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["connector:guess"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["connector:preview"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["connector:issue"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["connector:create"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["connector:update"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["sched:create"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["sched:update"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["query"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["export:result"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["また、以下のWorkflow Operatorでも使用できます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["td"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["td_run"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["td_load"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"新しいjobおよびworkflow設定でauthenticationを再利用する例","__idx":5},"children":["新しいJobおよびWorkflow設定でAuthenticationを再利用する例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいJobまたはWorkflow設定の場合、td_authentication_id を Authentication IDに設定するだけです。場合によっては、特定のtd_authentication_idで設定されたconfig.ymlファイルを最初に作成する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例えば、assume_role認証方法を使用するS3_v2統合の場合は次のようになります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image003.473bc72550b7f89df3d72ea9cbd484323780c34ee3eebc52ae2d07e228f3ee99.ef656343.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["connector:guessの設定ファイル"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このファイル（s3_v2_seed.yml）では、td_authentication_idがAuthentication ID 260370に設定されています。このファイルは、config.ymlファイルの作成に使用されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"---\nin:\n  type: s3_v2\n  td_authentication_id: 260370\n  bucket: qa-auto-test-3\n  path_prefix: 'qh_s3connector_test/Compress/assume_role_staging.csv'\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["connector:guess"]},"の結果"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["connector:guessは、s3_v2_seed.ymlを使用してconfig.ymlファイルを作成します。このファイルはTD Toolbelt CLIコマンドで使用されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td -k 1/xxx -e https://api.treasuredata.com connector:guess s3_v2_seed.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["推測された設定:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"---\nin:\n  type: s3_v2\n  bucket: qa-auto-test-3\n  path_prefix: qh_s3connector_test/Compress/assume_role_staging.csv\n  parser:\n    charset: UTF-8\n    newline: CRLF\n    type: csv\n    delimiter: \",\"\n    quote: \"\\\"\"\n    escape: \"\\\"\"\n    trim_if_not_quoted: false\n    skip_header_lines: 1\n    allow_extra_columns: false\n    allow_optional_columns: false\n    columns:\n    - {name: path, type: string}\n    - {name: cnt, type: string}\n    - {name: user, type: string}\n    - {name: host, type: string}\n    - {name: referer, type: string}\n    - {name: code, type: long}\n    - {name: agent, type: string}\n    - {name: size, type: long}\n    - {name: method, type: string}\n    - {name: time, type: long}\n  td_authentication_id: 260370\nout: {}\nexec: {}\nfilters: []\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["config.ymlファイルを作成しました。"," ","'td -k 1/xxx -e https://console.treasuredata.com connector:preview config.yml'を使用して、バルクロードのプレビューを確認してください。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["connector:preview"]},"の結果"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td -k 1/xxx -e https://console.treasuredata.com connector:preview config.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["connector:issue"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td -k 1/xxx -e https://api.treasuredata.com connector:issue config.yml --database tuan_db --table test_tbl\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["connector:create"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td -k 1/xxxx -e https://api.treasuredata.com connector:create bulkload_data_from_s3 \"0 * * * *\" tuan_db  test_tbl config.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["connector:update"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td -k 1/xxx -e https://api.treasuredata.com connector:update bulkload_data_from_s3 -c config.yml -s '0 0 * * *'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["sched:create"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td -k 1/xxx -e https://api.treasuredata.com sched:create result_to_s3_v2 '0 0 * * *' --database tuan_db 'SELECT * from aaks' --result '{\"type\":\"s3_v2\",\"td_authentication_id\":260370,\"duration_in_seconds\":3600,\"bucket\":\"qa-auto-test-3\",\"path\":\"qh_s3connector_test/Compress/assume_role_staging1.csv\",\"format\":\"csv\",\"compression\":\"none\",\"header\":true}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["sched:update"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td - k 1/xxx -e https://api.treasuredata.com sched:update result_to_s3_v2 -s '0 0 * * *' --database tuan_db --result '{\"type\":\"s3_v2\",\"td_authentication_id\":260370,\"duration_in_seconds\":3600,\"bucket\":\"qa-auto-test-3\",\"path\":\"qh_s3connector_test/Compress/assume_role_staging2.csv\",\"format\":\"csv\",\"compression\":\"none\",\"header\":true}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["query"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td -k \"1/xxxx\" -e https://api.treasuredata.com query --database tuan_db --wait \"SELECT * from aaks\" --type presto --result '{\"type\":\"s3_v2\",\"td_authentication_id\":260370,\"duration_in_seconds\":3600,\"bucket\":\"qa-auto-test-3\",\"path\":\"qh_s3connector_test/Compress/assume_role_staging.csv\",\"format\":\"csv\",\"compression\":\"none\",\"header\":true}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["export:result"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td -k \"1/xxxx\" -e https://api.treasuredata.com export:result 1696822041 '{\"type\":\"s3_v2\", \"td_authentication_id\":260370, \"bucket\": \"qa-auto-test-us-east-1\", \"path\":\"quang/test_export_result_02.csv\"}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"新しいworkflow設定の例","__idx":6},"children":["新しいWorkflow設定の例"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_load"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例では、td_loadコマンドがs3_v2_guessed.ymlを使用します。このファイルでは、td_authentication_idが260370に設定されています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"s3_v2_guessedymlファイル","__idx":7},"children":["s3_v2_guessed.ymlファイル"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"---\nin:\n  type: s3_v2\n  td_authentication_id: 260370\n  bucket: qa-auto-test-3\n  path_prefix: 111time.csv\n  parser:\n    charset: UTF-8\n    newline: CRLF\n    type: csv\n    delimiter: \",\"\n    quote: \"\\\"\"\n    escape: \"\\\"\"\n    trim_if_not_quoted: false\n    skip_header_lines: 1\n    allow_extra_columns: false\n    allow_optional_columns: false\n    columns:\n    - name: col_1\n      type: string\n    - name: col_2\n      type: string\n    - name: col_3\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+import_from_s3_assume_role_with_existing_connection:\n  td_load>: s3_v2_guessed.yml\n  database: tuan_data\n  table: wf_test\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["query"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+query_data_and_write_result_with_existing_connection_by_url:\n  td>:\n  query: 'select * from wf_test'\n  database: tuan_data\n  result_url: '{\"td_authentication_id\": 260370, \"bucket\": \"qa-auto-test-3\", \"path\": \"viet/assume_role_from_eu01.csv\"}'\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_run"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例では、presto_select_all_s3v2は保存されたクエリです。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+query_sql:\n  td_run>: presto_select_all_s3v2\n  database: quang\n  result_url: '{\"type\":\"s3_v2\", \"td_authentication_id\":260370, \"bucket\": \"qa-auto-test-us-east-1\", \"path\":\"quang/wf_jan16_1444.csv\"}'\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_result_export"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このOperatorは、result_connectionでTreasure コンソール UIのAuthentication名を返すことにより、レガシー方式で既存の統合Authenticationの再利用をサポートします。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"_export:\n  td:\n    database: quang\n\n+export_query_result:\n  td_result_export>:\n  job_id: 14660140\n  result_connection: quang_s3v2_happy_case_1195\n  result_settings:\n    bucket: qa-auto-test-us-east-1\n    path: quang/s3v2_wf_jan16_1655.csv\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"既存のjobまたはworkflow設定でauthenticationを再利用する例","__idx":8},"children":["既存のJobまたはWorkflow設定でAuthenticationを再利用する例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["既存のJobおよびWorkflow設定の場合、設定から既存のConnector Authenticationの宣言を削除し、Authentication IDを指定するtd_authentication_idに置き換えるだけです。この例では、Treasure コンソールのAuthentication URLの末尾から取得したAuthenticationは11です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image005.7b64922d3538209cbd99829b9ebd4869c41055c580432949806338d151aad11c.ef656343.png","alt":""},"children":[]}]}]},"headings":[{"value":"既存のAuthenticationを再利用する","id":"既存のauthenticationを再利用する","depth":1},{"value":"Authenticationの作成と再利用","id":"authenticationの作成と再利用","depth":2},{"value":"新しいAuthenticationを作成する（オプション）","id":"新しいauthenticationを作成するオプション","depth":3},{"value":"既存のAuthentication IDを特定する","id":"既存のauthentication-idを特定する","depth":3},{"value":"既存のAuthenticationを使用する","id":"既存のauthenticationを使用する","depth":3},{"value":"新しいJobおよびWorkflow設定でAuthenticationを再利用する例","id":"新しいjobおよびworkflow設定でauthenticationを再利用する例","depth":4},{"value":"新しいWorkflow設定の例","id":"新しいworkflow設定の例","depth":4},{"value":"s3_v2_guessed.ymlファイル","id":"s3_v2_guessedymlファイル","depth":3},{"value":"既存のJobまたはWorkflow設定でAuthenticationを再利用する例","id":"既存のjobまたはworkflow設定でauthenticationを再利用する例","depth":4}],"frontmatter":{"seo":{"title":"既存のAuthenticationを再利用する"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/integration-hub/authentications/reusing-an-existing-authentication","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}