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 Library for an Environment

Definition

GET  /environments/:environment_id/library

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/environments/:environment_id/library \
  -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": "LB0867f53cb7644149afc9684003062883",
    "type": "libraries",
    "attributes": {
      "created_at": "2018-08-31T16:51:36.743Z",
      "name": "My Library",
      "published_at": null,
      "state": "development",
      "updated_at": "2018-08-31T16:51:36.743Z",
      "build_required": true
    },
    "relationships": {
      "builds": {
        "links": {
          "related": "http://localhost:9010/libraries/LB0867f53cb7644149afc9684003062883/builds"
        }
      },
      "environment": {
        "links": {
          "related": "http://localhost:9010/libraries/LB0867f53cb7644149afc9684003062883/environment",
          "self": "http://localhost:9010/libraries/LB0867f53cb7644149afc9684003062883/relationships/environment"
        },
        "data": {
          "id": "EN29d8df03237e4089b40ade0dd7228b34",
          "type": "environments"
        }
      },
      "resources": {
        "links": {
          "related": "http://localhost:9010/libraries/LB0867f53cb7644149afc9684003062883/resources",
          "self": "http://localhost:9010/libraries/LB0867f53cb7644149afc9684003062883/relationships/resources"
        },
        "data": [

        ]
      },
      "upstream_library": {
        "data": null
      },
      "property": {
        "links": {
          "related": "http://localhost:9010/libraries/LB0867f53cb7644149afc9684003062883/property"
        },
        "data": {
          "id": "PR9fdfad088d954e5abd1fbfa4cda33bcb",
          "type": "properties"
        }
      }
    },
    "links": {
      "property": "http://localhost:9010/properties/PR9fdfad088d954e5abd1fbfa4cda33bcb",
      "self": "http://localhost:9010/libraries/LB0867f53cb7644149afc9684003062883"
    },
    "meta": {
      "build_status": null,
      "build_required_detail": "No build found since last state change"
    }
  }
}