Sets the owner of an instance, database, or table.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:SetOwners |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The tenant ID. Note
Move the pointer over the profile picture in the upper-right corner of the page to view the tenant ID. For more information, see View tenant information. |
3*** |
| ResourceId |
string |
Yes |
The resource ID. The resource ID varies based on the owner type. The mappings between owner types and resource IDs are as follows:
|
174**** |
| OwnerType |
string |
Yes |
The owner type. Valid values:
|
INSTANCE |
| OwnerIds |
string |
Yes |
The user IDs of the owners. Separate multiple user IDs with commas (,). You can call the GetUser or ListUsers operation to obtain the value of UserId. Note
The parameter name for the user ID is UserId. |
51**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A99CD576-1E18-4E86-931E-C3CCE56DC030 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
UnknownError |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "A99CD576-1E18-4E86-931E-C3CCE56DC030",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.