query {
  portal {
    id
    user {
      id
      firstName
      lastName
      email
      login
    }
    datacenter {
      id
      name
      region
    }
    deploymentGroups {
      id
      name
      slug
      services {
        id
        hash
        name
        slug
        instances {
          id
          name
          machineId
          status
          healthy
          watches
          jobs
        }
        connections
        branches {
          name
          slug
          instances {
            id
            name
            machineId
            status
            healthy
            watches
            jobs
          }
        }
        config {
          id
          environment {
            id
            name
            value
          }
          image
          labels {
            id
            name
            value
          }
          ports
        }
        status
      }
      version {
        id
        manifest {
          id
          type
          format
          environment
          files {
            id
            name
            value
          }
          raw
        }
        scale {
          id
          serviceName
          replicas
        }
        plan {
          id
          type
          service
          toProcess
          processed
          machines
        }
        hasPlan
        error
      }
      history {
        id
        manifest {
          id
          type
          format
          environment
          files {
            id
            name
            value
          }
          raw
        }
        scale {
          id
          serviceName
          replicas
        }
        plan {
          id
          type
          service
          toProcess
          processed
          machines
        }
        hasPlan
        error
      }
      imported
      status
    }
  }
}
