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

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": "EN9340a7e60aad4ab491c599eb9937094c",
      "type": "environments",
      "attributes": {
        "archive": false,
        "created_at": "2018-06-15T19:09:40.078Z",
        "library_path": "",
        "library_name": "launch-EN9340a7e60aad4ab491c599eb9937094c-development.min.js",
        "library_entry_points": [
          {
            "library_name": "launch-EN9340a7e60aad4ab491c599eb9937094c-development.min.js",
            "minified": true,
            "references": [
              "launch-EN9340a7e60aad4ab491c599eb9937094c-development.min.js"
            ]
          },
          {
            "library_name": "launch-EN9340a7e60aad4ab491c599eb9937094c-development.js",
            "minified": false,
            "references": [
              "launch-EN9340a7e60aad4ab491c599eb9937094c-development.js"
            ]
          }
        ],
        "name": "Development Environment A",
        "path": "//assets.adobedtm.com/staging",
        "stage": "development",
        "updated_at": "2018-06-15T19:09:40.078Z",
        "status": "succeeded"
      },
      "relationships": {
        "library": {
          "links": {
            "related": "http://localhost:9010/environments/EN9340a7e60aad4ab491c599eb9937094c/library"
          },
          "data": null
        },
        "builds": {
          "links": {
            "related": "http://localhost:9010/environments/EN9340a7e60aad4ab491c599eb9937094c/builds"
          }
        },
        "adapter": {
          "links": {
            "related": "http://localhost:9010/environments/EN9340a7e60aad4ab491c599eb9937094c/adapter",
            "self": "http://localhost:9010/environments/EN9340a7e60aad4ab491c599eb9937094c/relationships/adapter"
          },
          "data": {
            "type": "adapters",
            "id": "AD01f6a9563ae343de9bed95caa174e86c"
          }
        },
        "property": {
          "links": {
            "related": "http://localhost:9010/environments/EN9340a7e60aad4ab491c599eb9937094c/property"
          },
          "data": {
            "type": "properties",
            "id": "PReab061bd451041febf7a0f1ac389197b"
          }
        }
      },
      "links": {
        "property": "http://localhost:9010/properties/PReab061bd451041febf7a0f1ac389197b",
        "self": "http://localhost:9010/environments/EN9340a7e60aad4ab491c599eb9937094c"
      },
      "meta": {
        "archive_encrypted": false
      }
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": null,
      "prev_page": null,
      "total_pages": 1,
      "total_count": 1
    }
  }
}