gcloud alpha asset feeds create

NAME
gcloud alpha asset feeds create - create a Cloud Asset Inventory Feed
SYNOPSIS
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) [--content-type=CONTENT_TYPE] [GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Create a new Cloud Asset Inventory Feed for updates on assets.
POSITIONAL ARGUMENTS
FEED_ID
Asset feed identifier being created, it must be unique under the specified parent resource project/folder/organization.
REQUIRED FLAGS
--pubsub-topic=PUBSUB_TOPIC
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:
--asset-names=[ASSET_NAMES,…]
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. See https://cloud.google.com/apis/design/resource_names#full_resource_name for more information.
--asset-types=[ASSET_TYPES,…]
A comma-separated list of types of the assets types to receive updates. For example: compute.googleapis.com/Disk,compute.googleapis.com/Network See https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview for all supported asset types.
Exactly one of these must be specified:
--folder=FOLDER_ID
Folder of the feed.
--organization=ORGANIZATION_ID
Organization of the feed.
--project=PROJECT_ID
project of the feed.

The Google Cloud Platform project name 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.

OPTIONAL FLAGS
--content-type=CONTENT_TYPE
Asset content type. If not specified, no content but the asset name and type will be returned in the feed. To read more see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview#asset_content_type. CONTENT_TYPE must be one of: resource, iam-policy.
GCLOUD WIDE FLAGS
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.

EXAMPLES
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
  --asset-types=compute.googleapis.com/Network,compute.googleapis.com/Disk
  --content-type=resource --pubsub-topic=projects/project1/topics/feed-topic
NOTES
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 whitelist. These variants are also available:
  $ gcloud asset feeds create
  $ gcloud beta asset feeds create