Enum elements

def _enum_elements(name, server=None):
    '''
    Enum elements
    '''
    elements = []
    data = _api_get(name, server)

    if any(data['extraProperties']['childResources']):
        for element in data['extraProperties']['childResources']:
            elements.append(element)
        return elements
    return None