Zum Hauptinhalt springen

Create a MySQL user

POST /v2/mysql-databases/{mysqlDatabaseId}/users/
v2
POST
database-create-mysql-user

Request

  • mysqlDatabaseIdstring (uuid)
    required

    ID of the MySQLDatabase to create a MySQLUser for.

Responses

application/json

Created

  • idstring (uuid)
    required

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"accessIpMask":"string","accessLevel":"full","databaseId":"f0f86186-0a5a-45b2-aa33-502777496347","description":"string","externalAccess":true,"password":"string"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/mysql-databases/f0f86186-0a5a-45b2-aa33-502777496347/users