GetComputeResourceAuthUserMappings
Queries the user mappings for compute resources. EMR and Serverless Spark resources are supported.
Operation description
You must purchase DataWorks Basic Edition or higher to use this operation.
- You must have at least one of the following roles in the DataWorks workspace:
Tenant owner, workspace administrator, deployer, developer, project owner, or operator.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:GetComputeResourceAuthUserMappings |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ComputeResourceId |
integer |
Yes |
The ID of the compute resource. |
100000 |
| ProjectId |
integer |
Yes |
The DataWorks workspace to which the data source belongs. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Data |
object |
The returned data. |
|
| Accounts |
array<object> |
The list of mapped account information. |
|
|
object |
The mapped account information. |
||
| UserId |
string |
The Alibaba Cloud UID. |
12747300953xxx62 |
| Username |
string |
The username in the destination system, such as an LDAP account. |
jsmitxxxx |
| HadoopAuthType |
string |
The authentication type, such as LDAP. |
ldap |
| RequestId |
string |
Id of the request |
0000-ABCD-EF**** |
| Success |
boolean |
Indicates whether the request is successful. |
true |
Examples
Success response
JSON format
{
"Data": {
"Accounts": [
{
"UserId": "12747300953xxx62",
"Username": "jsmitxxxx"
}
],
"HadoopAuthType": "ldap"
},
"RequestId": "0000-ABCD-EF****",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.