カタログ エンドポイントの詳細を取得する

Lakehouse ランタイム カタログを使用すると、ボーダーレス Lakehouse のカタログ エンドポイントの構成とメタデータを検査できます。Apache Iceberg REST カタログ エンドポイントの場合、クライアント接続に必要な REST カタログ URI、認証方法、関連付けられたサービス アカウントを取得できます。カタログ エンドポイントの詳細については、カタログタイプとエンドポイント構成をご覧ください。

始める前に

  1. Lakehouse ランタイム カタログについてを読み、Lakehouse ランタイム カタログの仕組みとサービスの制限事項を理解する。
  2. Google Cloud アカウントにログインします。 Google Cloudを初めて使用する場合は、アカウントを作成して、実際のシナリオで Google プロダクトのパフォーマンスを評価してください。新規のお客様には、ワークロードの実行、テスト、デプロイができる無料クレジット $300 分を差し上げます。

    In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

    Verify that billing is enabled for your Google Cloud project.

    Enable the BigLake API, if it is not already enabled.

    Roles required to enable APIs

    To enable APIs, you need the serviceusage.services.enable permission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.

    Enable the API

    In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

    Verify that billing is enabled for your Google Cloud project.

    Enable the BigLake API, if it is not already enabled.

    Roles required to enable APIs

    To enable APIs, you need the serviceusage.services.enable permission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.

    Enable the API

必要なロール

カタログ エンドポイントの詳細を表示するために必要な権限を取得するには、プロジェクトに対する次の IAM ロールを付与するよう管理者に依頼してください。

ロールの付与については、プロジェクト、フォルダ、組織へのアクセス権の管理をご覧ください。

必要な権限は、カスタムロールや他の事前定義ロールから取得することもできます。

カタログ エンドポイントの詳細を取得する

カタログ エンドポイントの構成とプロパティを検査します。

コンソール

  1. Google Cloud コンソールで、[Lakehouse] ページを開きます。

    [レイクハウス] に移動

  2. カタログの名前をクリックします。

  3. [カタログの詳細] ページで、カタログ ID、作成タイムスタンプ、REST カタログ URI、認証方法、サービス アカウントなど、カタログに関する情報を確認します。

    連携カタログの場合、[カタログの詳細] ページには、構成されている場合に次のプロパティも表示されます。

    • ID モード: Databricks Unity Catalog 接続の Service identity または User identity federation を表示します。
    • サービス ディレクトリ名: AWS Glue、Snowflake Horizon Catalog、Databricks Unity Catalog 接続でプライベート クエリ転送用に構成された Service Directory サービス リソース名が表示されます。
    • メタデータ Service Directory 名: AWS Glue、Snowflake Horizon Catalog、Databricks Unity Catalog 接続でプライベート バックグラウンド メタデータ更新用に構成された Service Directory サービス リソース名が表示されます。

gcloud

Google Cloud CLI を使用してカタログ エンドポイントを記述するには、gcloud biglake iceberg catalogs describe コマンドを実行します。

gcloud biglake iceberg catalogs describe CATALOG_ID \
    --project="PROJECT_ID"

次のように置き換えます。

  • CATALOG_ID: カタログの ID。
  • PROJECT_ID: 実際の Google Cloud プロジェクト ID。

REST

REST API を使用してカタログ エンドポイントの詳細と構成を取得するには、GetIcebergCatalog エンドポイントに GET リクエストを送信します。

GET /iceberg/v1/restcatalog/extensions/projects/PROJECT_ID/catalogs/CATALOG_ID

レスポンスには、カタログ構成を記述する IcebergCatalog JSON オブジェクトが含まれます。

次のように置き換えます。

  • PROJECT_ID: 実際の Google Cloud プロジェクト ID。
  • CATALOG_ID: カタログの ID。