def get_instance_health(name, region=None, key=None, keyid=None, profile=None, instances=None):
    conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)

    try:
        instance_states = conn.describe_instance_health(name, instances)
        ret = []
        for _instance in instance_states:
            ret.append({'instance_id': _instance.instance_id,
                        'description': _instance.description,
                        'state': _instance.state,
                        'reason_code': _instance.reason_code
                        })
        return ret
    except boto.exception.BotoServerError as error:
        log.debug(error)
        return []
Get a list of instances and their health state
dataset/ETHPy150Open saltstack/salt/salt/modules/boto_elb.py/get_instance_health