AddWorkspaceUser
Adds a user to a workspace.
Operation description
Prerequisites
You have created a VPC.
You must be logged on to the DMS console with an Alibaba Cloud account (root account) or a RAM user that has high-level permissions. You must also grant DMS the
AliyunDMSProcessingDataRolePolicypermission to access cloud resources.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The ID of the workspace. |
12**** |
| DmsUserIds |
string |
Yes |
The IDs of the DMS users. |
123*** |
| RoleSource |
string |
Yes |
The source of the role. To obtain this information, call the |
INNER |
| RoleId |
string |
Yes |
The ID of the role. To obtain this information, call the |
31**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
B4B07137-F6AE-4756-8474-7F92BB6C4E04 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
boolean |
The data returned for the request. |
true |
Examples
Success response
JSON format
{
"RequestId": "B4B07137-F6AE-4756-8474-7F92BB6C4E04",
"Success": true,
"Data": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.