{
  "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": "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": {}
}