{
  "type": "collection",
  "resourceType": "service",
  "links": {
    "self": "http://172.30.0.100:8080/v1/services"
  },
  "createTypes": {
    "dnsService": "http://172.30.0.100:8080/v1/dnsservices",
    "externalService": "http://172.30.0.100:8080/v1/externalservices",
    "loadBalancerService": "http://172.30.0.100:8080/v1/loadbalancerservices",
    "service": "http://172.30.0.100:8080/v1/services"
  },
  "actions": {},
  "data": [
    {
      "id": "1s1",
      "type": "service",
      "links": {
        "self": "http://172.30.0.100:8080/v1/services/1s1",
        "account": "http://172.30.0.100:8080/v1/services/1s1/account",
        "consumedbyservices": "http://172.30.0.100:8080/v1/services/1s1/consumedbyservices",
        "consumedservices": "http://172.30.0.100:8080/v1/services/1s1/consumedservices",
        "environment": "http://172.30.0.100:8080/v1/services/1s1/environment",
        "instances": "http://172.30.0.100:8080/v1/services/1s1/instances",
        "serviceExposeMaps": "http://172.30.0.100:8080/v1/services/1s1/serviceexposemaps",
        "containerStats": "http://172.30.0.100:8080/v1/services/1s1/containerstats"
      },
      "actions": {
        "update": "http://172.30.0.100:8080/v1/services/1s1/?action=update",
        "remove": "http://172.30.0.100:8080/v1/services/1s1/?action=remove",
        "setservicelinks": "http://172.30.0.100:8080/v1/services/1s1/?action=setservicelinks",
        "removeservicelink": "http://172.30.0.100:8080/v1/services/1s1/?action=removeservicelink",
        "activate": "http://172.30.0.100:8080/v1/services/1s1/?action=activate",
        "upgrade": "http://172.30.0.100:8080/v1/services/1s1/?action=upgrade",
        "addservicelink": "http://172.30.0.100:8080/v1/services/1s1/?action=addservicelink"
      },
      "name": "CMSMysql",
      "state": "inactive",
      "accountId": "1a5",
      "assignServiceIpAddress": false,
      "createIndex": 1,
      "created": "2016-09-22T17:58:54Z",
      "createdTS": 1474567134000,
      "currentScale": 1,
      "description": null,
      "environmentId": "1e1",
      "externalId": null,
      "fqdn": null,
      "healthState": "unhealthy",
      "kind": "service",
      "launchConfig": {
        "dataVolumes": [
          "CMS_DB_DATA:/var/lib/mysql"
        ],
        "environment": {
          "MYSQL_DATABASE": "CMS_DB",
          "MYSQL_PASSWORD": "password",
          "MYSQL_ROOT_PASSWORD": "password",
          "MYSQL_USER": "CMS_USER"
        },
        "imageUuid": "docker:mysql",
        "kind": "container",
        "labels": {
          "io.rancher.container.pull_image": "always",
          "io.rancher.service.hash": "c5d6bacef4be47a5ca5d1517a1d33319d024cdde"
        },
        "logConfig": {},
        "networkMode": "managed",
        "privileged": false,
        "publishAllPorts": false,
        "readOnly": false,
        "startOnCreate": true,
        "stdinOpen": true,
        "tty": true,
        "version": "0",
        "vcpu": 1
      },
      "metadata": {
        "io.rancher.service.hash": "41ccfd7f8023f2efcc758a925a9f461d607c990d"
      },
      "publicEndpoints": null,
      "removed": null,
      "retainIp": null,
      "scale": 1,
      "scalePolicy": null,
      "secondaryLaunchConfigs": [],
      "selectorContainer": null,
      "selectorLink": null,
      "startOnCreate": false,
      "transitioning": "no",
      "transitioningMessage": null,
      "transitioningProgress": null,
      "upgrade": null,
      "uuid": "85f4e9fc-c311-45a0-9a1a-a9da229aaa2a",
      "vip": null
    },
    {
      "id": "1s2",
      "type": "service",
      "links": {
        "self": "http://172.30.0.100:8080/v1/services/1s2",
        "account": "http://172.30.0.100:8080/v1/services/1s2/account",
        "consumedbyservices": "http://172.30.0.100:8080/v1/services/1s2/consumedbyservices",
        "consumedservices": "http://172.30.0.100:8080/v1/services/1s2/consumedservices",
        "environment": "http://172.30.0.100:8080/v1/services/1s2/environment",
        "instances": "http://172.30.0.100:8080/v1/services/1s2/instances",
        "serviceExposeMaps": "http://172.30.0.100:8080/v1/services/1s2/serviceexposemaps",
        "containerStats": "http://172.30.0.100:8080/v1/services/1s2/containerstats"
      },
      "actions": {
        "update": "http://172.30.0.100:8080/v1/services/1s2/?action=update",
        "remove": "http://172.30.0.100:8080/v1/services/1s2/?action=remove",
        "setservicelinks": "http://172.30.0.100:8080/v1/services/1s2/?action=setservicelinks",
        "removeservicelink": "http://172.30.0.100:8080/v1/services/1s2/?action=removeservicelink",
        "activate": "http://172.30.0.100:8080/v1/services/1s2/?action=activate",
        "upgrade": "http://172.30.0.100:8080/v1/services/1s2/?action=upgrade",
        "addservicelink": "http://172.30.0.100:8080/v1/services/1s2/?action=addservicelink"
      },
      "name": "Concrete5App",
      "state": "inactive",
      "accountId": "1a5",
      "assignServiceIpAddress": false,
      "createIndex": 2,
      "created": "2016-09-22T17:58:54Z",
      "createdTS": 1474567134000,
      "currentScale": 1,
      "description": null,
      "environmentId": "1e1",
      "externalId": null,
      "fqdn": null,
      "healthState": "degraded",
      "kind": "service",
      "launchConfig": {
        "dataVolumes": [
          "CMS_APP_DATA:/var/www/html/application",
          "CMS_PACK_DATA:/var/www/html/packages"
        ],
        "imageUuid": "docker:opensaas/concrete5",
        "kind": "container",
        "labels": {
          "io.rancher.container.pull_image": "always",
          "io.rancher.service.hash": "6033469e7596fd16896eb87b3a99f50af2dbf522",
          "io.rancher.sidekicks": "CMSConfig"
        },
        "logConfig": {},
        "networkMode": "managed",
        "privileged": false,
        "publishAllPorts": false,
        "readOnly": false,
        "startOnCreate": true,
        "stdinOpen": true,
        "tty": true,
        "version": "0",
        "vcpu": 1
      },
      "metadata": {
        "io.rancher.service.hash": "037726f2f6d389022953a652a5d3e5775415d0b0"
      },
      "publicEndpoints": null,
      "removed": null,
      "retainIp": null,
      "scale": 1,
      "scalePolicy": null,
      "secondaryLaunchConfigs": [
        {
          "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=CMS_USER --db-password=password --db-database=CMS_DB --site=MySite --admin-email=admin@example.com --admin-password=password -n -vvv"
          ],
          "dataVolumes": [
            "CMS_APP_DATA:/var/www/html/application",
            "CMS_PACK_DATA:/var/www/html/packages"
          ],
          "imageUuid": "docker:opensaas/concrete5",
          "labels": {
            "io.rancher.container.hostname_override": "container_name",
            "io.rancher.container.start_once": "true",
            "io.rancher.service.hash": "db08c70dbb11ff2955a5cac93c2c6e5e1ac95e7e"
          },
          "logConfig": {},
          "name": "CMSConfig",
          "networkMode": "managed",
          "startOnCreate": true,
          "stdinOpen": true,
          "tty": true,
          "kind": "container",
          "privileged": false,
          "publishAllPorts": false,
          "readOnly": false,
          "vcpu": 1,
          "version": "0"
        }
      ],
      "selectorContainer": null,
      "selectorLink": null,
      "startOnCreate": false,
      "transitioning": "no",
      "transitioningMessage": null,
      "transitioningProgress": null,
      "upgrade": null,
      "uuid": "1d824bd6-e18b-4ac4-8ea1-5cd0a3c7e234",
      "vip": null
    },
    {
      "id": "1s3",
      "type": "service",
      "links": {
        "self": "http://172.30.0.100:8080/v1/services/1s3",
        "account": "http://172.30.0.100:8080/v1/services/1s3/account",
        "consumedbyservices": "http://172.30.0.100:8080/v1/services/1s3/consumedbyservices",
        "consumedservices": "http://172.30.0.100:8080/v1/services/1s3/consumedservices",
        "environment": "http://172.30.0.100:8080/v1/services/1s3/environment",
        "instances": "http://172.30.0.100:8080/v1/services/1s3/instances",
        "serviceExposeMaps": "http://172.30.0.100:8080/v1/services/1s3/serviceexposemaps",
        "containerStats": "http://172.30.0.100:8080/v1/services/1s3/containerstats"
      },
      "actions": {
        "update": "http://172.30.0.100:8080/v1/services/1s3/?action=update",
        "restart": "http://172.30.0.100:8080/v1/services/1s3/?action=restart",
        "remove": "http://172.30.0.100:8080/v1/services/1s3/?action=remove",
        "setservicelinks": "http://172.30.0.100:8080/v1/services/1s3/?action=setservicelinks",
        "removeservicelink": "http://172.30.0.100:8080/v1/services/1s3/?action=removeservicelink",
        "upgrade": "http://172.30.0.100:8080/v1/services/1s3/?action=upgrade",
        "addservicelink": "http://172.30.0.100:8080/v1/services/1s3/?action=addservicelink",
        "deactivate": "http://172.30.0.100:8080/v1/services/1s3/?action=deactivate"
      },
      "name": "ghost",
      "state": "active",
      "accountId": "1a5",
      "assignServiceIpAddress": false,
      "createIndex": 1,
      "created": "2016-09-22T18:00:26Z",
      "createdTS": 1474567226000,
      "currentScale": 1,
      "description": null,
      "environmentId": "1e2",
      "externalId": null,
      "fqdn": null,
      "healthState": "healthy",
      "kind": "service",
      "launchConfig": {
        "imageUuid": "docker:ghost",
        "kind": "container",
        "labels": {
          "io.rancher.service.hash": "af9b5ddd2891271b12a88129e2bc37ff57998182"
        },
        "logConfig": {},
        "networkMode": "managed",
        "ports": [
          "80:2368/tcp"
        ],
        "privileged": false,
        "publishAllPorts": false,
        "readOnly": false,
        "startOnCreate": true,
        "stdinOpen": false,
        "tty": false,
        "version": "0",
        "vcpu": 1
      },
      "metadata": {
        "io.rancher.service.hash": "f49280e1f709117b76693b638834791e4f4ef0fd"
      },
      "publicEndpoints": [
        {
          "ipAddress": "172.30.0.101",
          "port": 80,
          "serviceId": "1s3",
          "hostId": "1h1",
          "instanceId": "1i5"
        }
      ],
      "removed": null,
      "retainIp": null,
      "scale": 1,
      "scalePolicy": null,
      "secondaryLaunchConfigs": [],
      "selectorContainer": null,
      "selectorLink": null,
      "startOnCreate": false,
      "transitioning": "no",
      "transitioningMessage": null,
      "transitioningProgress": null,
      "upgrade": null,
      "uuid": "c2ce7050-e5b5-42c7-a9fb-8ed8d33a4884",
      "vip": null
    },
    {
      "id": "1s6",
      "type": "service",
      "links": {
        "self": "http://172.30.0.100:8080/v1/services/1s6",
        "account": "http://172.30.0.100:8080/v1/services/1s6/account",
        "consumedbyservices": "http://172.30.0.100:8080/v1/services/1s6/consumedbyservices",
        "consumedservices": "http://172.30.0.100:8080/v1/services/1s6/consumedservices",
        "environment": "http://172.30.0.100:8080/v1/services/1s6/environment",
        "instances": "http://172.30.0.100:8080/v1/services/1s6/instances",
        "serviceExposeMaps": "http://172.30.0.100:8080/v1/services/1s6/serviceexposemaps",
        "containerStats": "http://172.30.0.100:8080/v1/services/1s6/containerstats"
      },
      "actions": {
        "update": "http://172.30.0.100:8080/v1/services/1s6/?action=update",
        "restart": "http://172.30.0.100:8080/v1/services/1s6/?action=restart",
        "remove": "http://172.30.0.100:8080/v1/services/1s6/?action=remove",
        "setservicelinks": "http://172.30.0.100:8080/v1/services/1s6/?action=setservicelinks",
        "removeservicelink": "http://172.30.0.100:8080/v1/services/1s6/?action=removeservicelink",
        "upgrade": "http://172.30.0.100:8080/v1/services/1s6/?action=upgrade",
        "addservicelink": "http://172.30.0.100:8080/v1/services/1s6/?action=addservicelink",
        "deactivate": "http://172.30.0.100:8080/v1/services/1s6/?action=deactivate"
      },
      "name": "123",
      "state": "active",
      "accountId": "1a5",
      "assignServiceIpAddress": false,
      "createIndex": 1,
      "created": "2016-09-22T18:28:04Z",
      "createdTS": 1474568884000,
      "currentScale": 1,
      "description": null,
      "environmentId": "1e2",
      "externalId": null,
      "fqdn": null,
      "healthState": "healthy",
      "kind": "service",
      "launchConfig": {
        "capAdd": [],
        "capDrop": [],
        "count": null,
        "cpuSet": null,
        "cpuShares": null,
        "dataVolumes": [],
        "dataVolumesFrom": [],
        "description": null,
        "devices": [],
        "dns": [],
        "dnsSearch": [],
        "domainName": null,
        "hostname": null,
        "imageUuid": "docker:ubuntu:trusty",
        "kind": "container",
        "labels": {
          "io.rancher.container.pull_image": "always"
        },
        "logConfig": {
          "config": {},
          "driver": ""
        },
        "memory": null,
        "memoryMb": null,
        "memorySwap": null,
        "networkMode": "managed",
        "pidMode": null,
        "ports": [],
        "privileged": false,
        "publishAllPorts": false,
        "readOnly": false,
        "requestedIpAddress": null,
        "startOnCreate": true,
        "stdinOpen": true,
        "tty": true,
        "user": null,
        "userdata": null,
        "version": "0bdea468-c3e9-4562-951c-d543958e966a",
        "volumeDriver": null,
        "workingDir": null,
        "dataVolumesFromLaunchConfigs": [],
        "networkLaunchConfig": null,
        "vcpu": 1
      },
      "metadata": null,
      "publicEndpoints": null,
      "removed": null,
      "retainIp": null,
      "scale": 1,
      "scalePolicy": null,
      "secondaryLaunchConfigs": [],
      "selectorContainer": null,
      "selectorLink": null,
      "startOnCreate": true,
      "transitioning": "no",
      "transitioningMessage": null,
      "transitioningProgress": null,
      "upgrade": {
        "inServiceStrategy": {
          "batchSize": 1,
          "intervalMillis": 2000,
          "launchConfig": {
            "capAdd": [],
            "capDrop": [],
            "count": null,
            "cpuSet": null,
            "cpuShares": null,
            "dataVolumes": [],
            "dataVolumesFrom": [],
            "description": null,
            "devices": [],
            "dns": [],
            "dnsSearch": [],
            "domainName": null,
            "hostname": null,
            "imageUuid": "docker:ubuntu:trusty",
            "kind": "container",
            "labels": {
              "io.rancher.container.pull_image": "always"
            },
            "logConfig": {
              "config": {},
              "driver": ""
            },
            "memory": null,
            "memoryMb": null,
            "memorySwap": null,
            "networkMode": "managed",
            "pidMode": null,
            "ports": [],
            "privileged": false,
            "publishAllPorts": false,
            "readOnly": false,
            "requestedIpAddress": null,
            "startOnCreate": true,
            "stdinOpen": true,
            "tty": true,
            "user": null,
            "userdata": null,
            "version": "0bdea468-c3e9-4562-951c-d543958e966a",
            "volumeDriver": null,
            "workingDir": null,
            "dataVolumesFromLaunchConfigs": [],
            "networkLaunchConfig": null,
            "vcpu": 1
          },
          "previousLaunchConfig": {
            "capAdd": [],
            "capDrop": [],
            "count": null,
            "cpuSet": null,
            "cpuShares": null,
            "dataVolumes": [],
            "dataVolumesFrom": [],
            "description": null,
            "devices": [],
            "dns": [],
            "dnsSearch": [],
            "domainName": null,
            "hostname": null,
            "imageUuid": "docker:ubuntu:trusty",
            "kind": "container",
            "labels": {
              "io.rancher.container.pull_image": "always"
            },
            "logConfig": {
              "config": {},
              "driver": ""
            },
            "memory": null,
            "memoryMb": null,
            "memorySwap": null,
            "networkMode": "managed",
            "pidMode": null,
            "ports": [],
            "privileged": false,
            "publishAllPorts": false,
            "readOnly": false,
            "requestedIpAddress": null,
            "startOnCreate": true,
            "stdinOpen": true,
            "tty": true,
            "user": null,
            "userdata": null,
            "version": "0",
            "volumeDriver": null,
            "workingDir": null,
            "dataVolumesFromLaunchConfigs": [],
            "networkLaunchConfig": null,
            "vcpu": 1
          },
          "previousSecondaryLaunchConfigs": [],
          "secondaryLaunchConfigs": [],
          "startFirst": true
        },
        "toServiceStrategy": null
      },
      "uuid": "c0ae4d08-e20a-45ef-9fb9-ad9f7cdeeb15",
      "vip": null
    }
  ],
  "sortLinks": {
    "accountId": "http://172.30.0.100:8080/v1/services?limit=4&sort=accountId",
    "createIndex": "http://172.30.0.100:8080/v1/services?limit=4&sort=createIndex",
    "created": "http://172.30.0.100:8080/v1/services?limit=4&sort=created",
    "description": "http://172.30.0.100:8080/v1/services?limit=4&sort=description",
    "environmentId": "http://172.30.0.100:8080/v1/services?limit=4&sort=environmentId",
    "externalId": "http://172.30.0.100:8080/v1/services?limit=4&sort=externalId",
    "healthState": "http://172.30.0.100:8080/v1/services?limit=4&sort=healthState",
    "id": "http://172.30.0.100:8080/v1/services?limit=4&sort=id",
    "kind": "http://172.30.0.100:8080/v1/services?limit=4&sort=kind",
    "name": "http://172.30.0.100:8080/v1/services?limit=4&sort=name",
    "removeTime": "http://172.30.0.100:8080/v1/services?limit=4&sort=removeTime",
    "removed": "http://172.30.0.100:8080/v1/services?limit=4&sort=removed",
    "selectorContainer": "http://172.30.0.100:8080/v1/services?limit=4&sort=selectorContainer",
    "selectorLink": "http://172.30.0.100:8080/v1/services?limit=4&sort=selectorLink",
    "state": "http://172.30.0.100:8080/v1/services?limit=4&sort=state",
    "uuid": "http://172.30.0.100:8080/v1/services?limit=4&sort=uuid",
    "vip": "http://172.30.0.100:8080/v1/services?limit=4&sort=vip"
  },
  "pagination": {
    "first": null,
    "previous": null,
    "next": "http://172.30.0.100:8080/v1/services?limit=4&marker=m4",
    "limit": 4,
    "total": null,
    "partial": true
  },
  "sort": null,
  "filters": {
    "accountId": null,
    "createIndex": null,
    "created": null,
    "description": null,
    "environmentId": null,
    "externalId": null,
    "healthState": null,
    "id": null,
    "kind": null,
    "name": null,
    "removeTime": null,
    "removed": null,
    "selectorContainer": null,
    "selectorLink": null,
    "state": null,
    "uuid": null,
    "vip": null
  },
  "createDefaults": {}
}