Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.cloudasset/v1.getFeed
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets details about an asset feed.
Using getFeed
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFeed(args: GetFeedArgs, opts?: InvokeOptions): Promise<GetFeedResult>
function getFeedOutput(args: GetFeedOutputArgs, opts?: InvokeOptions): Output<GetFeedResult>
def get_feed(feed_id: Optional[str] = None,
v1_id: Optional[str] = None,
v1_id1: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFeedResult
def get_feed_output(feed_id: Optional[pulumi.Input[str]] = None,
v1_id: Optional[pulumi.Input[str]] = None,
v1_id1: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFeedResult]
func LookupFeed(ctx *Context, args *LookupFeedArgs, opts ...InvokeOption) (*LookupFeedResult, error)
func LookupFeedOutput(ctx *Context, args *LookupFeedOutputArgs, opts ...InvokeOption) LookupFeedResultOutput
> Note: This function is named LookupFeed
in the Go SDK.
public static class GetFeed
{
public static Task<GetFeedResult> InvokeAsync(GetFeedArgs args, InvokeOptions? opts = null)
public static Output<GetFeedResult> Invoke(GetFeedInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFeedResult> getFeed(GetFeedArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:cloudasset/v1:getFeed
arguments:
# arguments dictionary
The following arguments are supported:
getFeed Result
The following output properties are available:
- Asset
Names List<string> - A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
. For a list of the full names for supported asset types, see Resource name format. - Asset
Types List<string> - A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example:
"compute.googleapis.com/Disk"
For a list of all supported asset types, see Supported asset types. - Condition
Pulumi.
Google Native. Cloud Asset. V1. Outputs. Expr Response - A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set,
expression
field in theExpr
must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with nametemporal_asset
. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields ofExpr
are optional. See our user guide for detailed instructions. - Content
Type string - Asset content type. If not specified, no content but the asset name and type will be returned.
- Feed
Output Pulumi.Config Google Native. Cloud Asset. V1. Outputs. Feed Output Config Response - Feed output configuration defining where the asset updates are published to.
- Name string
- The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
- Relationship
Types List<string> - A list of relationship types to output, for example:
INSTANCE_TO_INSTANCEGROUP
. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
- Asset
Names []string - A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
. For a list of the full names for supported asset types, see Resource name format. - Asset
Types []string - A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example:
"compute.googleapis.com/Disk"
For a list of all supported asset types, see Supported asset types. - Condition
Expr
Response - A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set,
expression
field in theExpr
must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with nametemporal_asset
. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields ofExpr
are optional. See our user guide for detailed instructions. - Content
Type string - Asset content type. If not specified, no content but the asset name and type will be returned.
- Feed
Output FeedConfig Output Config Response - Feed output configuration defining where the asset updates are published to.
- Name string
- The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
- Relationship
Types []string - A list of relationship types to output, for example:
INSTANCE_TO_INSTANCEGROUP
. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
- asset
Names List<String> - A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
. For a list of the full names for supported asset types, see Resource name format. - asset
Types List<String> - A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example:
"compute.googleapis.com/Disk"
For a list of all supported asset types, see Supported asset types. - condition
Expr
Response - A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set,
expression
field in theExpr
must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with nametemporal_asset
. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields ofExpr
are optional. See our user guide for detailed instructions. - content
Type String - Asset content type. If not specified, no content but the asset name and type will be returned.
- feed
Output FeedConfig Output Config Response - Feed output configuration defining where the asset updates are published to.
- name String
- The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
- relationship
Types List<String> - A list of relationship types to output, for example:
INSTANCE_TO_INSTANCEGROUP
. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
- asset
Names string[] - A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
. For a list of the full names for supported asset types, see Resource name format. - asset
Types string[] - A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example:
"compute.googleapis.com/Disk"
For a list of all supported asset types, see Supported asset types. - condition
Expr
Response - A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set,
expression
field in theExpr
must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with nametemporal_asset
. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields ofExpr
are optional. See our user guide for detailed instructions. - content
Type string - Asset content type. If not specified, no content but the asset name and type will be returned.
- feed
Output FeedConfig Output Config Response - Feed output configuration defining where the asset updates are published to.
- name string
- The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
- relationship
Types string[] - A list of relationship types to output, for example:
INSTANCE_TO_INSTANCEGROUP
. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
- asset_
names Sequence[str] - A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
. For a list of the full names for supported asset types, see Resource name format. - asset_
types Sequence[str] - A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example:
"compute.googleapis.com/Disk"
For a list of all supported asset types, see Supported asset types. - condition
Expr
Response - A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set,
expression
field in theExpr
must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with nametemporal_asset
. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields ofExpr
are optional. See our user guide for detailed instructions. - content_
type str - Asset content type. If not specified, no content but the asset name and type will be returned.
- feed_
output_ Feedconfig Output Config Response - Feed output configuration defining where the asset updates are published to.
- name str
- The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
- relationship_
types Sequence[str] - A list of relationship types to output, for example:
INSTANCE_TO_INSTANCEGROUP
. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
- asset
Names List<String> - A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
. For a list of the full names for supported asset types, see Resource name format. - asset
Types List<String> - A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example:
"compute.googleapis.com/Disk"
For a list of all supported asset types, see Supported asset types. - condition Property Map
- A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set,
expression
field in theExpr
must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with nametemporal_asset
. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields ofExpr
are optional. See our user guide for detailed instructions. - content
Type String - Asset content type. If not specified, no content but the asset name and type will be returned.
- feed
Output Property MapConfig - Feed output configuration defining where the asset updates are published to.
- name String
- The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
- relationship
Types List<String> - A list of relationship types to output, for example:
INSTANCE_TO_INSTANCEGROUP
. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
Supporting Types
ExprResponse
- Description string
- Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
- Expression string
- Textual representation of an expression in Common Expression Language syntax.
- Location string
- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- Title string
- Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
- Description string
- Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
- Expression string
- Textual representation of an expression in Common Expression Language syntax.
- Location string
- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- Title string
- Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
- description String
- Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
- expression String
- Textual representation of an expression in Common Expression Language syntax.
- location String
- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- title String
- Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
- description string
- Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
- expression string
- Textual representation of an expression in Common Expression Language syntax.
- location string
- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- title string
- Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
- description str
- Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
- expression str
- Textual representation of an expression in Common Expression Language syntax.
- location str
- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- title str
- Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
- description String
- Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
- expression String
- Textual representation of an expression in Common Expression Language syntax.
- location String
- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
- title String
- Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
FeedOutputConfigResponse
- Pubsub
Destination Pulumi.Google Native. Cloud Asset. V1. Inputs. Pubsub Destination Response - Destination on Pub/Sub.
- Pubsub
Destination PubsubDestination Response - Destination on Pub/Sub.
- pubsub
Destination PubsubDestination Response - Destination on Pub/Sub.
- pubsub
Destination PubsubDestination Response - Destination on Pub/Sub.
- pubsub_
destination PubsubDestination Response - Destination on Pub/Sub.
- pubsub
Destination Property Map - Destination on Pub/Sub.
PubsubDestinationResponse
- Topic string
- The name of the Pub/Sub topic to publish to. Example:
projects/PROJECT_ID/topics/TOPIC_ID
.
- Topic string
- The name of the Pub/Sub topic to publish to. Example:
projects/PROJECT_ID/topics/TOPIC_ID
.
- topic String
- The name of the Pub/Sub topic to publish to. Example:
projects/PROJECT_ID/topics/TOPIC_ID
.
- topic string
- The name of the Pub/Sub topic to publish to. Example:
projects/PROJECT_ID/topics/TOPIC_ID
.
- topic str
- The name of the Pub/Sub topic to publish to. Example:
projects/PROJECT_ID/topics/TOPIC_ID
.
- topic String
- The name of the Pub/Sub topic to publish to. Example:
projects/PROJECT_ID/topics/TOPIC_ID
.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi