{
  "type": "collection",
  "resourceType": "environment",
  "links": {
    "self": "http://172.30.0.100:8080/v1/environments"
  },
  "createTypes": {
    "composeProject": "http://172.30.0.100:8080/v1/composeprojects",
    "environment": "http://172.30.0.100:8080/v1/environments"
  },
  "actions": {},
  "data": [
    {
      "id": "1e1",
      "type": "environment",
      "links": {
        "self": "http://172.30.0.100:8080/v1/environments/1e1",
        "account": "http://172.30.0.100:8080/v1/environments/1e1/account",
        "services": "http://172.30.0.100:8080/v1/environments/1e1/services",
        "composeConfig": "http://172.30.0.100:8080/v1/environments/1e1/composeconfig"
      },
      "actions": {
        "upgrade": "http://172.30.0.100:8080/v1/environments/1e1/?action=upgrade",
        "update": "http://172.30.0.100:8080/v1/environments/1e1/?action=update",
        "remove": "http://172.30.0.100:8080/v1/environments/1e1/?action=remove",
        "addoutputs": "http://172.30.0.100:8080/v1/environments/1e1/?action=addoutputs",
        "activateservices": "http://172.30.0.100:8080/v1/environments/1e1/?action=activateservices",
        "deactivateservices": "http://172.30.0.100:8080/v1/environments/1e1/?action=deactivateservices",
        "exportconfig": "http://172.30.0.100:8080/v1/environments/1e1/?action=exportconfig"
      },
      "name": "Concrete5",
      "state": "active",
      "accountId": "1a5",
      "created": "2016-09-22T17:58:53Z",
      "createdTS": 1474567133000,
      "description": null,
      "dockerCompose": "CMSMysql:\r\n    environment:\r\n        MYSQL_ROOT_PASSWORD: ${root_password}\r\n        MYSQL_DATABASE: ${db_name}\r\n        MYSQL_USER: ${db_username}\r\n        MYSQL_PASSWORD: ${db_password}\r\n    labels:\r\n        io.rancher.container.pull_image: always\r\n    tty: true\r\n    image: mysql\r\n    volumes:\r\n    - ${db_data_location}:/var/lib/mysql\r\n    stdin_open: true\r\n    volume_driver: ${volume_driver}\r\n\r\nCMSConfig:\r\n    image: opensaas/concrete5\r\n    tty: true\r\n    stdin_open: true\r\n    links:\r\n    - CMSMysql:mysql\r\n    volumes:\r\n    - ${cms_application_data}:/var/www/html/application\r\n    - ${cms_packages_data}:/var/www/html/packages\r\n    labels:\r\n        io.rancher.container.hostname_override: container_name\r\n        io.rancher.container.start_once: true\r\n    volume_driver: ${volume_driver}\r\n    command: bash -c \"chown -R www-data. application; chown -R www-data. packages; sleep 2m; php -f concrete/bin/concrete5.php c5:install --db-server=mysql --db-username=${db_username} --db-password=${db_password} --db-database=${db_name} --site=${cms_sitename} --admin-email=${cms_admin_email} --admin-password=${cms_admin_password} -n -vvv\"\r\n\r\nConcrete5App:\r\n    labels:\r\n        io.rancher.container.pull_image: always\r\n        io.rancher.sidekicks: CMSConfig\r\n    tty: true\r\n    links:\r\n    - CMSMysql:mysql\r\n    image: opensaas/concrete5\r\n    volumes:\r\n    - ${cms_application_data}:/var/www/html/application\r\n    - ${cms_packages_data}:/var/www/html/packages\r\n    volume_driver: ${volume_driver}\r\n    stdin_open: true",
      "environment": {
        "root_password": "password",
        "db_name": "CMS_DB",
        "db_username": "CMS_USER",
        "db_password": "password",
        "db_data_location": "CMS_DB_DATA",
        "volume_driver": "",
        "cms_application_data": "CMS_APP_DATA",
        "cms_packages_data": "CMS_PACK_DATA",
        "cms_admin_email": "admin@example.com",
        "cms_admin_password": "password",
        "cms_sitename": "MySite"
      },
      "externalId": "catalog://community:Concrete5:1",
      "healthState": "healthy",
      "kind": "environment",
      "outputs": null,
      "previousEnvironment": null,
      "previousExternalId": null,
      "rancherCompose": ".catalog:\r\n    name: \"Concrete5\"\r\n    version: \"v0.2\"\r\n    description: \"Concrete5 CMS\"\r\n    uuid: Concrete5-1\r\n    minimum_rancher_version: v0.51.0\r\n    questions:\r\n        - variable: root_password\r\n          description: \"MySQL root password - keep this password complex and secure\"\r\n          label: \"MySQL Root Password\"\r\n          required: true\r\n          default: \"password\"\r\n          type: \"string\"\r\n        - variable: db_name\r\n          description: \"MySQL Database Name - to use in the Concrete5 setup\"\r\n          label: \"MySQL Database Name\"\r\n          required: true\r\n          default: \"CMS_DB\"\r\n          type: \"string\"\r\n        - variable: db_username\r\n          description: \"MySQL Username - to use in the Concrete5 setup\"\r\n          label: \"MySQL Username\"\r\n          required: true\r\n          default: \"CMS_USER\"\r\n          type: \"string\"\r\n        - variable: db_password\r\n          description: \"MySQL password for the above user - to use in the Concrete5 setup\"\r\n          label: \"MySQL Password\"\r\n          required: true\r\n          default: \"password\"\r\n          type: \"string\"\r\n        - variable: db_data_location\r\n          description: \"Location on the host for the database files\"\r\n          label: \"DB Data Location\"\r\n          required: true\r\n          default: \"CMS_DB_DATA\"\r\n          type: \"string\"\r\n        - variable: volume_driver\r\n          description: \"Volume Driver for the persistant data locations requires docker 1.7\"\r\n          label: \"Volume Driver\"\r\n          type: \"string\"\r\n        - variable: cms_application_data\r\n          description: \"Concrcte5 application folder for persistant data storage\"\r\n          label: \"Application Folder\"\r\n          required: true\r\n          default: \"CMS_APP_DATA\"\r\n          type: \"string\"\r\n        - variable: cms_packages_data\r\n          description: \"Concrcte5 packages folder for persistant data storage\"\r\n          label: \"Packages Folder\"\r\n          required: true\r\n          default: \"CMS_PACK_DATA\"\r\n          type: \"string\"\r\n        - variable: cms_admin_email\r\n          description: \"Concrcete5 admin email address\"\r\n          label: \"Admin Email\"\r\n          required: true\r\n          default: \"admin@example.com\"\r\n          type: \"string\"\r\n        - variable: cms_admin_password\r\n          description: \"Concrcete5 admin password\"\r\n          label: \"Admin Password\"\r\n          required: true\r\n          default: \"password\"\r\n          type: \"string\"\r\n        - variable: cms_sitename\r\n          description: \"Concrcete5 Sitename\"\r\n          label: \"Sitename\"\r\n          required: true\r\n          default: \"MySite\"\r\n          type: \"string\"\r\nCMSMysql:\r\n    scale: 1\r\nConcrete5App:\r\n    scale: 1\r\n\r\n",
      "removed": null,
      "startOnCreate": true,
      "transitioning": "no",
      "transitioningMessage": null,
      "transitioningProgress": null,
      "uuid": "e129ed27-3823-4e2e-af62-4565d68995d4"
    },
    {
      "id": "1e2",
      "type": "environment",
      "links": {
        "self": "http://172.30.0.100:8080/v1/environments/1e2",
        "account": "http://172.30.0.100:8080/v1/environments/1e2/account",
        "services": "http://172.30.0.100:8080/v1/environments/1e2/services",
        "composeConfig": "http://172.30.0.100:8080/v1/environments/1e2/composeconfig"
      },
      "actions": {
        "upgrade": "http://172.30.0.100:8080/v1/environments/1e2/?action=upgrade",
        "update": "http://172.30.0.100:8080/v1/environments/1e2/?action=update",
        "remove": "http://172.30.0.100:8080/v1/environments/1e2/?action=remove",
        "addoutputs": "http://172.30.0.100:8080/v1/environments/1e2/?action=addoutputs",
        "activateservices": "http://172.30.0.100:8080/v1/environments/1e2/?action=activateservices",
        "deactivateservices": "http://172.30.0.100:8080/v1/environments/1e2/?action=deactivateservices",
        "exportconfig": "http://172.30.0.100:8080/v1/environments/1e2/?action=exportconfig"
      },
      "name": "ghost",
      "state": "active",
      "accountId": "1a5",
      "created": "2016-09-22T18:00:25Z",
      "createdTS": 1474567225000,
      "description": null,
      "dockerCompose": "ghost:\n  image: ghost\n  ports:\n    - ${public_port}:2368\n",
      "environment": {
        "public_port": "80"
      },
      "externalId": "catalog://community:ghost:0",
      "healthState": "healthy",
      "kind": "environment",
      "outputs": null,
      "previousEnvironment": null,
      "previousExternalId": null,
      "rancherCompose": ".catalog:\n  name: \"Ghost\"\n  version: \"v0.1-educaas\"\n  description: \"Blog powered by Ghost. Requires no database\"\n  uuid: ghost-0\n  minimum_rancher_version: v0.51.0\n  questions:\n    - variable: public_port\n      description: \"public port to access the blog\"\n      label: \"Public Port\"\n      required: true\n      default: \"80\"\n      type: \"int\"\nghost:\n",
      "removed": null,
      "startOnCreate": true,
      "transitioning": "no",
      "transitioningMessage": null,
      "transitioningProgress": null,
      "uuid": "4c335202-2ca7-41f1-8702-4984518566ec"
    },
    {
      "id": "1e5",
      "type": "environment",
      "links": {
        "self": "http://172.30.0.100:8080/v1/environments/1e5",
        "account": "http://172.30.0.100:8080/v1/environments/1e5/account",
        "services": "http://172.30.0.100:8080/v1/environments/1e5/services",
        "composeConfig": "http://172.30.0.100:8080/v1/environments/1e5/composeconfig"
      },
      "actions": {
        "upgrade": "http://172.30.0.100:8080/v1/environments/1e5/?action=upgrade",
        "update": "http://172.30.0.100:8080/v1/environments/1e5/?action=update",
        "remove": "http://172.30.0.100:8080/v1/environments/1e5/?action=remove",
        "addoutputs": "http://172.30.0.100:8080/v1/environments/1e5/?action=addoutputs",
        "activateservices": "http://172.30.0.100:8080/v1/environments/1e5/?action=activateservices",
        "deactivateservices": "http://172.30.0.100:8080/v1/environments/1e5/?action=deactivateservices",
        "exportconfig": "http://172.30.0.100:8080/v1/environments/1e5/?action=exportconfig"
      },
      "name": "heyk",
      "state": "active",
      "accountId": "1a5",
      "created": "2016-09-29T20:40:14Z",
      "createdTS": 1475181614000,
      "description": null,
      "dockerCompose": null,
      "environment": null,
      "externalId": null,
      "healthState": "healthy",
      "kind": "environment",
      "outputs": null,
      "previousEnvironment": null,
      "previousExternalId": null,
      "rancherCompose": null,
      "removed": null,
      "startOnCreate": true,
      "transitioning": "no",
      "transitioningMessage": null,
      "transitioningProgress": null,
      "uuid": "d5a39304-9247-4a31-8662-7dba98238105"
    },
    {
      "id": "1e6",
      "type": "environment",
      "links": {
        "self": "http://172.30.0.100:8080/v1/environments/1e6",
        "account": "http://172.30.0.100:8080/v1/environments/1e6/account",
        "services": "http://172.30.0.100:8080/v1/environments/1e6/services",
        "composeConfig": "http://172.30.0.100:8080/v1/environments/1e6/composeconfig"
      },
      "actions": {
        "upgrade": "http://172.30.0.100:8080/v1/environments/1e6/?action=upgrade",
        "update": "http://172.30.0.100:8080/v1/environments/1e6/?action=update",
        "remove": "http://172.30.0.100:8080/v1/environments/1e6/?action=remove",
        "addoutputs": "http://172.30.0.100:8080/v1/environments/1e6/?action=addoutputs",
        "activateservices": "http://172.30.0.100:8080/v1/environments/1e6/?action=activateservices",
        "deactivateservices": "http://172.30.0.100:8080/v1/environments/1e6/?action=deactivateservices",
        "exportconfig": "http://172.30.0.100:8080/v1/environments/1e6/?action=exportconfig"
      },
      "name": "ilikegurls",
      "state": "active",
      "accountId": "1a5",
      "created": "2016-10-06T00:40:23Z",
      "createdTS": 1475714423000,
      "description": null,
      "dockerCompose": null,
      "environment": null,
      "externalId": null,
      "healthState": "healthy",
      "kind": "environment",
      "outputs": null,
      "previousEnvironment": null,
      "previousExternalId": null,
      "rancherCompose": null,
      "removed": null,
      "startOnCreate": true,
      "transitioning": "no",
      "transitioningMessage": null,
      "transitioningProgress": null,
      "uuid": "19101511-6dcb-49f7-a8e1-063bcded1956"
    },
    {
      "id": "1e7",
      "type": "environment",
      "links": {
        "self": "http://172.30.0.100:8080/v1/environments/1e7",
        "account": "http://172.30.0.100:8080/v1/environments/1e7/account",
        "services": "http://172.30.0.100:8080/v1/environments/1e7/services",
        "composeConfig": "http://172.30.0.100:8080/v1/environments/1e7/composeconfig"
      },
      "actions": {
        "upgrade": "http://172.30.0.100:8080/v1/environments/1e7/?action=upgrade",
        "update": "http://172.30.0.100:8080/v1/environments/1e7/?action=update",
        "remove": "http://172.30.0.100:8080/v1/environments/1e7/?action=remove",
        "addoutputs": "http://172.30.0.100:8080/v1/environments/1e7/?action=addoutputs",
        "activateservices": "http://172.30.0.100:8080/v1/environments/1e7/?action=activateservices",
        "deactivateservices": "http://172.30.0.100:8080/v1/environments/1e7/?action=deactivateservices",
        "exportconfig": "http://172.30.0.100:8080/v1/environments/1e7/?action=exportconfig"
      },
      "name": "maybethisyear",
      "state": "active",
      "accountId": "1a5",
      "created": "2016-10-06T00:41:17Z",
      "createdTS": 1475714477000,
      "description": null,
      "dockerCompose": null,
      "environment": null,
      "externalId": null,
      "healthState": "healthy",
      "kind": "environment",
      "outputs": null,
      "previousEnvironment": null,
      "previousExternalId": null,
      "rancherCompose": null,
      "removed": null,
      "startOnCreate": true,
      "transitioning": "no",
      "transitioningMessage": null,
      "transitioningProgress": null,
      "uuid": "250c66f6-cd36-4c12-8767-deb5c35d0a05"
    },
    {
      "id": "1e8",
      "type": "environment",
      "links": {
        "self": "http://172.30.0.100:8080/v1/environments/1e8",
        "account": "http://172.30.0.100:8080/v1/environments/1e8/account",
        "services": "http://172.30.0.100:8080/v1/environments/1e8/services",
        "composeConfig": "http://172.30.0.100:8080/v1/environments/1e8/composeconfig"
      },
      "actions": {
        "upgrade": "http://172.30.0.100:8080/v1/environments/1e8/?action=upgrade",
        "update": "http://172.30.0.100:8080/v1/environments/1e8/?action=update",
        "remove": "http://172.30.0.100:8080/v1/environments/1e8/?action=remove",
        "addoutputs": "http://172.30.0.100:8080/v1/environments/1e8/?action=addoutputs",
        "activateservices": "http://172.30.0.100:8080/v1/environments/1e8/?action=activateservices",
        "deactivateservices": "http://172.30.0.100:8080/v1/environments/1e8/?action=deactivateservices",
        "exportconfig": "http://172.30.0.100:8080/v1/environments/1e8/?action=exportconfig"
      },
      "name": "oh-another",
      "state": "active",
      "accountId": "1a5",
      "created": "2016-10-06T00:51:34Z",
      "createdTS": 1475715094000,
      "description": null,
      "dockerCompose": null,
      "environment": null,
      "externalId": null,
      "healthState": "healthy",
      "kind": "environment",
      "outputs": null,
      "previousEnvironment": null,
      "previousExternalId": null,
      "rancherCompose": null,
      "removed": null,
      "startOnCreate": true,
      "transitioning": "no",
      "transitioningMessage": null,
      "transitioningProgress": null,
      "uuid": "a777dd5e-e524-43c8-8783-d7bb14bcffb6"
    }
  ],
  "sortLinks": {
    "accountId": "http://172.30.0.100:8080/v1/environments?limit=6&sort=accountId",
    "created": "http://172.30.0.100:8080/v1/environments?limit=6&sort=created",
    "description": "http://172.30.0.100:8080/v1/environments?limit=6&sort=description",
    "externalId": "http://172.30.0.100:8080/v1/environments?limit=6&sort=externalId",
    "healthState": "http://172.30.0.100:8080/v1/environments?limit=6&sort=healthState",
    "id": "http://172.30.0.100:8080/v1/environments?limit=6&sort=id",
    "kind": "http://172.30.0.100:8080/v1/environments?limit=6&sort=kind",
    "name": "http://172.30.0.100:8080/v1/environments?limit=6&sort=name",
    "removeTime": "http://172.30.0.100:8080/v1/environments?limit=6&sort=removeTime",
    "removed": "http://172.30.0.100:8080/v1/environments?limit=6&sort=removed",
    "state": "http://172.30.0.100:8080/v1/environments?limit=6&sort=state",
    "uuid": "http://172.30.0.100:8080/v1/environments?limit=6&sort=uuid"
  },
  "pagination": {
    "first": null,
    "previous": null,
    "next": "http://172.30.0.100:8080/v1/environments?limit=6&marker=m6",
    "limit": 6,
    "total": null,
    "partial": true
  },
  "sort": null,
  "filters": {
    "accountId": null,
    "created": null,
    "description": null,
    "externalId": null,
    "healthState": [
      {
        "modifier": "eq",
        "value": "healthy"
      }
    ],    "id": null,
    "kind": null,
    "name": null,
    "removeTime": null,
    "removed": null,
    "state": null,
    "uuid": null
  },
  "createDefaults": {}
}