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!


List Environments for a Property

Retrieve the Environments owned by the specified Property.

Definition

GET  /properties/:property_id/environments

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/properties/:property_id/environments \
  -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": "EN52afd126b57243359076e2c3be2d0ba0",
      "type": "environments",
      "attributes": {
        "archive": false,
        "created_at": "2018-08-31T16:49:54.648Z",
        "library_path": "",
        "library_name": "launch-EN52afd126b57243359076e2c3be2d0ba0-development.min.js",
        "library_entry_points": [
          {
            "library_name": "launch-EN52afd126b57243359076e2c3be2d0ba0-development.min.js",
            "minified": true,
            "references": [
              "launch-EN52afd126b57243359076e2c3be2d0ba0-development.min.js"
            ]
          },
          {
            "library_name": "launch-EN52afd126b57243359076e2c3be2d0ba0-development.js",
            "minified": false,
            "references": [
              "launch-EN52afd126b57243359076e2c3be2d0ba0-development.js"
            ]
          }
        ],
        "name": "Development Environment A",
        "path": "//assets.adobedtm.com/staging",
        "stage": "development",
        "updated_at": "2018-08-31T16:49:54.648Z",
        "status": "succeeded"
      },
      "relationships": {
        "library": {
          "links": {
            "related": "http://localhost:9010/environments/EN52afd126b57243359076e2c3be2d0ba0/library"
          },
          "data": null
        },
        "builds": {
          "links": {
            "related": "http://localhost:9010/environments/EN52afd126b57243359076e2c3be2d0ba0/builds"
          }
        },
        "adapter": {
          "links": {
            "related": "http://localhost:9010/environments/EN52afd126b57243359076e2c3be2d0ba0/adapter",
            "self": "http://localhost:9010/environments/EN52afd126b57243359076e2c3be2d0ba0/relationships/adapter"
          },
          "data": {
            "id": "ADe6c865f283a144eeaa42beca919be320",
            "type": "adapters"
          }
        },
        "property": {
          "links": {
            "related": "http://localhost:9010/environments/EN52afd126b57243359076e2c3be2d0ba0/property"
          },
          "data": {
            "id": "PR5e5f0cd5b0f74083b2c6b46a6a035c24",
            "type": "properties"
          }
        }
      },
      "links": {
        "property": "http://localhost:9010/properties/PR5e5f0cd5b0f74083b2c6b46a6a035c24",
        "self": "http://localhost:9010/environments/EN52afd126b57243359076e2c3be2d0ba0"
      },
      "meta": {
        "archive_encrypted": false
      }
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": null,
      "prev_page": null,
      "total_pages": 1,
      "total_count": 1
    }
  }
}