UpdateComputeResourceAuthUserMappings
Updates the account mapping for compute resources. EMR and Serverless Spark resources are currently supported.
Operation description
You must purchase DataWorks Basic Edition or higher to use this feature.
You must have at least one of the following roles in the DataWorks workspace:
Tenant owner, tenant administrator, workspace administrator, project owner, or O&M engineer.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:UpdateComputeResourceAuthUserMappings |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ComputeResourceId |
integer |
Yes |
The ID of the compute resource. |
123455 |
| ProjectId |
integer |
Yes |
The ID of the workspace. |
10000 |
| Upserts |
array<object> |
No |
The list of objects to update. |
|
|
object |
No |
The object to update. |
||
| Password |
string |
No |
The password for the target system mapping, such as an LDAP password. |
123xx |
| UserId |
string |
No |
The Alibaba Cloud user ID. |
12747300953xxx62 |
| Username |
string |
No |
The username for the target system mapping, such as an LDAP username. |
lisa |
| RemoveUserIds |
array |
No |
The list of user mappings to remove. |
|
|
string |
No |
The Alibaba Cloud user ID. |
12747300953xxx62 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Data |
object |
The data object. |
|
| ChangeRecordId |
integer |
The ID of the change record. |
123xx |
| Status |
string |
Indicates whether the operation is successful. Valid values:
|
success |
| RequestId |
string |
Id of the request |
10000001 |
| Success |
boolean |
Indicates whether the request is successful. |
true |
Examples
Success response
JSON format
{
"Data": {
"ChangeRecordId": 0,
"Status": "success"
},
"RequestId": "10000001",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.