REST Resource: projects.inventorySettings.exportSettings

Resource: ExportSetting

Settings that configure CAI to export assets on given schedules. An [InventorySettings] might have multiple [ExportSetting], each with a unique identifier.

JSON representation
{
  "name": string,
  "assetTypes": [
    string
  ],
  "contentType": enum (ContentType),
  "gcsSetting": {
    object (GcsSetting)
  },
  "bigquerySetting": {
    object (BigQuerySetting)
  }
}
Fields
name

string

The format will be: organizations/{ORGANIZATION_NUMBER}/inventorySettings/exportSettings/{exportSetting} or folders/{FOLDER_NUMBER}/inventorySettings/exportSettings/{exportSetting} or projects/{PROJECT_NUMBER}/inventorySettings/exportSettings/{exportSetting}

assetTypes[]

string

Asset types of resources that will be exported on schedule. For example: "compute.googleapis.com/Disk".

Regular expressions are also supported. For example:

  • "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com".
  • ".*Instance" snapshots resources whose asset type ends with "Instance".
  • ".*Instance.*" snapshots resources whose asset type contains "Instance".

See RE2 for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned.

If specified, only matching assets will be returned. See Introduction to Cloud Asset Inventory for all supported asset types.

contentType

enum (ContentType)

Required. Asset content type. Currently only RESOURCE, IAM_POLICY, ORG_POLICY, ACCESS_POLICY are supported.

gcsSetting

object (GcsSetting)

Setting to configure scheduled export output to GCS. At least one of [gcsSetting] and [bigquerySetting] should be set.

bigquerySetting

object (BigQuerySetting)

Setting to configure scheduled export output to BigQuery. At least one of [gcs_settings] and [bigquery_settings] should be set.

Methods

create

Creates an export setting.

delete

Deletes an export setting.

get

Gets details about an export setting.

list

Lists all export settings under a [InventorySettings].

patch

Updates an export setting.