---
title: "Get mysql status"
method: GET
path: "/api/projects/{projectName}/mysqls/{mysqlName}/status"
tags: ["mysql"]
---

# Get mysql status

`GET /api/projects/{projectName}/mysqls/{mysqlName}/status`

## Request

- Base URL: `https://api.hostim.dev`
- URL: `https://api.hostim.dev/api/projects/{projectName}/mysqls/{mysqlName}/status`
- Auth: HTTP bearer

Get mysql status

## Path parameters

- `projectName` string, required
- `mysqlName` string, required

## Response `200`

OK

- MySQLStatus
  - `usedMB` integer, required: The used storage of mysql database in MB
  - `role` 'standard' | 'cleaner' | 'revoked' | 'reader', required: The role of the mysql instance
  - `migrationStatus` 'None' | 'Scheduled' | 'InProgress' | 'Succeeded' | 'Failed', nullable: The migration status of the mysql instance
  - `created` boolean, required: Whether the mysql database instance is created or not

## Other responses

- `401`: User is not authorized
- `404`: Mysql not found
- `500`: Internal server error

---

[API](https://skmtc.dev/hostim/apis/hostim-api.md) · [All operations](https://skmtc.dev/hostim/apis/hostim-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostim/apis/hostim-api/revisions/37c35e1026a9?raw)
