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: string
description: Required parameter for the feeds resource.
- name: parent
value: string
description: Required parameter for the feeds resource.
- name: feedId
value: string
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
value: object
description: >
Required. The feed details. The field `name` must be empty and it will be generated in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id