ListMyApplications

Updated at:

Queries all application tickets for resource access permissions initiated by the current user.

Operation description

Request description

  • This operation supports pagination, controlled by the NextToken and PageSize parameters.

  • DefSchema is required and specifies the resource type.

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

  • You can limit the query time range by setting StartTime and EndTime.

  • Statuses allows you to filter application tickets in specific states, such as pending approval or authorized.

  • If you need to filter by specific resources or authorization objects, 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

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:ListMyApplications

list

*All Resource

*

None None

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.

Appendix: ResourceSchema documentation for the international site

MaxCompute

ResourceType

array

Yes

Filters by the least privilege resource type.

Note: The least privilege resource types are constrained by ResourceSchema.resources[*].isValidLeaf being true.

Appendix: ResourceSchema documentation for the international site

string

No

The resource type.

table

Resource

object

No

Performs exact or generalized filtering based on resources. The resource description is constrained by ResourceSchema.

Appendix: ResourceSchema documentation for the international site

DefSchema

string

No

The resource type.

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

Appendix: ResourceSchema documentation for the international site

MaxCompute

DefVersion

string

No

The resource parsing version is constrained by ResourceSchema.version.

ResourceSchema documentation for the 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 declaration from level 0 to the validLeaf level.

Appendix: ResourceSchema documentation for the international site

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

any

No

The resource metadata.

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

StartTime

integer

Yes

The start of the application submission time range, as a timestamp in milliseconds.

1771948800000

EndTime

integer

Yes

The end of the application submission time range, as a timestamp in milliseconds.

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 token.

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 paged result.

RequestId

string

The API request ID, which is a UUID.

0bc5df3a17****903790e8e8a

Data

object

The data section of the paged result.

PageSize

integer

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

20

NextToken

string

The pagination token.

eyJpZCI6NDU2fQ==

HasMore

boolean

Indicates whether more data is available.

false

Data

array<object>

The list of application ticket 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.

Business requirement

ApplicationTime

integer

The time when the application was initiated.

The value is a 13-digit number, such as 1779695088000.

1779695088000

Status

string

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

Contents

array<object>

The application content.

array<object>

The application content.

Id

string

The primary key of the application content.

a8aa620037bb410ea13837f9b4d053d8

ProcessInstanceId

string

The ID of the approval workflow instance for the application.

777799223

TenantId

string

The tenant ID.

69973837489

ResourceName

string

The least privilege resource type.

table

DefSchema

string

The resource type.

MAXCOMPUTE

AuthMethod

string

The authorization method.

default

Resource

object

Resource declaration

DefSchema

string

The ResourceSchema.name on which resource parsing depends

MaxCompute

DefVersion

string

The ResourceSchema.version on which resource parsing depends

v1.0.0

MetaData

object

The resource metadata, where the data content is constrained by ResourceSchema

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

any

The resource content.

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

Grantee

object

Grantee

PrincipalType

string

The principal type. Valid values:

  • RamRole

  • RamUser

  • DataworksTenantMember

  • DataworksTenantRole

  • DataworksProjectMember

  • DataworksProjectRole

  • DlfRole

RamRole

PrincipalId

string

The principal ID. Valid values:

  • RamUser: DataWorks user ID.

  • RamRole: DataWorks user ID starting with "ROLE_".

  • DataworksTenantMember: DataWorks user ID.

  • DataworksTenantRole: DataWorks tenant roleCode.

  • DataworksProjectRole: DataWorks workspace roleCode.

  • DataworksProjectMember: DataWorks user ID.

  • DlfRole: DlfNext role name.

ROLE_3133343434

AccessTypes

array

The requested resource operation permissions.

string

The permission.

select

FinalAccessTypes

array

The final approved resource operation permissions.

string

The permission.

select

ExpirationTime

integer

The expiration timestamp of the permissions, in milliseconds.

1782354014507

Status

string

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

CreateTime

integer

The creation time of the application content, as a UNIX timestamp in milliseconds.

1779695088000

UpdateTime

integer

The update time of the application content, as a UNIX timestamp in milliseconds.

1779695148000

Examples

Success response

JSON format

{
  "RequestId": "0bc5df3a17****903790e8e8a",
  "Data": {
    "PageSize": 20,
    "NextToken": "eyJpZCI6NDU2fQ==",
    "HasMore": false,
    "Data": [
      {
        "ProcessInstanceId": "176906667488145",
        "DefSchema": "MaxCompute",
        "Reason": "Business requirement",
        "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": 1779695088000,
            "UpdateTime": 1779695148000
          }
        ]
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.