def METHOD_NAME(vra_ip, token, catalog_name):
    url = 'https://%s/catalog-service/api/consumer/entitledCatalogItemViews' % vra_ip
    headers = {
        'Accept': 'application/json',
        'Content-Type': 'application/json',
        'Authorization': 'Bearer %s' % token
    }
    r = requests.get(url, headers = headers, verify=False)
    if r.status_code == 200:
        resp = r.json()
        for cat_item in resp['content']:
            if cat_item['name'] == catalog_name:
                return cat_item['catalogItemId']
    else:
        raise APIError('Api Error: %s Resp Code: %s' % (r.text, r.status_code))
    return 'Catalog ID for %s not found' % catalog_name