ListPermissionApplyOrders

Updated at:

Queries the list of permission application tickets. Note: The 2020 version of OpenAPI will be retired. Migrate to the 2024 version of OpenAPI at your earliest convenience: ListMyApplications, ListPendingApprovals, and ListMyRelatedApprovals.

Operation description

Note: The 2020 version of OpenAPI will be retired. Migrate to the 2024 version of OpenAPI at your earliest convenience: ListMyApplications, ListPendingApprovals, and ListMyRelatedApprovals.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:*

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

FlowStatus

integer

No

The status of the application ticket. Valid values:

  • 1: Pending approval.

  • 2: Approved and authorization successful.

  • 3: Approved but authorization failed.

  • 4: Rejected.

  • 5: Withdrawn.

Valid values:

  • 0 :

    Created (application types processed by the Security Center are filtered as pending approval)

  • 1 :

    Pending approval.

  • 2 :

    Approved and authorization successful.

  • 3 :

    Approved but authorization failed.

  • 4 :

    Rejected.

  • 5 :

    Withdrawn.

1

WorkspaceId

integer

No

The ID of the workspace to which the application ticket belongs. If you do not specify this parameter, application tickets from all workspaces are returned. You can log on to the DataWorks console and go to the Workspace Configuration page to query the workspace ID.

12345

OrderType deprecated

integer

No

[Deprecated] This field is deprecated and does not take effect.

Valid values:

  • 0 :

    General resource application (legacy)

  • 1 :

    Object ACL permission application (legacy)

1

MaxComputeProjectName

string

No

The name of the MaxCompute project to which the application ticket belongs. If you do not specify this parameter, application tickets from all MaxCompute projects are returned.

aMaxComputeProject

TableName

string

No

The name of the table included in the application ticket. If you do not specify this parameter, application tickets for all tables are returned.

aTableName

StartTime

integer

No

The start time of the time range to query application tickets. The value is a UNIX timestamp. If you do not specify this parameter, all application tickets are queried.

1616200471885

EndTime

integer

No

The end time of the time range to query application tickets. The value is a UNIX timestamp. If you do not specify this parameter, application tickets submitted before the current time are queried.

1617200471885

EngineType deprecated

string

No

[Deprecated] This field is deprecated and does not take effect.

Valid values:

  • odps :

    MaxCompute (legacy)

odps

PageNum

integer

No

The page number for the paginated query. The value must be a positive integer greater than or equal to 1. Default value: 1.

1

PageSize

integer

No

The number of entries to return on each page. Default value: 10. Maximum value: 100.

100

QueryType

integer

Yes

The query type of the application ticket. Valid values:

  • 0: Application tickets submitted by me.

  • 1: Application tickets for which I am an approver.

  • 2: All application tickets.

Valid values:

  • 0 :

    Application tickets submitted by me.

  • 1 :

    Application tickets for which I am an approver.

  • 2 :

    All application tickets.

1

ApplyType

string

No

The type of the application ticket. Valid values:

  • MaxComputeTable: MaxCompute table permission application ticket.

  • MaxComputeFunction: MaxCompute function application ticket.

  • MaxComputeResource: MaxCompute resource permission application ticket.

  • DLFSchema: DLF 1.0 schema permission application ticket.

  • DLFTable: DLF 1.0 table permission application ticket.

  • DLFColumn: DLF 1.0 column permission application ticket.

  • DsApiDeploy: Data service API publishing application ticket.

Valid values:

  • MaxComputeFunction :

    MaxCompute function permission application ticket.

  • ExtensionSet :

    Extension-related application ticket.

  • StarRocksTable :

    StarRocks table permission application ticket.

  • HologresTable :

    Hologres table permission application ticket.

  • DLFColumn :

    DLF 1.0 column permission application ticket.

  • EmrTable :

    E-MapReduce table permission application ticket.

  • DIJobs :

    Data integration task application ticket.

  • MaxComputeResource :

    MaxCompute resource permission application ticket.

  • DsApiDeploy :

    Data service API publishing application ticket.

  • MaxComputeTable :

    MaxCompute table permission application ticket.

  • DgcCheckerOperation :

    Data asset governance check item operation application ticket.

  • EmrSchema :

    E-MapReduce schema permission application ticket.

  • StarRocksSchema :

    StarRocks schema permission application ticket.

  • DLFTable :

    DLF 1.0 table permission application ticket.

  • LindormTable :

    Lindorm table permission application ticket.

  • DLFSchema :

    DLF 1.0 schema permission application ticket.

MaxComputeTable

CatalogName

string

No

The name of the data catalog to query.

hive

Response elements

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID.

0bc1ec92159376****

ApplyOrders

object

The paginated query results for permission application tickets.

PageSize

integer

The number of entries returned on each page.

10

PageNumber

integer

The page number.

1

TotalCount

integer

The total number of permission application tickets returned.

150

ApplyOrder

array<object>

The list of permission application tickets.

array<object>

The application ticket.

ApplyBaseId

string

The UID of the Alibaba Cloud user who submitted the application ticket.

267842600408993176

ApplyTimestamp

integer

The submission time of the application ticket. The value is a UNIX timestamp.

1615284086000

FlowId

string

The ID of the application ticket.

ad8da78d-8135-455e-9486-27cf213fc140

FlowStatus

integer

The status of the application ticket. Valid values:

  • 1: Pending approval.

  • 2: Approved and authorization successful.

  • 3: Approved but authorization failed.

  • 4: Rejected.

  • 5: Withdrawn.

2

ApproveContent

object

The content of the application ticket.

ApplyReason

string

The reason for the application. This is used by administrators for evaluation and approval.

I need to use this table

OrderType

integer

The type of the application ticket. Currently, only the value 1 is supported, which indicates an object ACL permission application.

1

ProjectMeta

object

The metadata of the applied object.

WorkspaceName

string

The name of the DataWorks workspace to which the MaxCompute project for which permissions are applied belongs.

aWorkspaceName

ObjectMetaList

array<object>

The object information for the application.

object

The returned result.

ObjectName

string

The name of the applied table.

aTableName

Actions

array

The operation types.

string

The types of permissions applied. If multiple types of permissions are applied at a time, separate them with commas (,). Currently, only the Select, Describe, Drop, Alter, Update, and Download types are supported.

Select,Describe

FinishApprovalTimestamp

integer

The time when the final approval ended. The value is a UNIX timestamp.

1757496687000

FinishApprovalComment

string

The final approval comment.

agree

Examples

Success response

JSON format

{
  "RequestId": "0bc1ec92159376****",
  "ApplyOrders": {
    "PageSize": 10,
    "PageNumber": 1,
    "TotalCount": 150,
    "ApplyOrder": [
      {
        "ApplyBaseId": "267842600408993176",
        "ApplyTimestamp": 1615284086000,
        "FlowId": "ad8da78d-8135-455e-9486-27cf213fc140",
        "FlowStatus": 2,
        "ApproveContent": {
          "ApplyReason": "I need to use this table",
          "OrderType": 1,
          "ProjectMeta": {
            "WorkspaceName": "aWorkspaceName",
            "ObjectMetaList": [
              {
                "ObjectName": "aTableName",
                "Actions": [
                  "Select,Describe"
                ]
              }
            ]
          }
        },
        "FinishApprovalTimestamp": 1757496687000,
        "FinishApprovalComment": "agree"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.