GetApplicationContents
Retrieves the details of a resource access request for the specified process instance ID.
Operation description
Request description
Specify a valid
ProcessInstanceIdto retrieve the corresponding resource access request.The response includes the basic details and status of the request, along with its items.
Each item includes information about the resource, the grantee, and the requested operation permissions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:GetApplicationContents |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProcessInstanceId |
string |
Yes |
The ID of the approval process instance for the request. |
332066440109224007 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. You can use this ID to locate logs and troubleshoot issues. |
34267E2E-0335-1A60-A1F0-ADA530890CBA |
| Data |
object |
The process instance and the associated request details. |
|
| ProcessInstanceId |
string |
The process instance ID. |
332066440109224007 |
| DefSchema |
string |
The resource type. Note: The resource types supported by the system are constrained by ResourceSchema.name. Appendix: ResourceSchema documentation for the international site Valid values:
|
MaxCompute |
| Reason |
string |
The reason for the request. |
Business requirement |
| ApplicationTime |
integer |
The time when the request was submitted. The value is a UNIX timestamp in milliseconds. |
1779675618000 |
| Status |
string |
The approval status. Valid values:
Valid values:
|
WaitApproval |
| Contents |
array<object> |
The list of request items. |
|
|
array<object> |
The details of the request item. |
||
| Id |
string |
The unique identifier of the request item. |
Y9H7AKFmjhWzLYdZNDZA5 |
| ProcessInstanceId |
string |
The ID of the approval process instance for the request. |
777799223 |
| TenantId |
string |
The tenant ID. |
69973837489 |
| ResourceName |
string |
The least privilege resource type. Note: The least privilege resource types are constrained by ResourceSchema.resources[*].isValidLeaf being true. Appendix: ResourceSchema documentation for the international site |
table |
| DefSchema |
string |
The resource type. Note: The resource types supported by the system are constrained by ResourceSchema.name. Appendix: ResourceSchema documentation for the international site Valid values:
|
MaxCompute |
| AuthMethod |
string |
The authorization method. Currently, only SEVERLESS_STARROCKS supports specifying the authorization method: ranger and starrocksManager. Note: Different resources support different authorization methods, which are uniformly constrained by ResourceSchema.authMethods. Appendix: ResourceSchema documentation for the international site |
ranger |
| Resource |
object |
The resource declaration. The resource description is constrained by ResourceSchema. Appendix: ResourceSchema documentation for the international site |
|
| DefSchema |
string |
The resource type. Note: The resource types supported by the system are constrained by ResourceSchema.name. Appendix: ResourceSchema documentation for the international site Valid values:
|
MaxCompute |
| DefVersion |
string |
The resource parsing version is constrained by ResourceSchema.version. |
v1.0.0 |
| MetaData |
string |
The resource metadata declaration. Note: The metadata is constrained by ResourceSchema.resources. A valid resource declaration must include the full-path metadata declaration from level 0 to the validLeaf level. Appendix: ResourceSchema documentation for the international site |
"{\"schema\":\"default\",\"threeTierModel\":false,\"workspace\":\"449656\",\"project\":\"sync_destination\",\"table\":\"order_table\",\"tenant\":\"524997424564736\"}" |
| Grantee |
object |
The description of the authorization principal. Note: The authorization principal types supported by the system are constrained by ResourceSchema.authPrincipal. Appendix: ResourceSchema documentation for the international site |
|
| PrincipalType |
string |
The authorization principal type. Valid values:
Valid values:
|
RamRole |
| PrincipalId |
string |
The authorization principal ID. The mapped ID has different semantics for different principal types:
|
ROLE_3133343434 |
| AccessTypes |
array |
The list of requested permissions. Note: Different levels of resources support different types of permission requests, which are uniformly constrained by ResourceSchema.isValidLeaf, accessTypeRestrictions, and authMethodAccessTypes. Appendix: ResourceSchema documentation for the international site |
|
|
string |
The operation permission. |
select |
|
| FinalAccessTypes |
array |
The list of resource operation permissions that are finally approved. |
|
|
string |
The approved operation permission. |
select |
|
| ExpirationTime |
integer |
The expiration date of the permission. The value is a UNIX timestamp in milliseconds. |
1785835708000 |
| Status |
string |
The approval status. Valid values:
Valid values:
|
Deleted |
| CreateTime |
integer |
The creation time. |
1773972024000 |
| UpdateTime |
integer |
The update time. |
1773972024000 |
Examples
Success response
JSON format
{
"RequestId": "34267E2E-0335-1A60-A1F0-ADA530890CBA",
"Data": {
"ProcessInstanceId": "332066440109224007",
"DefSchema": "MaxCompute",
"Reason": "Business requirement",
"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.