def get_vpcs(cfmclient, uuid=None):
    """
    Get a list of VPCs currently defined in Composable Fabric.

    :param cfmclient: Connected CFM API client
    :param uuid: specific VPC UUID to retrieve
    :return: list of VPC dictionary objects
    :rtype: list
    """
    path = 'v1/vpcs'
    if uuid:
        path += '/{}'.format(uuid)

    return cfmclient.get(path).json().get('result')