全部產品
Search
文件中心

DataWorks:ListMyApplications

更新時間:Jun 24, 2026

用於查詢目前使用者發起的所有資源存取權限申請單。

介面說明

請求說明

  • 該介面支援分頁查詢,透過NextTokenPageSize參數控制。

  • DefSchema為必填項,指定資源類型。

  • ResourceType列表中可以包含多個資源類型,用於更精確地篩選申請單。

  • 可以透過設定StartTimeEndTime來限制查詢的時間範圍。

  • Statuses允許過濾特定狀態下的申請單,如待審批、已授權等。

  • 如果需要根據具體的資源或授權對象進行篩選,可以透過ResourceGrantee欄位提供詳細資訊。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

DefSchema

string

根據資源類型篩選。

注意:系統支援申請的資源類型受 ResourceSchema .name 約束。

附: ResourceSchema 國際站說明文件

MaxCompute

ResourceType

array

根據最小權限資源類型篩選。

注意:最小權限資源類型受 ResourceSchema . resources[*].isValidLeaf 為 true 約束。

附: ResourceSchema 國際站說明文件

string

資源類型。

table

Resource

object

根據資源做精確/泛化篩選,資源的描述受 ResourceSchema 約束。

附: ResourceSchema 國際站說明文件

DefSchema

string

資源類型。

注意:系統支援申請的資源類型受 ResourceSchema .name 約束。

附: ResourceSchema 國際站說明文件

MaxCompute

DefVersion

string

資源解析版本受 ResourceSchema .version 約束。

ResourceSchema 國際站說明文件

v1.0.0

MetaData

object

資源中繼資料。

注意:中繼資料受 ResourceSchema .resources 約束,有效的資源宣告需要包含 level 0 到 validLeaf 層的全路徑中繼資料宣告。

附: ResourceSchema 國際站說明文件

any

资源元数据

{ "workspace": "449056", "project": "sync_destination" }

StartTime

integer

申請時間開始(毫秒時間戳)。

1771948800000

EndTime

integer

申請時間結束(毫秒時間戳)。

1779724799999

Statuses

array

審批狀態篩選。列舉:

  • WaitApproval 待審批

  • Confirmed 待授權

  • RejectApproval 審批拒絕

  • AuthorizeSucceed 授權成功

  • AuthorizeFailed 授權失敗

  • Deleted 已刪除

  • Canceled 已撤回。

Deleted

string

資源狀態。

WAIT_APPROVAL

NextToken

string

遊標。

eyJpZCI6MTIzfQ==

PageSize

integer

每頁大小(預設 10,最大 200)。

20

返回參數

名稱

類型

描述

樣本值

object

分頁結果。

RequestId

string

API 請求 ID,uuid 產生。

0bc5df3a17****903790e8e8a

Data

object

分頁結果中的資料部分。

PageSize

integer

每頁大小(預設 10,最大 200)。

20

NextToken

string

遊標。

eyJpZCI6NDU2fQ==

HasMore

boolean

是否有更多資料。

false

Data

array<object>

申請單詳情列表。

array<object>

審批流程與申請內容。

ProcessInstanceId

string

流程執行個體 ID

176906667488145

DefSchema

string

資源類型

MaxCompute

Reason

string

申請理由

业务需要

ApplicationTime

integer

申請發起時間

1779695088000

Status

string

審批狀態篩選。枚舉:

  • WaitApproval 待審批

  • Confirmed 待授權

  • RejectApproval 審批拒絕

  • AuthorizeSucceed 授權成功

  • AuthorizeFailed 授權失敗

  • Deleted 已刪除

  • Canceled 已撤回

Deleted

Contents

array<object>

申請內容

array<object>

申請內容

Id

string

申請內容主鍵

a8aa620037bb410ea13837f9b4d053d8

ProcessInstanceId

string

發起申請的審批次程序執行個體 ID

777799223

TenantId

string

租戶 ID

69973837489

ResourceName

string

最小許可權資源類型

table

DefSchema

string

資源類型

MAXCOMPUTE

AuthMethod

string

授權方式

default

Resource

object

資源聲明

DefSchema

string

資源解析依賴的 ResourceSchema.name

MaxCompute

DefVersion

string

資源解析依賴的 ResourceSchema.version

v1.0.0

MetaData

object

資源中繼資料,資料內容受 ResourceSchema 約束

any

資源內容

{ "schema": "default", "threeTierModel": false, "project": "sync_dtestn", "workspace": "4477656", "table": "order", "tenant": "524257424864736" }

Grantee

object

授權對象

PrincipalType

string

授權主體類型:

  • RamRole

  • RamUser

  • DataworksTenantMember

  • DataworksTenantRole

  • DataworksProjectMember

  • DataworksProjectRole

  • DlfRole

RamRole

PrincipalId

string

授權主體 ID:

  • RamUser:Dataworks UserId

  • RamRole:"ROLE_"開頭的 Dataworks UserId

  • DataworksTenantMember:Dataworks UserId

  • DataworksTenantRole:Dataworks tenant roleCode

  • DataworksProjectRole:Dataworks workspace roleCode

  • DataworksProjectMember:Dataworks UserId

  • DlfRole:DlfNext role name

ROLE_3133343434

AccessTypes

array

發起申請的資源操作許可權

string

許可權

select

FinalAccessTypes

array

最終審批通過的資源操作許可權

string

許可權

select

ExpirationTime

integer

許可權到期日,毫秒時間戳記

1782354014507

Status

string

審批狀態篩選。枚舉:

  • WaitApproval 待審批

  • Confirmed 待授權

  • RejectApproval 審批拒絕

  • AuthorizeSucceed 授權成功

  • AuthorizeFailed 授權失敗

  • Deleted 已刪除

  • Canceled 已撤回

Deleted

CreateTime

integer

建立時間

2022-11-29 15:04:52

UpdateTime

integer

更新時間

2022-07-08 23:58:59

樣本

正常返回樣本

JSON格式

{
  "RequestId": "0bc5df3a17****903790e8e8a",
  "Data": {
    "PageSize": 20,
    "NextToken": "eyJpZCI6NDU2fQ==",
    "HasMore": false,
    "Data": [
      {
        "ProcessInstanceId": "176906667488145",
        "DefSchema": "MaxCompute",
        "Reason": "业务需要",
        "ApplicationTime": 1779695088000,
        "Status": "Deleted",
        "Contents": [
          {
            "Id": "a8aa620037bb410ea13837f9b4d053d8",
            "ProcessInstanceId": "777799223",
            "TenantId": "69973837489",
            "ResourceName": "table",
            "DefSchema": "MAXCOMPUTE",
            "AuthMethod": "default",
            "Resource": {
              "DefSchema": "MaxCompute",
              "DefVersion": "v1.0.0",
              "MetaData": {
                "key": "{\n                \"schema\": \"default\",\n                \"threeTierModel\": false,\n                \"project\": \"sync_dtestn\",\n                \"workspace\": \"4477656\",\n                \"table\": \"order\",\n                \"tenant\": \"524257424864736\"\n              }\n"
              }
            },
            "Grantee": {
              "PrincipalType": "RamRole",
              "PrincipalId": "ROLE_3133343434"
            },
            "AccessTypes": [
              "select"
            ],
            "FinalAccessTypes": [
              "select"
            ],
            "ExpirationTime": 1782354014507,
            "Status": "Deleted",
            "CreateTime": 0,
            "UpdateTime": 0
          }
        ]
      }
    ]
  }
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情