Queries the details about a permission request order.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetPermissionApplyOrderDetail

The operation that you want to perform.

FlowId String Yes 48f36729-05f9-4a40-9286-933fd940f30a

The ID of the permission request order. You can call the ListPermissionApplyOrders operation to obtain the order ID.

RegionId String Yes cn-shanghai

The region ID. For example, the ID of the China (Shanghai) region is cn-shanghai, and that of the China (Zhangjiakou) region is cn-zhangjiakou. The system automatically determines the value of this parameter based on the endpoint that is used to call the operation.

Response parameters

Parameter Type Example Description
ApplyOrderDetail Struct

Details about the permission request order.

ApplyBaseId String 267842600408993176

The unique ID of the Alibaba Cloud account that is used to submit the permission request order.

ApplyTimestamp Long 1615284086000

The time when the permission request order was submitted. The parameter value is a UNIX timestamp.

ApproveAccountList Array of ApproveAccountList

The list of Alibaba Cloud accounts that are used to approve the permission request order.

BaseId String 1822931104031845

The unique ID of the Alibaba Cloud account that is used to approve the permission request order.

ApproveContent Struct

The content of the permission request.

ApplyReason String I need to use this table

The reason for your request. The administrator decides whether to approve the request based on the request reason.

Deadline Long 1617115071885

The expiration time of the permissions that you requested. The parameter value is a UNIX timestamp.

If LabelSecurity is disabled in the MaxCompute project, or the security level of fields in the MaxCompute table on which you request permissions is 0 or is less than or equal to the security level of the Alibaba Cloud account for which you request permissions, you can request only permanent permissions.

OrderType Integer 1

The type of the permission request order. The parameter value is 1 and cannot be changed. 1 indicates that ACL-based authorization is requested.

ProjectMeta Struct

The information about the project and workspace that are associated with the object on which you requested permissions.

MaxComputeProjectName String aMaxComputeProject

The MaxCompute project to which the object on which you request permissions belongs.

ObjectMetaList Array of ObjectMetaList

Details about the object on which you request permissions.

ColumnMetaList Array of ColumnMetaList

The information about the column fields in the object on which you request permissions.

ColumnComment String aColumnComment

The description of the column on which you request permissions.

ColumnName String aColumnName

The name of the column on which you request permissions.

ObjectName String aTableName

The name of the table on which you request permissions.

WorkspaceId Integer 12345

The ID of the DataWorks workspace that is associated with the object on which you request permissions.

FlowId String ad8da78d-8135-455e-9486-27cf213fc140

The ID of the permission request order.

FlowStatus Integer 2

The status of the permission request order. Valid values:

  • 1: pending approval
  • 2: approved and authorized
  • 3: approved but authorization failed
  • 4: rejected
GranteeObjectList Array of GranteeObjectList

Information about the account that is used to request permissions.

GranteeId String 267842600408993176

The unique ID of the account that is used to request permissions.

GranteeName String RAM$dataworks_3h1_1:StsRamUser(StsRamUser)

The name of the account that is used to request permissions. The name is in the same format as that of the account used to access the MaxCompute project.

  • An Alibaba Cloud account is in the format of ALIYUN$+Account name.
  • A RAM user is in the format of RAM$+Account name.
GranteeType Integer 1

The type of the subject that requests permissions. The parameter value is 1 and cannot be changed. It indicates user.

GranteeTypeSub Integer 103

The subtype of the subject that requests permissions. Valid values:

  • 101: production account
  • 103: individual account
  • 105: account that requests permissions for others
RequestId String 0bc1ec92159376****

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetPermissionApplyOrderDetail
&FlowId=48f36729-05f9-4a40-9286-933fd940f30a
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<RequestId>0bc1ec92159376****</RequestId>
<ApplyOrderDetail>
    <FlowId>ad8da78d-8135-455e-9486-27cf213fc140</FlowId>
    <ApplyTimestamp>1615284086000</ApplyTimestamp>
    <ApplyBaseId>267842600408993176</ApplyBaseId>
    <FlowStatus>2</FlowStatus>
    <ApproveAccountList>
        <BaseId>1822931104031845</BaseId>
    </ApproveAccountList>
    <GranteeObjectList>
        <GranteeType>1</GranteeType>
        <GranteeId>267842600408993176</GranteeId>
        <GranteeName>RAM$dataworks_3h1_1:StsRamUser(StsRamUser)</GranteeName>
        <GranteeTypeSub>103</GranteeTypeSub>
    </GranteeObjectList>
    <ApproveContent>
        <OrderType>1</OrderType>
        <Deadline>1617115071885</Deadline>
        <ApplyReason>I need to use this table</ApplyReason>
        <ProjectMeta>
            <MaxComputeProjectName>aMaxComputeProject</MaxComputeProjectName>
            <WorkspaceId>12345</WorkspaceId>
            <ObjectMetaList>
                <ObjectName>aTableName</ObjectName>
                <ColumnMetaList>
                    <ColumnName>aColumnName</ColumnName>
                    <ColumnComment> Field description </ColumnComment>
                </ColumnMetaList>
            </ObjectMetaList>
        </ProjectMeta>
    </ApproveContent>
</ApplyOrderDetail>

JSON format

{
    "RequestId": "0bc1ec92159376****",
    "ApplyOrderDetail": {
        "FlowId": "ad8da78d-8135-455e-9486-27cf213fc140",
        "ApplyTimestamp": 1615284086000,
        "ApplyBaseId": 267842600408993180,
        "FlowStatus": 2,
        "ApproveAccountList": {
            "BaseId": 1822931104031845
        },
        "GranteeObjectList": {
            "GranteeType": 1,
            "GranteeId": 267842600408993180,
            "GranteeName": "RAM$dataworks_3h1_1:StsRamUser(StsRamUser)",
            "GranteeTypeSub": 103
        },
        "ApproveContent": {
            "OrderType": 1,
            "Deadline": 1617115071885,
            "ApplyReason": "I need to use this table",
            "ProjectMeta": {
                "MaxComputeProjectName": "aMaxComputeProject",
                "WorkspaceId": 12345,
                "ObjectMetaList": {
                    "ObjectName": "aTableName",
                    "ColumnMetaList": {
                        "ColumnName": "aColumnName",
                        "ColumnComment": "aColumnComment"
                    }
                }
            }
        }
    }
}

Error codes

For a list of error codes, visit the API Error Center.