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
ProcessInstanceIdparameter 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
Test
RAM authorization
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 |
| 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:
Valid values:
|
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 |
| AuthMethod |
string |
The authorization method. |
ranger |
| Resource |
object |
The resource declaration. |
|
| DefSchema |
string |
The name of the Valid values:
|
MaxCompute |
| DefVersion |
string |
The version of the |
v1.0.0 |
| MetaData |
string |
The resource metadata. The structure of the metadata is defined by the |
"{\"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:
Valid values:
|
RamRole |
| PrincipalId |
string |
The ID of the principal. The format of the ID varies based on the
|
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:
Valid values:
|
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.