Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

List all Apps

GET /v3/apps

Request

Route

GET /v3/apps?page=1&per_page=2&order_by=created_at&order_direction=desc

Parameters

Name Description Valid Values Example Values
names Names of apps to filter by
  • array of strings
  • names[]=name1&names[]=name2
space_guids Spaces to filter by
  • array of strings
  • space_guids[]=space_guid1&space_guids[]=space_guid2
organization_guids Organizations to filter by
  • array of strings
  • organization_guids[]=org_guid1&organization_guids[]=org_guid2
guids App guids to filter by
  • array of strings
  • guid[]=guid1&guid[]=guid2
page Page to display
  • >= 1
per_page Number of results per page
  • 1 - 5000
order_by Value to sort by
  • created_at, updated_at
order_direction Direction to sort by
  • asc, desc
page: 1
per_page: 2
order_by: created_at
order_direction: desc

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwIiwiZW1haWwiOiJlbWFpbC05QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM4OTR9.4NXyhbKGDfmbQ8xElzf9HHPXWOBAysRPTNQwznZ0Hio
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps?page=1&per_page=2&order_by=created_at&order_direction=desc" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwIiwiZW1haWwiOiJlbWFpbC05QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM4OTR9.4NXyhbKGDfmbQ8xElzf9HHPXWOBAysRPTNQwznZ0Hio" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 3,
    "first": {
      "href": "/v3/apps?order_by=created_at&order_direction=desc&page=1&per_page=2"
    },
    "last": {
      "href": "/v3/apps?order_by=created_at&order_direction=desc&page=2&per_page=2"
    },
    "next": {
      "href": "/v3/apps?order_by=created_at&order_direction=desc&page=2&per_page=2"
    },
    "previous": null
  },
  "resources": [
    {
      "guid": "guid-d92b8059-acbc-48ef-8c1f-daf01c5cefba",
      "name": "my_app3",
      "_links": {
        "self": {
          "href": "/v3/apps/guid-d92b8059-acbc-48ef-8c1f-daf01c5cefba"
        },
        "processes": {
          "href": "/v3/apps/guid-d92b8059-acbc-48ef-8c1f-daf01c5cefba/processes"
        },
        "packages": {
          "href": "/v3/apps/guid-d92b8059-acbc-48ef-8c1f-daf01c5cefba/packages"
        },
        "space": {
          "href": "/v2/spaces/200f6bf3-78f5-4b5f-9133-cf8670294866"
        }
      }
    },
    {
      "guid": "guid-ac2e8a80-c1b4-4633-8c1d-c74c3855687f",
      "name": "my_app2",
      "_links": {
        "self": {
          "href": "/v3/apps/guid-ac2e8a80-c1b4-4633-8c1d-c74c3855687f"
        },
        "processes": {
          "href": "/v3/apps/guid-ac2e8a80-c1b4-4633-8c1d-c74c3855687f/processes"
        },
        "packages": {
          "href": "/v3/apps/guid-ac2e8a80-c1b4-4633-8c1d-c74c3855687f/packages"
        },
        "space": {
          "href": "/v2/spaces/200f6bf3-78f5-4b5f-9133-cf8670294866"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 453eb567-f412-4c96-8ac6-dd505e1bb620
Content-Length: 1503
X-Content-Type-Options: nosniff