All Products
Search
Document Center

DataWorks:GetPermissionApplyOrderDetail

Last Updated:Nov 21, 2024

Queries the details of a permission request order.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
FlowIdstringYes

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

48f36729-05f9-4a40-9286-933fd940f30a

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The request ID.

0bc1ec92159376****
ApplyOrderDetailobject

The details of the permission request order.

ApplyBaseIdstring

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

267842600408993176
ApplyTimestamplong

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

1615284086000
FlowIdstring

The ID of the permission request order.

ad8da78d-8135-455e-9486-27cf213fc140
FlowStatusinteger

The status of the permission request order. Valid values:

  • 1: to be processed
  • 2: approved and authorized
  • 3: approved but authorization failed
  • 4: rejected
2
ApproveAccountListarray<object>

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

ApproveAccountListobject
BaseIdstring

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

182293110403****
GranteeObjectListarray<object>

The information about the account that is used to request permissions.

GranteeObjectListobject
GranteeTypeinteger

The type of the subject that requests permissions. The value is fixed as 1, which indicates users.

1
GranteeTypeSubinteger

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

  • 101: production account
  • 103: individual account
  • 105: account that requests permissions for others
103
GranteeNamestring

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.

  • If the account is an Alibaba Cloud account, the value is in the ALIYUN$+Account name format.
  • If the account is a RAM user, the value is in the RAM$+Account name format.
RAM$dataworks_3h1_1:StsRamUser(StsRamUser)
GranteeIdstring

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

267842600408993176
ApproveContentobject

The content of the permission request.

ApplyReasonstring

The reason of the permission request. The administrator processes the request based on the reason.

I need to use this table
Deadlinelong

The expiration time of the permissions that you request. The value is a UNIX timestamp. If LabelSecurity is disabled for the MaxCompute project in which you want to request permissions on the fields of a table, or the security level of the fields is 0 or is lower than or equal to the security level of the Alibaba Cloud account for which you want to request permissions, you can request only permanent permissions.

1617115071885
OrderTypeinteger

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

1
ProjectMetaobject

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

MaxComputeProjectNamestring

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

aMaxComputeProject
WorkspaceIdinteger

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

12345
ObjectMetaListarray<object>

The details about the object on which you request permissions.

ObjectMetaListobject
ObjectNamestring

The name of the table on which you request permissions.

aTableName
ColumnMetaListarray<object>

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

ColumnMetaListobject
ColumnNamestring

The name of the column on which you request permissions.

aColumnName
ColumnCommentstring

The description of the column on which you request permissions.

SecurityLevelstring

The security level of the column on which you request permissions. Valid values: 0 to 9.

9

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history