GetApplicationContents

Updated at:

Retrieves the details of a resource access request for the specified process instance ID.

Operation description

Request description

  • Specify a valid ProcessInstanceId to retrieve the corresponding resource access request.

  • The response includes the basic details and status of the request, along with its items.

  • Each item includes information about the resource, the grantee, and the requested operation permissions.

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

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ProcessInstanceId

string

Yes

The ID of the approval process instance for the request.

332066440109224007

Response elements

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID. You can use this ID to locate logs and troubleshoot issues.

34267E2E-0335-1A60-A1F0-ADA530890CBA

Data

object

The process instance and the associated request details.

ProcessInstanceId

string

The process instance ID.

332066440109224007

DefSchema

string

The resource type.

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

Appendix: ResourceSchema documentation for the international site

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

The reason for the request.

Business requirement

ApplicationTime

integer

The time when the request was submitted. The value is a UNIX timestamp in milliseconds.

1779675618000

Status

string

The approval status. Valid values:

  • WaitApproval: pending approval

  • Confirmed: pending authorization

  • RejectApproval: approval rejected

  • AuthorizeSucceed: authorization succeeded

  • AuthorizeFailed: authorization failed

  • Deleted: deleted

  • Canceled: canceled

Valid values:

  • WaitApproval :

    Pending approval.

  • AuthorizeSucceed :

    Authorization succeeded.

  • AuthorizeFailed :

    Authorization failed.

  • Confirmed :

    Pending authorization.

  • Deleted :

    Deleted.

  • RejectApproval :

    Approval rejected.

WaitApproval

Contents

array<object>

The list of request items.

array<object>

The details of the request item.

Id

string

The unique identifier of the request item.

Y9H7AKFmjhWzLYdZNDZA5

ProcessInstanceId

string

The ID of the approval process instance for the request.

777799223

TenantId

string

The tenant ID.

69973837489

ResourceName

string

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

table

DefSchema

string

The resource type.

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

Appendix: ResourceSchema documentation for the international site

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. Currently, only SEVERLESS_STARROCKS supports specifying the authorization method: ranger and starrocksManager.

Note: Different resources support different authorization methods, which are uniformly constrained by ResourceSchema.authMethods.

Appendix: ResourceSchema documentation for the international site

ranger

Resource

object

The resource declaration. The resource description is constrained by ResourceSchema.

Appendix: ResourceSchema documentation for the international site

DefSchema

string

The resource type.

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

Appendix: ResourceSchema documentation for the international site

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 resource parsing version is constrained by ResourceSchema.version.

ResourceSchema documentation for the international site

v1.0.0

MetaData

string

The resource metadata declaration.

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

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

Grantee

object

The description of the authorization principal.

Note: The authorization principal types supported by the system are constrained by ResourceSchema.authPrincipal.

Appendix: ResourceSchema documentation for the international site

PrincipalType

string

The authorization principal type. Valid values:

  • RamUser

  • RamRole

  • DlfRole

Valid values:

  • DlfRole :

    DlfRole

  • RamUser :

    RamUser

  • RamRole :

    RamRole

RamRole

PrincipalId

string

The authorization principal ID. The mapped ID has different semantics for different principal types:

  • RamUser: the DataWorks user ID.

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

  • DlfRole: the DlfNext role name.

ROLE_3133343434

AccessTypes

array

The list of requested permissions.

Note: Different levels of resources support different types of permission requests, which are uniformly constrained by ResourceSchema.isValidLeaf, accessTypeRestrictions, and authMethodAccessTypes.

Appendix: ResourceSchema documentation for the international site

string

The operation permission.

select

FinalAccessTypes

array

The list of resource operation permissions that are finally approved.

string

The approved operation permission.

select

ExpirationTime

integer

The expiration date of the permission. The value is a UNIX timestamp in milliseconds.

1785835708000

Status

string

The approval status. Valid values:

  • WaitApproval: pending approval

  • Confirmed: pending authorization

  • RejectApproval: approval rejected

  • AuthorizeSucceed: authorization succeeded

  • AuthorizeFailed: authorization failed

  • Deleted: deleted

  • Canceled: 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 creation time.

1773972024000

UpdateTime

integer

The update time.

1773972024000

Examples

Success response

JSON format

{
  "RequestId": "34267E2E-0335-1A60-A1F0-ADA530890CBA",
  "Data": {
    "ProcessInstanceId": "332066440109224007",
    "DefSchema": "MaxCompute",
    "Reason": "Business requirement",
    "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
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.