How to retrieve extra Buildpack information
search cancel

How to retrieve extra Buildpack information

book

Article ID: 298065

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

Sometimes it can be useful to retrieve extra information about the buildpacks installed in the Tanzu Application Services for VMs, such as creation date of the buildpack. This information is not shown with 'cf buildpacks' command.

Environment

Product Version: 2.8

Resolution

There are few ways to get that extra information.

With cf cli:

  • CF_TRACE=true cf buildpacks or cf builpacks -v
  • cf curl /v2/buildpacks


With curl against the Cloud Controller API:

curl "https://api.<system-domain>/v2/buildpacks" -X GET \

-H "Authorization: $(cf oauth-token)" \

-H "Host: api.<system-domain>/v2/buildpacks" \

-H "Cookie: "


With both commands you will get an output in JSON format for each buildpack as follows:

{
         "metadata": {
            "guid": "97b0117d-####-####-####-69e88c41043c",
            "url": "/v2/buildpacks/97b0117d-####-####-####-69e88c41043c",
            "created_at": "2020-07-21T19:16:49Z",
            "updated_at": "2020-11-18T22:49:14Z"
         },
         "entity": {
            "name": "java_buildpack_offline",
            "stack": "cflinuxfs3",
            "position": 5,
            "enabled": true,
            "locked": false,
            "filename": "java-buildpack-offline-cflinuxfs3-v4.33.zip"
         }