全部产品
Search
文档中心

大数据开发治理平台 DataWorks:GetPermissionApplyOrderDetail

更新时间:Oct 13, 2023

调用GetPermissionApplyOrderDetail查询一个权限申请单的详细信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称

类型

是否必选

示例值

描述

Action String GetPermissionApplyOrderDetail

系统规定参数。取值:GetPermissionApplyOrderDetail

FlowId String 48f36729-05f9-4a40-9286-933fd940****

权限申请单ID。您可以调用ListPermissionApplyOrders接口获取。

返回数据

名称

类型

示例值

描述

RequestId String 0bc1ec92159376****

请求ID。

ApplyOrderDetail Object

申请单详情。

ApplyBaseId String 26784260040899****

提交申请单的阿里云用户UID。

ApplyTimestamp Long 1615284086000

发起申请单的时间,显示为一个unix时间戳。

FlowId String ad8da78d-8135-455e-9486-27cf213f****

申请单ID。

FlowStatus Integer 2

申请单的状态。取值如下:

  • 1:待审批。
  • 2:审批通过,授权成功。
  • 3:审批通过,授权失败。
  • 4:审批拒绝。
ApproveAccountList Array of ApproveAccountList

审批申请单的阿里云账号列表。

BaseId String 182293110403****

审批申请单的阿里云用户UID。

GranteeObjectList Array of GranteeObjectList

申请权限的账号信息。

GranteeType Integer 1

申请权限的主体类型。目前只支持1(用户)。

GranteeTypeSub Integer 103

申请权限的主体子类型,取值如下:

  • 101:生产云账号。
  • 103:个人云账号。
  • 105:代他人申请云账号。
GranteeName String RAM$dataworks_3h1_1:StsRamUser(StsRamUser)

申请权限的云账号名称。格式与MaxCompute的账号格式一致。

  • 主账号为ALIYUN$+账号名。
  • 子账号为RAM$+账号名。
GranteeId String 26784260040899****

申请权限的阿里云用户UID。

ApproveContent Object

申请的具体内容。

ApplyReason String I need to use this table

申请的原因,用于管理员审批参考。

Deadline Long 1617115071885

申请权限的到期时间。此处显示为一个unix时间戳。

如果MaxCompute项目未开启LabelSecurity,或申请的表字段安全等级为0或小于等于申请账号的安全等级时,只能申请永久权限。

OrderType Integer 1

申请单类型。目前仅支持取值为1,表示对象ACL权限申请。

ProjectMeta Object

申请对象所属的项目和工作空间信息。

MaxComputeProjectName String aMaxComputeProject

申请对象所在的MaxCompute项目。

WorkspaceId Integer 12345

申请对象所在的DataWorks工作空间ID。

ObjectMetaList Array of ObjectMetaList

申请对象的详细信息。

ObjectName String aTableName

申请的表名。

ColumnMetaList Array of ColumnMetaList

申请对象的列字段信息。

ColumnName String aColumnName

申请的列名称。

ColumnComment String 字段描述

申请的列描述。

SecurityLevel String 9

申请的列安全级别。取值范围为0~9。

示例

请求示例

http(s)://[Endpoint]/?Action=GetPermissionApplyOrderDetail
&FlowId=48f36729-05f9-4a40-9286-933fd940****
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

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

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "0bc1ec92159376****",
  "ApplyOrderDetail" : {
    "ApplyBaseId" : "26784260040899****",
    "ApplyTimestamp" : 1615284086000,
    "FlowId" : "ad8da78d-8135-455e-9486-27cf213f****",
    "FlowStatus" : 2,
    "ApproveAccountList" : {
      "BaseId" : "182293110403****"
    },
    "GranteeObjectList" : {
      "GranteeType" : 1,
      "GranteeTypeSub" : 103,
      "GranteeName" : "RAM$dataworks_3h1_1:StsRamUser(StsRamUser)",
      "GranteeId" : "26784260040899****"
    },
    "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
          }
        }
      }
    }
  }
}

错误码

访问错误中心查看更多错误码。