ListMyApplications

更新时间:
复制 MD 格式

Queries all resource access permission application orders initiated by the current user.

Operation description

Request description

  • This API supports paginated queries, controlled by the NextToken and PageSize parameters.

  • DefSchema is a required parameter that specifies the resource type.

  • The ResourceType list can contain multiple resource types for more precise filtering of application orders.

  • You can set StartTime and EndTime to limit the time range of the query.

  • Statuses allows you to filter application orders by specific statuses, such as pending approval and authorized.

  • If you need to filter by specific resources or authorization targets, you can provide detailed information through the Resource and Grantee fields.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

DefSchema

string

Yes

Filters by resource type.

Note: The resource types supported by the system for applications are constrained by ResourceSchema.name.

See also: ResourceSchema documentation for International site

MaxCompute

ResourceType

array

Yes

Filters by minimum permission resource type.

Note: The minimum permission resource type is constrained by ResourceSchema.resources[*].isValidLeaf being true.

See also: ResourceSchema documentation for International site

string

No

The resource type.

table

Resource

object

No

Filters by resource with exact or wildcard matching. The resource description is constrained by ResourceSchema.

See also: ResourceSchema documentation for International site

DefSchema

string

No

The resource type.

Note: The resource types supported by the system for applications are constrained by ResourceSchema.name.

See also: ResourceSchema documentation for International site

MaxCompute

DefVersion

string

No

The resource parsing version, which is constrained by ResourceSchema.version.

ResourceSchema documentation for International site

v1.0.0

MetaData

object

No

The resource metadata.

Note: The metadata is constrained by ResourceSchema.resources. A valid resource declaration must include the full-path metadata declarations from level 0 to the validLeaf level.

See also: ResourceSchema documentation for International site

any

No

The resource metadata.

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

StartTime

integer

Yes

The start time of the application period (millisecond timestamp).

1771948800000

EndTime

integer

Yes

The end time of the application period (millisecond timestamp).

1779724799999

Statuses

array

No

Filters by approval status. Valid values:

  • WaitApproval: pending approval.

  • Confirmed: pending authorization.

  • RejectApproval: approval rejected.

  • AuthorizeSucceed: authorization succeeded.

  • AuthorizeFailed: authorization failed.

  • Deleted: deleted.

  • Canceled: withdrawn.

Deleted

string

No

The resource status.

WAIT_APPROVAL

NextToken

string

No

The pagination cursor.

eyJpZCI6MTIzfQ==

PageSize

integer

No

The number of entries per page. Default value: 10. Maximum value: 200.

20

Response elements

Element

Type

Description

Example

object

The paginated result.

RequestId

string

The request ID, which is a UUID.

0bc5df3a17****903790e8e8a

Data

object

The data part of the paginated result.

PageSize

integer

The number of entries per page. Default value: 10. Maximum value: 200.

20

NextToken

string

The pagination cursor.

eyJpZCI6NDU2fQ==

HasMore

boolean

Indicates whether more data is available.

false

Data

array<object>

The list of application order details.

array<object>

The approval process and application content.

ProcessInstanceId

string

The process instance ID.

176906667488145

DefSchema

string

The resource type.

MaxCompute

Reason

string

The reason for the application.

业务需要

ApplicationTime

integer

The time the application was submitted, in Unix timestamp format (milliseconds).

1779695088000

Status

string

The approval status. Valid values:

  • WaitApproval: Pending approval

  • Confirmed: Pending authorization

  • RejectApproval: Rejected

  • AuthorizeSucceed: Authorization succeeded

  • AuthorizeFailed: Authorization failed

  • Deleted: Deleted

  • Canceled: Canceled

Deleted

Contents

array<object>

The content of the application.

array<object>

A permission request item within the application.

Id

string

The unique ID of the application item.

a8aa620037bb410ea13837f9b4d053d8

ProcessInstanceId

string

The ID of the approval process instance for the application.

777799223

TenantId

string

The tenant ID.

69973837489

ResourceName

string

The category of the resource. For example, table.

table

DefSchema

string

The resource type.

MAXCOMPUTE

AuthMethod

string

The authorization method.

default

Resource

object

The requested resource.

DefSchema

string

The name of the ResourceSchema used to parse the resource.

MaxCompute

DefVersion

string

The version of the ResourceSchema used to parse the resource.

v1.0.0

MetaData

object

The resource metadata. Its format is defined by the ResourceSchema.

any

The key-value pairs of the resource metadata.

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

Grantee

object

The principal to be granted the permission.

PrincipalType

string

The type of the principal. Valid values:

  • RamRole

  • RamUser

  • DataworksTenantMember

  • DataworksTenantRole

  • DataworksProjectMember

  • DataworksProjectRole

  • DlfRole

RamRole

PrincipalId

string

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

  • RamUser: The DataWorks user ID.

  • RamRole: The DataWorks user ID, prefixed with ROLE_.

  • DataworksTenantMember: The DataWorks user ID.

  • DataworksTenantRole: The DataWorks tenant role code.

  • DataworksProjectRole: The DataWorks workspace role code.

  • DataworksProjectMember: The DataWorks user ID.

  • DlfRole: The DlfNext role name.

ROLE_3133343434

AccessTypes

array

The permissions requested for the resource.

string

A permission.

select

FinalAccessTypes

array

The granted permissions.

string

A permission.

select

ExpirationTime

integer

When the permission expires, in Unix timestamp format (milliseconds).

1782354014507

Status

string

The approval status. Valid values:

  • WaitApproval: Pending approval

  • Confirmed: Pending authorization

  • RejectApproval: Rejected

  • AuthorizeSucceed: Authorization succeeded

  • AuthorizeFailed: Authorization failed

  • Deleted: Deleted

  • Canceled: Canceled

Deleted

CreateTime

integer

The time when the item was created, in Unix timestamp format (milliseconds).

2022-11-29 15:04:52

UpdateTime

integer

The time when the item was last updated, in Unix timestamp format (milliseconds).

2022-07-08 23:58:59

Examples

Success response

JSON format

{
  "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
          }
        ]
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.