Configures the owner of an instance, a database, or a 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 ID of the tenant. Note
To view the ID of the tenant, move the pointer over the profile picture in the upper-right corner of the Data Management (DMS) console. For more information, see the "View information about the current tenant" section of the Manage DMS tenants topic. |
3*** |
| ResourceId |
string |
Yes |
The ID of the resource. The ID of the resource varies with the owner type. The owner types and resource IDs have the following mappings:
|
174**** |
| OwnerType |
string |
Yes |
The type of the owner. Valid values:
|
INSTANCE |
| OwnerIds |
string |
Yes |
The ID of the user whom you want to specify as an owner. Separate multiple IDs with commas (,). You can call the GetUser or ListUsers operation to query the ID of the user. Note
The value of the OwnerIds parameter is that of the UserId parameter. |
51**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
A99CD576-1E18-4E86-931E-C3CCE56DC030 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
UnknownError |
| Success |
boolean |
Indicates whether the request is 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.