Skip to main content

feeds

Creates, updates, deletes, gets or lists a feeds resource.

Overview

Namefeeds
TypeResource
Idgoogle.cloudasset.feeds

Fields

NameDatatypeDescription
feedsarrayA list of feeds.

Methods

NameAccessible byRequired ParamsDescription
listSELECTparent, parentTypeLists all asset feeds in a parent project/folder/organization.
createINSERTparent, parentTypeCreates a feed in a parent project/folder/organization to listen to its asset updates.

SELECT examples

Lists all asset feeds in a parent project/folder/organization.

SELECT
feeds
FROM google.cloudasset.feeds
WHERE parent = '{{ parent }}'
AND parentType = '{{ parentType }}';

INSERT example

Use the following StackQL query and manifest file to create a new feeds resource.

/*+ create */
INSERT INTO google.cloudasset.feeds (
parent,
parentType,
feedId,
feed
)
SELECT
'{{ parent }}',
'{{ parentType }}',
'{{ feedId }}',
'{{ feed }}'
;