def get_resource(intersight):
    """
    GET a resource and return the 1st element found
    """
    options = {'http_method': 'get', 'resource_path': intersight.module.
        params['resource_path'], 'query_params': intersight.module.params[
        'query_params']}
    response_dict = intersight.call_api(**options)
    if response_dict.get('Results'):
        response_dict = response_dict['Results'][0]
    return response_dict
