Cloud Foundry CLI: Listing BTP Service and Application Instances

Cloud Foundry CLI commands operate in the currently selected organization and space. A list of service instances in one space is not a complete account inventory.

What to check

Authenticate to the correct API endpoint and check the target before listing applications and services. The applications command includes running versus desired application instances, while services lists service instances in the space.

cf target
cf orgs
cf spaces
cf apps
cf services

Validation and precautions

To inventory multiple spaces, select each authorized organization and space with cf target and repeat the checks. Do not expose service credentials in exported inventory reports. Restore the original CLI target when finished.

Reference

SAP Note: 3747217

Cloud Foundry documentation: Documentation

You May Also Like

Leave a Reply?