Using Console
Using CLI
<FEED_NAME>
with the desired name for the new feed, <ASSET_NAME>
with the name of the asset you want to inventory, and <PROJECT_ID>
with the ID of the project where the asset is located.Step 4: Run the following command to list all the feeds that have been created:<FEED_NAME>
with the name of the feed you created in Step 3, and <PROJECT_ID>
with the ID of the project where the asset is located.By following these steps, you can ensure that the Cloud Asset Inventory is enabled for your GCP project.Using Python
your_organization_id
and [email protected]
with the appropriate values for your GCP organization and email address. Also, make sure that the service account used for authentication has the necessary permissions to enable Cloud Asset Inventory.