Skip to main content

Create a MySQL user

POST/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":"203.0.113.123/32","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