Apps API

Get the env for an App

GET /v2/apps/:guid/env

Get the environment variables for an App using the app guid. Restricted to SpaceDeveloper role.

Request

Route

GET /v2/apps/a7c47787-a982-467c-95d7-9ab17cbcc918/env

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMyIsImVtYWlsIjoiZW1haWwtMjk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDN9.suI8M5XCj8SAme02poDBYdGyR0J8yYt8AB5zuIHP2ZA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/a7c47787-a982-467c-95d7-9ab17cbcc918/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMyIsImVtYWlsIjoiZW1haWwtMjk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDN9.suI8M5XCj8SAme02poDBYdGyR0J8yYt8AB5zuIHP2ZA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "staging_env_json": {
    "STAGING_ENV": "staging_value"
  },
  "running_env_json": {
    "RUNNING_ENV": "running_value"
  },
  "environment_json": {
    "env_var": "env_val"
  },
  "system_env_json": {
    "VCAP_SERVICES": {

    }
  },
  "application_env_json": {
    "VCAP_APPLICATION": {
      "limits": {
        "fds": 16384,
        "mem": 1024,
        "disk": 1024
      },
      "application_name": "name-2245",
      "application_uris": [

      ],
      "name": "name-2245",
      "space_name": "name-2246",
      "space_id": "3309d44f-78ae-4058-99e1-c50469d1e043",
      "uris": [

      ],
      "users": null,
      "application_id": "a7c47787-a982-467c-95d7-9ab17cbcc918",
      "version": "ed59723c-d691-4d4f-ac5b-f174266c988f",
      "application_version": "ed59723c-d691-4d4f-ac5b-f174266c988f"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9db67b12-3bef-4029-9e81-3d68898cc999
Content-Length: 829
X-Content-Type-Options: nosniff