Check the service account of a MariaDB target now, without a discovery, and keep the answer as the target's state (access model MD-P1): the account Principal connects with must hold SELECT on mysql.*, CREATE USER, GRANT OPTION, SHOW DATABASES, PROCESS and CONNECTION ADMIN (SUPER before MariaDB 10.5.2) on the whole server. While it lacks any of them, applies, rotations, drift fixes and revocations on the target are refused before they change anything.
Parameters
Target ID (UUID)
Responses
The service account as the check found it
TargetServiceAccountResponse · 6 fields
The target whose service account was checked. "Check again" checks it.
ready when the account holds every privilege of the contract. Incomplete blocks changes.
readyincompleteThe account as MariaDB writes it, for example "principal@%".
3 fields
read_grant_tables create_user grant_option show_databases processconnection_admin The privilege as a database administrator names it, for example "GRANT OPTION".
What Principal can't do without the privilege.
The GRANT statements a database administrator runs to meet the contract. Absent when ready or when the account name can't be written into a command safely.
When the check ran.
Principal reached the server but could not tell which account it connects with, or the connection broke in a way MariaDB diagnostics name (details.error_code, details.recommended_action)
The target rejected the configured credentials, or the caller cannot manage the target
The target does not exist or is not a MariaDB target
Principal could not reach the target, as a failed connection test. The response does not include driver details. Nothing was kept.
Common errors: 401 409 429 503 504. They mean the same for every operation, see Errors.