gcloud alpha asset feeds create

gcloud alpha asset feeds create - create a Cloud Asset Inventory Feed
gcloud alpha asset feeds create FEED_ID --pubsub-topic=PUBSUB_TOPIC (--asset-names=[ASSET_NAMES,…] --asset-types=[ASSET_TYPES,…]) (--folder=FOLDER_ID     | --organization=ORGANIZATION_ID     | --project=PROJECT_ID) [--condition-description=CONDITION_DESCRIPTION] [--condition-expression=CONDITION_EXPRESSION] [--condition-title=CONDITION_TITLE] [--content-type=CONTENT_TYPE] [GCLOUD_WIDE_FLAG]
(ALPHA) Create a new Cloud Asset Inventory Feed for updates on assets.
Asset feed identifier being created, it must be unique under the specified parent resource project/folder/organization.
Name of the Cloud Pub/Sub topic to publish to, of the form projects/PROJECT_ID/topics/TOPIC_ID. You can list existing topics with gcloud pubsub topics list --format="text(name)"
At least one of these must be specified:
A comma-separated list of the full names of the assets to receive updates. For example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1. For more information, see: https://cloud.google.com/apis/design/resource_names#full_resource_name
A comma-separated list of types of the assets types to receive updates. For example: compute.googleapis.com/Disk,compute.googleapis.com/Network For more information, see: https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview
Exactly one of these must be specified:
Folder of the feed.
Organization of the feed.
project of the feed.

The Google Cloud Platform project ID to use for this invocation. If omitted, then the current project is assumed; the current project can be listed using gcloud config list --format='text(core.project)' and can be set using gcloud config set project PROJECTID.

--project and its fallback core/project property play two roles in the invocation. It specifies the project of the resource to operate on. It also specifies the project for API enablement check, quota, and billing. To specify a different project for quota and billing, use --billing-project or billing/quota_project property.

Description of the feed condition. For reference only.
Feed condition expression. If not specified, no condition will be applied to feed. For more information, see: https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes#feed_with_condition
Title of the feed condition. For reference only.
Asset content type. If not specified, no content but the asset name and type will be returned in the feed. For more information, see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview#asset_content_type. CONTENT_TYPE must be one of: resource, iam-policy, org-policy, access-policy, os-inventory.
These flags are available to all commands: --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.

Run $ gcloud help for details.

To create a new feed 'feed1' in project 'p1' which alerts on compute disks and network resources types, run:
gcloud alpha asset feeds create feed1 --project=p1
  --content-type=resource --pubsub-topic=projects/project1/topics/feed-topic
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you may be trying to access an API with an invitation-only early access allowlist. These variants are also available:
gcloud asset feeds create
gcloud beta asset feeds create