Create a DBaaS MySQL user
Path parameters
-
Service name
Minimum length is
0
, maximum length is63
.
Body Required
-
Minimum length is
1
, maximum length is64
. -
authentication string
Authentication method
Values are
caching_sha2_password
ormysql_native_password
.
POST /dbaas-mysql/{service-name}/user
curl \
-X POST https://api-ch-gva-2.exoscale.com/v2/dbaas-mysql/{service-name}/user \
-H "Content-Type: application/json" \
-d '{"username":"string","authentication":"caching_sha2_password"}'
Request examples
{
"username": "string",
"authentication": "caching_sha2_password"
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}