GetApplicationContents

更新时间:
复制 MD 格式

Queries the content of resource permission applications under the specified process instance ID.

Operation description

Request Description

  • This API is used to query the details of resource permission applications based on the provided ProcessInstanceId.

  • A valid ProcessInstanceId parameter must be provided in the request.

  • The response includes the basic information, status, and the list of specific application contents.

  • Each application content includes detailed resource information, the grantee, the requested operation permissions, and more.

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

ProcessInstanceId

string

Yes

The approval process instance ID of the submitted application.

332066440109224007

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID, which is used for locating logs and troubleshooting.

34267E2E-0335-1A60-A1F0-ADA530890CBA

Data

object

The process instance and associated application content.

ProcessInstanceId

string

The process instance ID.

332066440109224007

DefSchema

string

The resource type.

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

See also: ResourceSchema documentation on 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 application reason.

业务需要

ApplicationTime

integer

The time when the application was submitted, as a millisecond timestamp.

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 application contents.

array<object>

The details of an application content.

Id

string

The unique ID of the application content item.

Y9H7AKFmjhWzLYdZNDZA5

ProcessInstanceId

string

The ID of the approval process instance for the application.

777799223

TenantId

string

The tenant ID.

69973837489

ResourceName

string

The specific type of the resource, such as a table.

table

DefSchema

string

The resource type.

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.

ranger

Resource

object

The resource declaration.

DefSchema

string

The name of the ResourceSchema that defines how to parse this resource.

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 version of the ResourceSchema that defines how to parse this resource.

v1.0.0

MetaData

string

The resource metadata. The structure of the metadata is defined by the ResourceSchema.

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

Grantee

object

The grantee.

PrincipalType

string

The principal type. Valid values:

  • RamUser

  • RamRole

  • DlfRole

Valid values:

  • DlfRole :

    DlfRole

  • RamUser :

    RamUser

  • RamRole :

    RamRole

RamRole

PrincipalId

string

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

  • If PrincipalType is RamUser, this parameter specifies the ID of a DataWorks user.

  • If PrincipalType is RamRole, this parameter specifies the ID of a role in DataWorks. The ID must be prefixed with ROLE_.

  • If PrincipalType is DlfRole, this parameter specifies the name of a DlfNext role.

ROLE_3133343434

AccessTypes

array

A list of the permissions requested for the resource.

string

A requested permission.

select

FinalAccessTypes

array

A list of the permissions granted in the final approval.

string

An approved permission.

select

ExpirationTime

integer

The time when the permissions expire. This value is a millisecond-precision timestamp.

1785835708000

Status

string

The approval status. Valid values:

  • WaitApproval: The item is pending approval.

  • Confirmed: The item is pending authorization.

  • RejectApproval: The item was rejected.

  • AuthorizeSucceed: Authorization was successful.

  • AuthorizeFailed: Authorization failed.

  • Deleted: The item was deleted during the approval process.

  • Canceled: The item was 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 time when the content item was created. This value is a millisecond-precision timestamp.

1773972024000

UpdateTime

integer

The time when the content item was last updated. This value is a millisecond-precision timestamp.

1773972024000

Examples

Success response

JSON format

{
  "RequestId": "34267E2E-0335-1A60-A1F0-ADA530890CBA",
  "Data": {
    "ProcessInstanceId": "332066440109224007",
    "DefSchema": "MaxCompute",
    "Reason": "业务需要",
    "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.