すべてのプロダクト
Search
ドキュメントセンター

DataWorks:GetMetaTablePartition

最終更新日:Jan 23, 2026

テーブルのパーティションのリストを取得します。

操作説明

この操作は、MaxCompute および E-MapReduce (EMR) テーブルのみをサポートします。 EMR の場合、サポートされるクラスタータイプには、メタデータ管理に Data Lake Formation (DLF) を使用する新しいデータレイククラスター、および V3.41.0 または V5.7.0 より前のバージョンの Hadoop クラスターが含まれます。

今すぐお試しください

この API を OpenAPI Explorer でお試しください。手作業による署名は必要ありません。呼び出しに成功すると、入力したパラメーターに基づき、資格情報が組み込まれた SDK コードが自動的に生成されます。このコードをダウンロードしてローカルで使用できます。

テスト

RAM 認証

下表に、この API を呼び出すために必要な認証情報を示します。認証情報は、RAM (Resource Access Management) ポリシーを使用して定義できます。以下で各列名について説明します。

  • アクション:特定のリソースに対して実行可能な操作。ポリシー構文ではAction要素として指定します。

  • API:アクションを具体的に実行するための API。

  • アクセスレベル:各 API に対して事前定義されているアクセスの種類。有効な値:create、list、get、update、delete。

  • リソースタイプ:アクションが作用するリソースの種類。リソースレベルでの権限をサポートするかどうかを示すことができます。ポリシーの有効性を確保するため、アクションの対象として適切なリソースを指定してください。

    • リソースレベルの権限を持つ API の場合、必要なリソースタイプはアスタリスク (*) でマークされます。ポリシーのResource要素で対応する ARN を指定してください。

    • リソースレベルの権限を持たない API の場合、「すべてのリソース」と表示され、ポリシーのResource要素でアスタリスク (*) でマークされます。

  • 条件キー:サービスによって定義された条件のキー。このキーにより、きめ細やかなアクセス制御が可能になります。この制御は、アクション単体に適用することも、特定のリソースに対するアクションに適用することもできます。Alibaba Cloud は、サービス固有の条件キーに加えて、すべての RAM 統合サービスに適用可能な一連の共通条件キーを提供しています。

  • 依存アクション:ある特定のアクションを実行するために、前提として実行が必要となる他のアクション。依存アクションの権限も RAM ユーザーまたは RAM ロールに付与する必要があります。

アクション

アクセスレベル

リソースタイプ

条件キー

依存アクション

dataworks:*

get

*All Resource

*

なし なし

リクエストパラメーター

パラメーター

必須 / 任意

説明

PageNumber

integer

任意

ページ番号。

1

PageSize

integer

任意

1ページあたりのエントリ数。 デフォルト値:10。 最大値:100。

10

TableGuid

string

任意

テーブルの一意の識別子。

odps.engine_name.table_name

ClusterId

string

任意

EMR クラスターの ID。 DataSourceTypeEMR の場合にのみ必須です。

EMR コンソールにログインしてクラスター ID を取得します。

abc

DatabaseName

string

任意

データベースの名前。 DataSourceTypeEMR の場合にのみ必須です。

ListMetaDB」操作を呼び出してデータベース名を照会します。

abc

TableName

string

任意

EMR テーブルの名前。 DataSourceTypeEMR の場合にのみ必須です。

GetMetaDBTableList」操作を呼び出してテーブル名を照会します。

abc

DataSourceType

string

任意

データソースタイプ。 有効な値:ODPS および EMR。

emr

SortCriterion

object

任意

パーティションのソートロジック。

SortField

string

任意

パーティションのソートに使用するフィールド。 有効な値:name および modify_time。 デフォルト値:パーティションの作成時刻。

name

Order

string

任意

ソート順。 有効な値:asc および desc。 デフォルト値:desc

desc

レスポンスフィールド

フィールド

説明

object

返されるデータ。

HttpStatusCode

integer

HTTP ステータスコード。

200

ErrorMessage

string

エラーメッセージ。

The connection does not exist.

RequestId

string

リクエスト ID。

0bc1ec92159376

Success

boolean

リクエストが成功したかどうかを示します。

true

ErrorCode

string

エラーコード。

Invalid.Tenant.ConnectionNotExists

Data

object

返されるデータ。

PageNumber

integer

ページ番号。

1

PageSize

integer

1ページあたりのエントリ数。 デフォルト値:10。 最大値:100。

10

TotalCount

integer

パーティションの総数。

100

DataEntityList

array<object>

パーティションのリスト。

object

データの構造。

PartitionPath

string

パーティションのディレクトリ。

abc

DataSize

integer

パーティションサイズ。 単位:バイト。

19

PartitionName

string

パーティションの名前。

pt=20170614

Comment

string

備考。

备注

ModifiedTime

integer

変更時刻。 単位:ミリ秒。

1590032868000

CreateTime

integer

作成時刻。 単位:ミリ秒。

1590032868000

RecordCount

integer

レコード数。

233

PartitionType

string

パーティションのタイプ。

abc

PartitionGuid

string

パーティションの一意の識別子。

odps.engine_name.table_name.pt=20170614

PartitionLocation

string

Hive パーティションの場所。

abc

TableGuid

string

テーブルの一意の識別子。

odps.engine_name.table_name

成功レスポンス

JSONJSON

{
  "HttpStatusCode": 200,
  "ErrorMessage": "The connection does not exist.",
  "RequestId": "0bc1ec92159376",
  "Success": true,
  "ErrorCode": "Invalid.Tenant.ConnectionNotExists",
  "Data": {
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 100,
    "DataEntityList": [
      {
        "PartitionPath": "abc",
        "DataSize": 19,
        "PartitionName": "pt=20170614",
        "Comment": "备注",
        "ModifiedTime": 1590032868000,
        "CreateTime": 1590032868000,
        "RecordCount": 233,
        "PartitionType": "abc",
        "PartitionGuid": "odps.engine_name.table_name.pt=20170614",
        "PartitionLocation": "abc",
        "TableGuid": "odps.engine_name.table_name"
      }
    ]
  }
}

エラーコード

HTTP ステータスコード

エラーコード

エラーメッセージ

説明

400 InvalidParameter.Meta.CommonError The specified parameter is invalid.
400 InvalidParameter.Meta.Illegal The app guid parameter is invalid.
400 InvalidParameter.Meta.IllegalDate The date format is invalid.
400 InvalidParameter.Meta.IllegalPageError The parameter for paging is invalid.
400 InvalidParameter.Meta.NotExist The object does not exist.
400 InternalError.Meta.NoCalcEngine An error occurred while retrieving the compute engine based on the MaxCompute project.
500 InternalError.System An internal system error occurred. Try again later.
500 InternalError.UserId.Missing An internal system error occurred. Try again later.
500 InternalError.Meta.TenantTimeOut Failed to connect to the interface network.
500 InternalError.Meta.Unknown An unknown error occurred while processing your request.
403 Forbidden.Meta.NoTenant The user is not the owner of any tenants.
403 Forbidden.Access Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.
429 Throttling.Api The request for this resource has exceeded your available limit.
429 Throttling.Api.Risk The request for this resource has exceeded your daily available limit.
429 Throttling.System The DataWorks system is busy. Try again later.
429 Throttling.User Your request is too frequent. Try again later.

完全なリストについては、「エラーコード」をご参照ください。

変更履歴

完全なリストについては、「変更履歴」をご参照ください。