Call SetOwners to set the library and table owners.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes SetOwners

The operation that you want to perform. Set the value to SetOwners .

OwnerIds String Yes 123, 456

The user ID that is set to Owner. Separate multiple user IDs with commas (,).

OwnerType String Yes DATABASE

The Owner type. The values and descriptions are as follows:

  • DATABASE: The Owner of a physical DATABASE
  • LOGIC_DATABASE: the logical database Owner
  • TABLE: The Owner of a physical TABLE
  • LOGIC_TABLE: Owner of the logical table
ResourceId String Yes 123

The resource ID, which points to different resources according to OwnerType. OwnerType and the corresponding resource ID are interpreted as follows:

  • DATABASE: Physical DATABASE ID
  • LOGIC_DATABASE: the ID of the logical database.
  • TABLE: the ID of the physical TABLE.
  • LOGIC_TABLE: the ID of the logical table.
Tid Long Yes -1

The ID of the tenant.

Note The tenant ID is taken from the avatar in the upper-right corner of the system. For more information, see Tenant ID and Tenant .

Response parameters

Parameter Type Example Description
ErrorCode String UnknownError

The error code.

ErrorMessage String UnknownError

The error message.

RequestId String A99CD576-1E18-4E86-931E-C3CCE56DC030

The ID of the request.

Success Boolean true

Indicates whether the request is successful. Valid values:

  • true
  • false

Examples

Sample requests


     http(s)://[Endpoint]/? Action=SetOwners &OwnerIds=123, 456 &OwnerType=DATABASE &ResourceId=123 &Tid=-1 &<common request parameters> 
   

Sample success responses

XML format


     <RequestId>A99CD576-1E18-4E86-931E-C3CCE56DC030</RequestId> <Success>true</Success> 
   

JSON Format


     { "RequestId": "A99CD576-1E18-4E86-931E-C3CCE56DC030", "Success": true } 
   

Error codes

Go to the Error Center For more information, see error codes.