Cloud Foundry (CF) has a curl command that shows all the information about service instances. These service instances can be queried in order to get desired data.
Run "
cf service <service>" and look for the tags in the output of the service. If it says "
session-replication", then that serviceĀ is using session replication.
For example, run this curl command to get the service instances that are have the "session-replication" tag in Tanzu GemFire for VMs:
cf curl /v2/service_instances | jq -r '.resources[] | .entity.name, .entity.tags ' | paste - -