WARNING

WARNING: These APIs are currently in an 'alpha' state and are likely to change over time. We recommend you not use them in a production setting at this time!


Get an Environment

Retrieve the data for an existing Environment, based on its ID.

Definition

GET  /environments/:id

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/environments/:id \
  -H "Accept: application/vnd.api+json;revision=1" \
  -H "Content-Type: application/vnd.api+json" \
  -H "Authorization: Bearer [TOKEN]" \
  -H "X-Api-Key: [KEY]" \
  -X GET
  

Example Response

200 OK
{
  "data": {
    "id": "EN6383a9ceb3ef4b789911c341681b5726",
    "type": "environments",
    "attributes": {
      "archive": false,
      "created_at": "2018-08-31T16:49:51.443Z",
      "library_path": "",
      "library_name": "launch-EN6383a9ceb3ef4b789911c341681b5726-development.min.js",
      "library_entry_points": [
        {
          "library_name": "launch-EN6383a9ceb3ef4b789911c341681b5726-development.min.js",
          "minified": true,
          "references": [
            "launch-EN6383a9ceb3ef4b789911c341681b5726-development.min.js"
          ]
        },
        {
          "library_name": "launch-EN6383a9ceb3ef4b789911c341681b5726-development.js",
          "minified": false,
          "references": [
            "launch-EN6383a9ceb3ef4b789911c341681b5726-development.js"
          ]
        }
      ],
      "name": "Development Environment A",
      "path": "//assets.adobedtm.com/staging",
      "stage": "development",
      "updated_at": "2018-08-31T16:49:51.443Z",
      "status": "succeeded"
    },
    "relationships": {
      "library": {
        "links": {
          "related": "http://localhost:9010/environments/EN6383a9ceb3ef4b789911c341681b5726/library"
        },
        "data": null
      },
      "builds": {
        "links": {
          "related": "http://localhost:9010/environments/EN6383a9ceb3ef4b789911c341681b5726/builds"
        }
      },
      "adapter": {
        "links": {
          "related": "http://localhost:9010/environments/EN6383a9ceb3ef4b789911c341681b5726/adapter",
          "self": "http://localhost:9010/environments/EN6383a9ceb3ef4b789911c341681b5726/relationships/adapter"
        },
        "data": {
          "id": "AD41a704334c4b436aa2886c9853c0a949",
          "type": "adapters"
        }
      },
      "property": {
        "links": {
          "related": "http://localhost:9010/environments/EN6383a9ceb3ef4b789911c341681b5726/property"
        },
        "data": {
          "id": "PRfa3644b994ca45029f1adc1a409677da",
          "type": "properties"
        }
      }
    },
    "links": {
      "property": "http://localhost:9010/properties/PRfa3644b994ca45029f1adc1a409677da",
      "self": "http://localhost:9010/environments/EN6383a9ceb3ef4b789911c341681b5726"
    },
    "meta": {
      "archive_encrypted": false
    }
  }
}