Queries character sets that are supported by a PolarDB for MySQL cluster.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the cluster. Note
You can call the DescribeRegions operation to query available regions.
| cn-hangzhou |
DBClusterId | string | No | The ID of the cluster. Note
You can only query character sets that PolarDB for MySQL clusters support. If you enter the ID of a PolarDB for PostgreSQL or PolarDB for Oracle cluster, the returned value of the CharacterSetNameItems parameter is an empty string.
| pc-**************** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "34458CD3-33E0-4624-BFEF-840C15******",
"CharacterSetNameItems": {
"CharacterSetName": [
"{ \"CharacterSetName\": [ \"utf8mb4\", \"utf8\", \"utf32\", \"utf16le\", \"utf16\", \"ujis\", \"ucs2\", \"tis620\", \"swe7\", \"sjis\", \"macroman\", \"macce\", \"latin7\", \"latin5\", \"latin2\", \"latin1\", \"koi8u\", \"koi8r\", \"keybcs2\", \"hp8\", \"hebrew\", \"greek\", \"geostd8\", \"gbk\", \"gb2312\", \"euckr\", \"eucjpms\", \"dec8\", \"cp932\", \"cp866\", \"cp852\", \"cp850\", \"cp1257\", \"cp1256\", \"cp1251\", \"cp1250\", \"binary\", \"big5\", \"ascii\", \"armscii8\" ] }"
]
},
"Engine": "POLARDB"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidRegionId.Malformed | The specified parameter RegionId is not valid. | The specified RegionId parameter is invalid. |
404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2023-09-12 | The Error code has changed | see changesets | ||||||
|