Given the service instance GUID, a few queries can be run in the Tanzu Application Service (TAS) MySQL database to get the service instance name, org, and space.
If the GUID isn't found in the ccdb.service_instances table, the deployment is unknown to Cloud Controller and associated with an orphaned deployment. The schema of interest in the database is used by the Cloud Controller - the "ccdb".
1. To start, get the TAS deployment name, then SSH into any of the mysql VMs:
bosh deployments --column=name [...] bosh -d cf-... ssh mysql/0
sudo mysql --defaults-file=/var/vcap/jobs/pxc-mysql/config/mylogin.cnf
mysql> select name,space_id from ccdb.service_instances where guid = '4e48c232-fac0-4b1c-8eb9-c2b3329a3ffc'; +---------+----------+ | name | space_id | +---------+----------+ | philsLF | 88 | +---------+----------+ 1 row in set (0.00 sec) mysql> select name, organization_id from ccdb.spaces where id = 88; +-------+-----------------+ | name | organization_id | +-------+-----------------+ | mysql | 7 | +-------+-----------------+ 1 row in set (0.00 sec) mysql> select name from ccdb.organizations where id = 7; +----------+ | name | +----------+ | ppickett | +----------+ 1 row in set (0.00 sec) mysql>