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 the Environment for a Build

Retrieve the data for the Environment associated with the specified Build.

Definition

GET  /builds/:build_id/environment

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/builds/:build_id/environment \
  -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": "EN66ea7cf1cc034e3b86dc7807a822f321",
    "type": "environments",
    "attributes": {
      "archive": false,
      "created_at": "2018-08-31T16:50:00.608Z",
      "library_path": "",
      "library_name": "launch-EN66ea7cf1cc034e3b86dc7807a822f321-development.min.js",
      "library_entry_points": [
        {
          "library_name": "launch-EN66ea7cf1cc034e3b86dc7807a822f321-development.min.js",
          "minified": true,
          "references": [
            "launch-EN66ea7cf1cc034e3b86dc7807a822f321-development.min.js"
          ]
        },
        {
          "library_name": "launch-EN66ea7cf1cc034e3b86dc7807a822f321-development.js",
          "minified": false,
          "references": [
            "launch-EN66ea7cf1cc034e3b86dc7807a822f321-development.js"
          ]
        }
      ],
      "name": "Development Environment A",
      "path": "//assets.adobedtm.com/staging",
      "stage": "development",
      "updated_at": "2018-08-31T16:50:01.003Z",
      "status": "succeeded"
    },
    "relationships": {
      "library": {
        "links": {
          "related": "http://localhost:9010/environments/EN66ea7cf1cc034e3b86dc7807a822f321/library"
        },
        "data": {
          "id": "LB612290a01bc24c6a911a734c9df700ba",
          "type": "libraries"
        }
      },
      "builds": {
        "links": {
          "related": "http://localhost:9010/environments/EN66ea7cf1cc034e3b86dc7807a822f321/builds"
        }
      },
      "adapter": {
        "links": {
          "related": "http://localhost:9010/environments/EN66ea7cf1cc034e3b86dc7807a822f321/adapter",
          "self": "http://localhost:9010/environments/EN66ea7cf1cc034e3b86dc7807a822f321/relationships/adapter"
        },
        "data": {
          "id": "AD459c7157294a4fd4a7e58c83e756d03f",
          "type": "adapters"
        }
      },
      "property": {
        "links": {
          "related": "http://localhost:9010/environments/EN66ea7cf1cc034e3b86dc7807a822f321/property"
        },
        "data": {
          "id": "PR7670f9b9e2484835bd45205f480366e0",
          "type": "properties"
        }
      }
    },
    "links": {
      "property": "http://localhost:9010/properties/PR7670f9b9e2484835bd45205f480366e0",
      "self": "http://localhost:9010/environments/EN66ea7cf1cc034e3b86dc7807a822f321"
    },
    "meta": {
      "archive_encrypted": false
    }
  }
}