Home
Version 3
Apps API

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/0b3577f4-e95f-4c2c-b237-f2eeb67b1a54/env

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNiIsImVtYWlsIjoiZW1haWwtMjM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTZ9.mgs1ynT_pO-isMKyfXA-XTIDwqh8CrC4drqKWTHEQus
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/0b3577f4-e95f-4c2c-b237-f2eeb67b1a54/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNiIsImVtYWlsIjoiZW1haWwtMjM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTZ9.mgs1ynT_pO-isMKyfXA-XTIDwqh8CrC4drqKWTHEQus" \
	-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": {
        "mem": 1024,
        "disk": 1024,
        "fds": 16384
      },
      "application_version": "a9efd5d3-deab-438c-96df-394f23f991af",
      "application_name": "name-1708",
      "application_uris": [

      ],
      "version": "a9efd5d3-deab-438c-96df-394f23f991af",
      "name": "name-1708",
      "space_name": "name-1709",
      "space_id": "b5e672db-b2a7-41bc-bcd6-480538492e30",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 769468d1-f9f9-4a9a-a3c4-b41f915602f3
Content-Length: 765
X-Content-Type-Options: nosniff