# ApiWarning

- [JSON representation](https://docs.cloud.google.com/sql/docs/mysql/admin-api/rest/v1/ApiWarning#SCHEMA_REPRESENTATION)
- [SqlApiWarningCode](https://docs.cloud.google.com/sql/docs/mysql/admin-api/rest/v1/ApiWarning#SqlApiWarningCode)

An Admin API warning message.

| JSON representation |
|---|
| ``` { "code": enum (`https://docs.cloud.google.com/sql/docs/mysql/admin-api/rest/v1/ApiWarning#SqlApiWarningCode`), "message": string, "region": string } ``` |

| Fields ||
|---|---|
| `code` | ``enum (`https://docs.cloud.google.com/sql/docs/mysql/admin-api/rest/v1/ApiWarning#SqlApiWarningCode`)`` Code to uniquely identify the warning type. |
| `message` | `string` The warning message. |
| `region` | `string` The region name for REGION_UNREACHABLE warning. |

## SqlApiWarningCode

| Enums ||
|---|---|
| `SQL_API_WARNING_CODE_UNSPECIFIED` | An unknown or unset warning type from Cloud SQL API. |
| `REGION_UNREACHABLE` | Warning when one or more regions are not reachable. The returned result set may be incomplete. |
| `MAX_RESULTS_EXCEEDS_LIMIT` | Warning when user provided maxResults parameter exceeds the limit. The returned result set may be incomplete. |
| `COMPROMISED_CREDENTIALS` | Warning when user tries to create/update a user with credentials that have previously been compromised by a public data breach. |
| `INTERNAL_STATE_FAILURE` | Warning when the operation succeeds but some non-critical workflow state failed. |