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 Library

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

Definition

GET  /libraries/:library_id/environment

Example Request

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