Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Filters apps by name and spaces and guids and orgs

GET /v3/apps

Request

Route

GET /v3/apps?names[]=my_app1&space_guids[]=50b2b67f-aefc-4462-99c3-4c383dbe4f31&space_guids[]=75cd37b8-304d-45fd-b30e-77cae178b79a&space_guids[]=f41a0731-f669-4bf9-8239-04e435d074db&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
names: ["my_app1"]
space_guids: ["50b2b67f-aefc-4462-99c3-4c383dbe4f31", "75cd37b8-304d-45fd-b30e-77cae178b79a", "f41a0731-f669-4bf9-8239-04e435d074db"]
page: 1
per_page: 2
order_by: created_at
order_direction: desc

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzM1fQ.iE6lcLq_9umjtAvJi_VcNWKkgiNncVtQs4d0nczUCnY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps?names[]=my_app1&space_guids[]=50b2b67f-aefc-4462-99c3-4c383dbe4f31&space_guids[]=75cd37b8-304d-45fd-b30e-77cae178b79a&space_guids[]=f41a0731-f669-4bf9-8239-04e435d074db&page=1&per_page=2&order_by=created_at&order_direction=desc" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzM1fQ.iE6lcLq_9umjtAvJi_VcNWKkgiNncVtQs4d0nczUCnY" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 3,
    "first": {
      "href": "/v3/apps?names[]=my_app1&space_guids[]=50b2b67f-aefc-4462-99c3-4c383dbe4f31&space_guids[]=75cd37b8-304d-45fd-b30e-77cae178b79a&space_guids[]=f41a0731-f669-4bf9-8239-04e435d074db&order_by=created_at&order_direction=desc&page=1&per_page=2"
    },
    "last": {
      "href": "/v3/apps?names[]=my_app1&space_guids[]=50b2b67f-aefc-4462-99c3-4c383dbe4f31&space_guids[]=75cd37b8-304d-45fd-b30e-77cae178b79a&space_guids[]=f41a0731-f669-4bf9-8239-04e435d074db&order_by=created_at&order_direction=desc&page=2&per_page=2"
    },
    "next": {
      "href": "/v3/apps?names[]=my_app1&space_guids[]=50b2b67f-aefc-4462-99c3-4c383dbe4f31&space_guids[]=75cd37b8-304d-45fd-b30e-77cae178b79a&space_guids[]=f41a0731-f669-4bf9-8239-04e435d074db&order_by=created_at&order_direction=desc&page=2&per_page=2"
    },
    "previous": null
  },
  "resources": [
    {
      "guid": "guid-bc7c5bc6-a120-447c-b858-19e205800b5e",
      "name": "my_app1",
      "_links": {
        "self": {
          "href": "/v3/apps/guid-bc7c5bc6-a120-447c-b858-19e205800b5e"
        },
        "processes": {
          "href": "/v3/apps/guid-bc7c5bc6-a120-447c-b858-19e205800b5e/processes"
        },
        "packages": {
          "href": "/v3/apps/guid-bc7c5bc6-a120-447c-b858-19e205800b5e/packages"
        },
        "space": {
          "href": "/v2/spaces/f41a0731-f669-4bf9-8239-04e435d074db"
        }
      }
    },
    {
      "guid": "guid-bebe3d36-bcea-4b42-8b0a-810a63c98940",
      "name": "my_app1",
      "_links": {
        "self": {
          "href": "/v3/apps/guid-bebe3d36-bcea-4b42-8b0a-810a63c98940"
        },
        "processes": {
          "href": "/v3/apps/guid-bebe3d36-bcea-4b42-8b0a-810a63c98940/processes"
        },
        "packages": {
          "href": "/v3/apps/guid-bebe3d36-bcea-4b42-8b0a-810a63c98940/packages"
        },
        "space": {
          "href": "/v2/spaces/50b2b67f-aefc-4462-99c3-4c383dbe4f31"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 863566ef-04df-4924-8ca9-4ae399f4b7cd
Content-Length: 2010
X-Content-Type-Options: nosniff