All Products
Search
Document Center

PolarDB:CreateAgenticDBTenant

Last Updated:Oct 22, 2026

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-hangzhou

DBClusterId

string

Yes

The AgenticDB cluster ID.

pagc-bp1abcdef1234567

TenantName

string

Yes

The name of the tenant. It must be 1 to 64 characters in length, start with a letter, and contain only letters, digits, underscores (_), and hyphens (-).

my-tenant

Description

string

No

The description of the tenant. The description can be up to 256 characters in length.

Example tenant

Response elements

Element

Type

Description

Example

object

The AgenticDB tenant creation response.

RequestId

string

The request ID.

01A13E8C-3773-1A76-BA95-96EA81D260DC

TenantId

string

The tenant ID.

t-4b83e0da66674951

TenantName

string

The tenant name.

my-tenant

DBClusterId

string

The AgenticDB cluster ID.

pagc-bp1abcdef1234567

CreateTime

string

The creation time.

2026-10-15T08:00:00Z

Examples

Success response

JSON format

{
  "RequestId": "01A13E8C-3773-1A76-BA95-96EA81D260DC",
  "TenantId": "t-4b83e0da66674951",
  "TenantName": "my-tenant",
  "DBClusterId": "pagc-bp1abcdef1234567",
  "CreateTime": "2026-10-15T08:00:00Z"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidTenantName.Duplicate A tenant with the specified name already exists in this AgenticDB cluster.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.