Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

List associated packages

GET /v3/apps/:guid/packages

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
page Page to display
  • >= 1
per_page Number of results per page
  • 1-5000

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkwIiwiZW1haWwiOiJlbWFpbC02MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyOTkwODY5fQ.ZYj6qB6diDltgsdCOOIZA1OdLs1e636hkXUhOoseDOc
Host: example.org
Cookie: 

Route

GET /v3/apps/guid-b3cc8a85-d873-456a-b633-9de6317a60bd/packages

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-b3cc8a85-d873-456a-b633-9de6317a60bd/packages" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkwIiwiZW1haWwiOiJlbWFpbC02MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyOTkwODY5fQ.ZYj6qB6diDltgsdCOOIZA1OdLs1e636hkXUhOoseDOc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 816648d3-f1e1-4864-ba37-2adfd81751cb
Content-Length: 1013
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "pagination": {
    "total_results": 1,
    "first": {
      "href": "/v3/apps/guid-b3cc8a85-d873-456a-b633-9de6317a60bd/packages?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-b3cc8a85-d873-456a-b633-9de6317a60bd/packages?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "guid-847be52a-3b02-4d33-8bd2-6e88ea453cd9",
      "type": "bits",
      "hash": null,
      "url": null,
      "state": "AWAITING_UPLOAD",
      "error": null,
      "created_at": "2015-01-27T19:14:29Z",
      "_links": {
        "self": {
          "href": "/v3/packages/guid-847be52a-3b02-4d33-8bd2-6e88ea453cd9"
        },
        "upload": {
          "href": "/v3/packages/guid-847be52a-3b02-4d33-8bd2-6e88ea453cd9/upload"
        },
        "app": {
          "href": "/v3/apps/guid-b3cc8a85-d873-456a-b633-9de6317a60bd"
        },
        "space": {
          "href": "/v2/spaces/be6e32ae-c3e6-4b16-a973-5b943acee552"
        }
      }
    }
  ]
}