{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"API キーと API サーバーの検索順序リファレンス","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":"api-キーと-api-サーバーの検索順序リファレンス","__idx":0},"children":["API キーと API サーバーの検索順序リファレンス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["アクセスできるはずのデータベースにアクセスできない場合は、正しい環境を使用しているか、正しい API キーを使用しているか確認してください。お使いのオペレーティングシステムに適切なコマンドを使用して、td の設定と環境変数がアクセスに必要な API キーとエンドポイントと一致していることを確認できます。正しい権限があっても、特定のデータベースにアクセスできない場合はさまざまな理由が考えられます。原因を特定するために、TD Toolbelt が API キーと API サーバーを検索する順序を理解しておくと役立ちます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"api-キーの検索順序","__idx":1},"children":["API キーの検索順序"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["コマンドラインで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td -k"]}," オプションで指定（設定ファイルを読み込む代わりに API キーを指定できます）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TREASURE_DATA_API_KEY"]}," 環境変数"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD_API_KEY"]}," 環境変数"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td -c"]}," オプションで指定されたパスの設定ファイル内の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD_API_KEY"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TREASURE_DATA_CONFIG_PATH"]}," 環境変数で指定されたパスの設定ファイル内の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD_API_KEY"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD_CONFIG_PATH"]}," 環境変数で指定されたパスの設定ファイル内の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD_API_KEY"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.td/td.conf"]}," にある設定ファイル内の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD_API_KEY"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"api-サーバーの検索順序","__idx":2},"children":["API サーバーの検索順序"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["コマンドラインで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td -e"]}," オプションで指定（エンドポイントを指定できます）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TREASURE_DATA_API_SERVER"]}," 環境変数"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD_API_SERVER"]}," 環境変数"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td -c"]}," オプションで指定されたパスの設定ファイル内の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD_API_SERVER"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TREASURE_DATA_CONFIG_PATH"]}," 環境変数で指定されたパスの設定ファイル内の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD_API_SERVER"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD_CONFIG_PATH"]}," 環境変数で指定されたパスの設定ファイル内の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD_API_SERVER"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.td/td.conf"]}," にある設定ファイル内の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD_API_SERVER"]}]}]}]},"headings":[{"value":"API キーと API サーバーの検索順序リファレンス","id":"api-キーと-api-サーバーの検索順序リファレンス","depth":1},{"value":"API キーの検索順序","id":"api-キーの検索順序","depth":2},{"value":"API サーバーの検索順序","id":"api-サーバーの検索順序","depth":2}],"frontmatter":{"seo":{"title":"API キーと API サーバーの検索順序リファレンス"}},"lastModified":"2026-02-17T05:21:32.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/tools/cli-and-sdks/search-order","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}