-- In v2.0.
-- Get the latest inventory_index_id.
SET @inventory_index_id = (SELECT id FROM inventory_index ORDER BY id DESC LIMIT 1);
-- Number of projects inventoried.
SELECT Count(*) number_of_projects
FROM gcp_inventory
WHERE gcp_inventory.index = @inventory_index_id
AND gcp_inventory.type = 'project'
AND gcp_inventory.type_class = 'resource';
SELECT count(*) number_of_projectsFROM gcp_inventoryWHERE gcp_inventory.inventory_index_id = '2018-04-18T04:57:38.735183'AND gcp_inventory.resource_type = 'project'AND gcp_inventory.category = 'resource';
Confirm that G Suite is configured correctly
Run the following SQL commands to make sure that gsuite_group and gsuite_users were correctly inventoried.
-- Check for G Suite groups.
SELECT * FROM gcp_inventoryWHERE type = 'gsuite_group';
-- Check for G Suite users.
SELECT * FROM gcp_inventoryWHERE type = 'gsuite_user';
-- Check number of projects
SELECT Count(*) number_of_projects,
inventory_index_id
FROM gcp_inventory
WHERE resource_type = 'project'
AND category = 'resource'
GROUP BY inventory_index_id;
-- Check number of service accounts
SELECT Count(*) number_of_service_accounts,
inventory_index_id
FROM gcp_inventory
WHERE resource_type = 'serviceaccount'
AND category = 'resource'
GROUP BY inventory_index_id;-- Check G Suite GroupsSELECT Count(*) AS count,inventory_index_idFROM gcp_inventoryWHERE resource_type = 'gsuite_group'GROUP BY inventory_index_id;-- Check G Suite UsersSELECT Count(*) AS count,inventory_index_idFROM gcp_inventoryWHERE resource_type = 'gsuite_user'GROUP BY inventory_index_id;
--
You received this message because you are subscribed to the Google Groups "Forseti Security Beta Testers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beta-testers...@forsetisecurity.org.
To post to this group, send email to beta-t...@forsetisecurity.org.
To view this discussion on the web visit https://groups.google.com/a/forsetisecurity.org/d/msgid/beta-testers/CADT05SR5o5QkfDx1WMQA0Fy8v-sP9FGEyUVe25UKHAr-VfDGYw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beta-testers+unsubscribe@forsetisecurity.org.
To post to this group, send email to beta-testers@forsetisecurity.org.
To view this discussion on the web visit https://groups.google.com/a/forsetisecurity.org/d/msgid/beta-testers/CADT05SR5o5QkfDx1WMQA0Fy8v-sP9FGEyUVe25UKHAr-VfDGYw%40mail.gmail.com.