Retrieve discovered MySQL/MariaDB users in the target. With refresh=true an organization admin starts discovery as POST /targets/{id}/discover does.
Parameters
Target ID (UUID)
Start discovery of the target. Organization admins only, a viewer gets 403
Responses
OK
ListMySQLUsersResponse · 5 fields
14 fields
True when Principal can take the account under management. Adoption refuses the rest. Whether it is already managed is in principal.ownership_state.
humansystemidentity_service principal_static_account postgres_predefined_role postgres_bootstrap_superuser postgres_provider_role postgres_connection_role mysql_reserved_account mariadb_system_account mariadb_public_role mongodb_connection_user mongodb_internal_user mongodb_user_without_id kubernetes_service_account kubernetes_system_subject kubernetes_default_rbac 9 fields
unmanagedprincipal_created adoptedorphanedexternalprincipal_managed unknownThe rule that created a Principal-created account.
Whether Principal recorded the account instance it created or adopted. Set only for PostgreSQL and MongoDB accounts Principal created or adopted. Principal removes the account, revokes its access or changes its password only when it is verified. Mismatch means the account was recreated outside Principal.
verifiedunverifiedmismatchHow Principal recorded the account instance: created right after it created the account, adopted from discovery at adoption, or observed by the first discovery or apply that saw it.
createdadoptedobserved2 fields
Timestamp of the discovery data
Whether the cache is considered stale
Discovery started (refresh=true by an organization admin)
With refresh=true only. Discovery of the target is paused after failed runs (code target.operation_backoff_active), or the target is being deleted (code cleanup_in_progress), or discovery already runs on this target or waits for its next attempt (code operation.already_running: details.existing_job_id and resources with relation running_operation name that job, details.started_at is when it was started, resolution.code operation.view_running opens it). Nothing was queued.
Common errors: 400 401 403 404 429 504. They mean the same for every operation, see Errors.