Resets the API key of an AgenticDB tenant.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ResetAgenticDBTenantApiKey |
update |
*DBCluster
|
None | None |
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 |
| TenantId |
string |
Yes |
The ID of the target tenant. |
t-4b83e0da66674951 |
| ApiKeyId |
string |
Yes |
The ID of the target API key. |
ak-71304e39c7e841a1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
B2C3D4E5-F6A7-8901-BCDE-F12345678901 |
| TenantId |
string |
The tenant ID. |
t-4b83e0da66674951 |
| TenantName |
string |
The tenant name. |
my-saas-app |
| ApiKeyId |
string |
The API key resource ID, which remains unchanged after the reset. |
ak-71304e39c7e841a1 |
| ApiKey |
string |
The plaintext of the new API key, which is returned only in this response. |
pagc_key_cGFnYy1icDFh...newSignature22ch |
| CreateTime |
string |
The reset time, which indicates the effective period of the new key. The time follows the ISO 8601 standard in the UTC time zone. Format: YYYY-MM-DDTHH:mm:ssZ. |
2026-06-10T14:00:00Z |
| ExpireTime |
string |
The expiration time. The time follows the ISO 8601 standard in the UTC time zone. Format: YYYY-MM-DDTHH:mm:ssZ. |
2027-01-01T00:00:00Z |
Examples
Success response
JSON format
{
"RequestId": "B2C3D4E5-F6A7-8901-BCDE-F12345678901",
"TenantId": "t-4b83e0da66674951",
"TenantName": "my-saas-app",
"ApiKeyId": "ak-71304e39c7e841a1",
"ApiKey": "pagc_key_cGFnYy1icDFh...newSignature22ch",
"CreateTime": "2026-06-10T14:00:00Z",
"ExpireTime": "2027-01-01T00:00:00Z"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.