All Products
Search
Document Center

DataWorks:GetApplicationContents

Last Updated:Jun 24, 2026

Mengkueri konten aplikasi izin sumber daya berdasarkan ID instans proses yang ditentukan.

Deskripsi operasi

Deskripsi Permintaan

  • API ini digunakan untuk mengkueri detail aplikasi izin sumber daya berdasarkan ProcessInstanceId yang diberikan.

  • Parameter ProcessInstanceId yang valid harus disediakan di permintaan.

  • Tanggapan mencakup informasi dasar, status, dan daftar konten aplikasi spesifik.

  • Setiap konten aplikasi mencakup informasi sumber daya detail, penerima hak, izin operasi yang diminta, dan lainnya.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

ProcessInstanceId

string

Yes

ID instans proses persetujuan aplikasi yang dikirim.

332066440109224007

Elemen respons

Element

Type

Description

Example

object

Parameter tanggapan.

RequestId

string

ID permintaan, yang digunakan untuk melacak log dan pemecahan masalah.

34267E2E-0335-1A60-A1F0-ADA530890CBA

Data

object

Instans proses dan konten aplikasi terkait.

ProcessInstanceId

string

ID instans proses.

332066440109224007

DefSchema

string

Tipe sumber daya.

Catatan: Tipe sumber daya yang didukung untuk aplikasi dibatasi oleh ResourceSchema.name.

Referensi: Dokumentasi ResourceSchema di situs internasional

Valid values:

  • MaxCompute :

    MaxCompute.

  • LINDORM :

    LINDORM.

  • EMR_ON_ECS_HIVE :

    EMR_ON_ECS_HIVE.

  • DLF_V1 :

    DLF_V1.

  • HOLOGRES :

    HOLOGRES.

  • SEVERLESS_STARROCKS :

    SEVERLESS_STARROCKS.

  • DATAWORKS_ENTITY :

    DATAWORKS_ENTITY.

  • DLF_NEXT :

    DLF_NEXT.

MaxCompute

Reason

string

Alasan aplikasi.

业务需要

ApplicationTime

integer

Waktu aplikasi dikirim, dalam bentuk timestamp milidetik.

1779675618000

Status

string

Status persetujuan. Nilai valid:

  • WaitApproval: Menunggu persetujuan.

  • Confirmed: Menunggu otorisasi.

  • RejectApproval: Persetujuan ditolak.

  • AuthorizeSucceed: Otorisasi berhasil.

  • AuthorizeFailed: Otorisasi gagal.

  • Deleted: Dihapus.

  • Canceled: Dibatalkan.

Valid values:

  • WaitApproval :

    Menunggu Persetujuan.

  • AuthorizeSucceed :

    Otorisasi Berhasil.

  • AuthorizeFailed :

    Otorisasi Gagal.

  • Confirmed :

    Menunggu Otorisasi.

  • Deleted :

    Dihapus.

  • RejectApproval :

    Persetujuan Ditolak.

WaitApproval

Contents

array<object>

Daftar konten aplikasi.

array<object>

Detail konten aplikasi.

Id

string

The unique ID of the application content item.

Y9H7AKFmjhWzLYdZNDZA5

ProcessInstanceId

string

The ID of the approval process instance for the application.

777799223

TenantId

string

The tenant ID.

69973837489

ResourceName

string

The specific type of the resource, such as a table.

table

DefSchema

string

The resource type.

Valid values:

  • MaxCompute :

    MaxCompute

  • LINDORM :

    Lindorm

  • EMR_ON_ECS_HIVE :

    EMR_ON_ECS_HIVE

  • DLF_V1 :

    DLF_V1

  • HOLOGRES :

    Hologres

  • SEVERLESS_STARROCKS :

    SEVERLESS_STARROCKS

  • DATAWORKS_ENTITY :

    DATAWORKS_ENTITY

  • DLF_NEXT :

    DLF_NEXT

MaxCompute

AuthMethod

string

The authorization method.

ranger

Resource

object

The resource declaration.

DefSchema

string

The name of the ResourceSchema that defines how to parse this resource.

Valid values:

  • MaxCompute :

    MaxCompute

  • LINDORM :

    Lindorm

  • EMR_ON_ECS_HIVE :

    EMR_ON_ECS_HIVE

  • DLF_V1 :

    DLF_V1

  • HOLOGRES :

    Hologres

  • SEVERLESS_STARROCKS :

    SEVERLESS_STARROCKS

  • DATAWORKS_ENTITY :

    DATAWORKS_ENTITY

  • DLF_NEXT :

    DLF_NEXT

MaxCompute

DefVersion

string

The version of the ResourceSchema that defines how to parse this resource.

v1.0.0

MetaData

string

The resource metadata. The structure of the metadata is defined by the ResourceSchema.

"{\"schema\":\"default\",\"threeTierModel\":false,\"workspace\":\"449656\",\"project\":\"sync_destination\",\"table\":\"order_table\",\"tenant\":\"524997424564736\"}"

Grantee

object

The grantee.

PrincipalType

string

The principal type. Valid values:

  • RamUser

  • RamRole

  • DlfRole

Valid values:

  • DlfRole :

    DlfRole

  • RamUser :

    RamUser

  • RamRole :

    RamRole

RamRole

PrincipalId

string

The ID of the principal. The format of the ID varies based on the PrincipalType value:

  • If PrincipalType is RamUser, this parameter specifies the ID of a DataWorks user.

  • If PrincipalType is RamRole, this parameter specifies the ID of a role in DataWorks. The ID must be prefixed with ROLE_.

  • If PrincipalType is DlfRole, this parameter specifies the name of a DlfNext role.

ROLE_3133343434

AccessTypes

array

A list of the permissions requested for the resource.

string

A requested permission.

select

FinalAccessTypes

array

A list of the permissions granted in the final approval.

string

An approved permission.

select

ExpirationTime

integer

The time when the permissions expire. This value is a millisecond-precision timestamp.

1785835708000

Status

string

The approval status. Valid values:

  • WaitApproval: The item is pending approval.

  • Confirmed: The item is pending authorization.

  • RejectApproval: The item was rejected.

  • AuthorizeSucceed: Authorization was successful.

  • AuthorizeFailed: Authorization failed.

  • Deleted: The item was deleted during the approval process.

  • Canceled: The item was canceled.

Valid values:

  • WaitApproval :

    Pending approval

  • AuthorizeSucceed :

    Authorization succeeded

  • AuthorizeFailed :

    Authorization failed

  • Confirmed :

    Pending authorization

  • Deleted :

    Deleted during approval

  • RejectApproval :

    Approval rejected

Deleted

CreateTime

integer

The time when the content item was created. This value is a millisecond-precision timestamp.

1773972024000

UpdateTime

integer

The time when the content item was last updated. This value is a millisecond-precision timestamp.

1773972024000

Contoh

Respons sukses

JSONformat

{
  "RequestId": "34267E2E-0335-1A60-A1F0-ADA530890CBA",
  "Data": {
    "ProcessInstanceId": "332066440109224007",
    "DefSchema": "MaxCompute",
    "Reason": "业务需要",
    "ApplicationTime": 1779675618000,
    "Status": "WaitApproval",
    "Contents": [
      {
        "Id": "Y9H7AKFmjhWzLYdZNDZA5",
        "ProcessInstanceId": "777799223",
        "TenantId": "69973837489",
        "ResourceName": "table",
        "DefSchema": "MaxCompute",
        "AuthMethod": "ranger",
        "Resource": {
          "DefSchema": "MaxCompute",
          "DefVersion": "v1.0.0",
          "MetaData": "\"{\\\"schema\\\":\\\"default\\\",\\\"threeTierModel\\\":false,\\\"workspace\\\":\\\"449656\\\",\\\"project\\\":\\\"sync_destination\\\",\\\"table\\\":\\\"order_table\\\",\\\"tenant\\\":\\\"524997424564736\\\"}\""
        },
        "Grantee": {
          "PrincipalType": "RamRole",
          "PrincipalId": "ROLE_3133343434"
        },
        "AccessTypes": [
          "select"
        ],
        "FinalAccessTypes": [
          "select"
        ],
        "ExpirationTime": 1785835708000,
        "Status": "Deleted",
        "CreateTime": 1773972024000,
        "UpdateTime": 1773972024000
      }
    ]
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.