Generates activation codes for the lightweight version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateActivationCode |
create |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AliyunOrderId |
string |
Yes |
The Alibaba Cloud order ID. This includes virtual orders. |
2233****445566 |
| MacAddress |
string |
Yes |
The MAC address. |
12:34:56:78:98:00 |
| SystemIdentifier |
string |
No |
The unique identifier of the database. This parameter is required if `AllowEmptySystemIdentifier` for the order is set to `false`. |
1234567890123456 |
| Description |
string |
No |
The description of the activation code. |
testCode |
| Name |
string |
Yes |
The name of the activation code. It can contain only letters, digits, underscores (_), and hyphens (-). This name is used as the filename when you download the activation code from the console. |
testName |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| ActivateAt |
string |
The time when the activation code takes effect. |
2024-10-16 16:46:20 |
| CertContentB64 |
string |
The content of the activation code. Decode this Base64-encoded content and save it to the `license.lic` file. PolarDB reads this file on startup. |
AAEAA******AAA= |
| Description |
string |
The description of the activation code. |
testCode |
| ExpireAt |
string |
The expiration time. |
2054-10-09 16:46:20 |
| GmtCreated |
string |
The creation time. |
2024-10-16 16:46:20 |
| GmtModified |
string |
The update time. |
2024-10-16 16:46:20 |
| Id |
integer |
The ID of the activation code. |
123 |
| MacAddress |
string |
The MAC address. |
12:34:56:78:98:00 |
| Name |
string |
The name of the activation code. |
testName |
| RequestId |
string |
Id of the request |
4CE6DF97-AEA4-484F-906F-C407EE****** |
| SystemIdentifier |
string |
The unique system identifier of the database. |
1234567890123456 |
Examples
Success response
JSON format
{
"ActivateAt": "2024-10-16 16:46:20",
"CertContentB64": "AAEAA******AAA=",
"Description": "testCode",
"ExpireAt": "2054-10-09 16:46:20",
"GmtCreated": "2024-10-16 16:46:20",
"GmtModified": "2024-10-16 16:46:20",
"Id": 123,
"MacAddress": "12:34:56:78:98:00",
"Name": "testName",
"RequestId": "4CE6DF97-AEA4-484F-906F-C407EE******",
"SystemIdentifier": "1234567890123456"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.