You can call this operation to set the Owner of a table or a database.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SetOwners

The operation that you want to perform. Value: SetOwners

OwnerIds String Yes 123456

The ID of the user who is specified as the Owner. Multiple user IDs are separated by commas (,).

OwnerType String Yes DATABASE

Owner. Valid values:

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

The ID of a resource. Values of OwnerType and corresponding resource IDs are as follows:

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

The ID of the tenant.

Response parameters

Examples

Sample request


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

Sample success responses

XML format

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

JSON format

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

Error codes.

For a list of error codes, visit the API Error Center.