feeds
Creates, updates, deletes, gets or lists a feeds resource.
Overview
| Name | feeds |
| Type | Resource |
| Id | google.cloudasset.feeds |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
feeds | array | A list of feeds. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | parentType, parent | Lists all asset feeds in a parent project/folder/organization. | |
create | insert | parentType, parent | Creates a feed in a parent project/folder/organization to listen to its asset updates. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
parent | string | |
parentType | string |
SELECT examples
- list
Lists all asset feeds in a parent project/folder/organization.
SELECT
feeds
FROM google.cloudasset.feeds
WHERE parentType = '{{ parentType }}' -- required
AND parent = '{{ parent }}' -- required
;
INSERT examples
- create
- Manifest
Creates a feed in a parent project/folder/organization to listen to its asset updates.
INSERT INTO google.cloudasset.feeds (
data__feedId,
data__feed,
parentType,
parent
)
SELECT
'{{ feedId }}',
'{{ feed }}',
'{{ parentType }}',
'{{ parent }}'
RETURNING
name,
assetNames,
assetTypes,
condition,
contentType,
feedOutputConfig,
relationshipTypes
;
# Description fields are for documentation purposes
- name: feeds
props:
- name: parentType
value: "{{ parentType }}"
description: Required parameter for the feeds resource.
- name: parent
value: "{{ parent }}"
description: Required parameter for the feeds resource.
- name: feedId
value: "{{ feedId }}"
description: |
Required. This is the client-assigned asset feed identifier and it needs to be unique under a specific parent project/folder/organization.
- name: feed
description: |
An asset feed used to export asset updates to a destinations. An asset feed filter controls what updates are exported. The asset feed must be created within a project, organization, or folder. Supported destinations are: Pub/Sub topics.
value:
contentType: "{{ contentType }}"
feedOutputConfig:
pubsubDestination:
topic: "{{ topic }}"
name: "{{ name }}"
assetTypes:
- "{{ assetTypes }}"
condition:
description: "{{ description }}"
expression: "{{ expression }}"
title: "{{ title }}"
location: "{{ location }}"
assetNames:
- "{{ assetNames }}"
relationshipTypes:
- "{{ relationshipTypes }}"