A list of asset types to take a snapshot for. For example:
"compute.googleapis.com/Disk".
Regular expression is 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, otherwise, it will
snapshot all asset types. See Introduction to Cloud Asset
Inventory
for all supported asset types.
The next_page_token returned from the previous ListAssetsResponse, or
unspecified for the first ListAssetsRequest. It is a continuation of a
prior ListAssets call, and the API should return the next page of assets.
Required. Name of the organization, folder, or project the assets belong
to. Format: "organizations/[organization-number]" (such as
"organizations/123"), "projects/[project-id]" (such as
"projects/my-project-id"), "projects/[project-number]" (such as
"projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
Timestamp to take an asset snapshot. This can only be set to a timestamp
between the current time and the current time minus 35 days (inclusive).
If not specified, the current time will be used. Due to delays in resource
data collection and indexing, there is a volatile window during which
running the same query may get different results.
public RepeatedField<string> RelationshipTypes { get; }
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 snapshots specified relationships. It returns an error if
any of the [relationship_types] doesn't belong to the supported
relationship types of the [asset_types] or if any of the [asset_types]
doesn't belong to the source types of the [relationship_types].
Otherwise:
it snapshots the supported relationships for all [asset_types] or returns
an error if any of the [asset_types] has no relationship support.
An unspecified asset types field means all supported asset_types.
See Introduction to Cloud Asset
Inventory
for all supported asset types and relationship types.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eListAssetsRequest\u003c/code\u003e class is used to request a list of assets from the Google Cloud Asset Inventory v1 API, offering various configuration options.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e, and \u003ccode\u003eIPageRequest\u003c/code\u003e, providing extensive functionality and integration with other systems.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify asset types using regular expressions, set content type, define page size, and use page tokens to manage large asset lists.\u003c/p\u003e\n"],["\u003cp\u003eThe request can be configured to specify the parent (organization, folder, or project), a specific point in time for the snapshot (within the last 35 days), and also include specific relationship types.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Cloud Asset Inventory v1 API has several versions available, from 3.12.0 to 2.7.0.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Asset Inventory v1 API - Class ListAssetsRequest (3.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.13.0 (latest)](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.12.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.11.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.10.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.9.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.8.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.7.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.6.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.5.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.4.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.3.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.2.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.1.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.0.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.11.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.10.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.9.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.8.0/Google.Cloud.Asset.V1.ListAssetsRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.7.0/Google.Cloud.Asset.V1.ListAssetsRequest) \n\n public sealed class ListAssetsRequest : IMessage\u003cListAssetsRequest\u003e, IEquatable\u003cListAssetsRequest\u003e, IDeepCloneable\u003cListAssetsRequest\u003e, IBufferMessage, IMessage, IPageRequest\n\nReference documentation and code samples for the Google Cloud Asset Inventory v1 API class ListAssetsRequest.\n\nListAssets request. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListAssetsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListAssetsRequest](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.ListAssetsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListAssetsRequest](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.ListAssetsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListAssetsRequest](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.ListAssetsRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html), [IPageRequest](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Asset.V1](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Asset.V1.dll\n\nConstructors\n------------\n\n### ListAssetsRequest()\n\n public ListAssetsRequest()\n\n### ListAssetsRequest(ListAssetsRequest)\n\n public ListAssetsRequest(ListAssetsRequest other)\n\nProperties\n----------\n\n### AssetTypes\n\n public RepeatedField\u003cstring\u003e AssetTypes { get; }\n\nA list of asset types to take a snapshot for. For example:\n\"compute.googleapis.com/Disk\".\n\nRegular expression is also supported. For example:\n\n- \"compute.googleapis.com.\\*\" snapshots resources whose asset type starts with \"compute.googleapis.com\".\n- \".\\*Instance\" snapshots resources whose asset type ends with \"Instance\".\n- \".*Instance.*\" snapshots resources whose asset type contains \"Instance\".\n\nSee [RE2](https://github.com/google/re2/wiki/Syntax) for all supported\nregular expression syntax. If the regular expression does not match any\nsupported asset type, an INVALID_ARGUMENT error will be returned.\n\nIf specified, only matching assets will be returned, otherwise, it will\nsnapshot all asset types. See [Introduction to Cloud Asset\nInventory](https://cloud.google.com/asset-inventory/docs/overview)\nfor all supported asset types.\n\n### ContentType\n\n public ContentType ContentType { get; set; }\n\nAsset content type. If not specified, no content but the asset name will\nbe returned.\n\n### PageSize\n\n public int PageSize { get; set; }\n\nThe maximum number of assets to be returned in a single response. Default\nis 100, minimum is 1, and maximum is 1000.\n\n### PageToken\n\n public string PageToken { get; set; }\n\nThe `next_page_token` returned from the previous `ListAssetsResponse`, or\nunspecified for the first `ListAssetsRequest`. It is a continuation of a\nprior `ListAssets` call, and the API should return the next page of assets.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Name of the organization, folder, or project the assets belong\nto. Format: \"organizations/\\[organization-number\\]\" (such as\n\"organizations/123\"), \"projects/\\[project-id\\]\" (such as\n\"projects/my-project-id\"), \"projects/\\[project-number\\]\" (such as\n\"projects/12345\"), or \"folders/\\[folder-number\\]\" (such as \"folders/12345\").\n\n### ParentAsResourceName\n\n public IResourceName ParentAsResourceName { get; set; }\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.ListAssetsRequest#Google_Cloud_Asset_V1_ListAssetsRequest_Parent) resource name property.\n\n### ReadTime\n\n public Timestamp ReadTime { get; set; }\n\nTimestamp to take an asset snapshot. This can only be set to a timestamp\nbetween the current time and the current time minus 35 days (inclusive).\nIf not specified, the current time will be used. Due to delays in resource\ndata collection and indexing, there is a volatile window during which\nrunning the same query may get different results.\n\n### RelationshipTypes\n\n public RepeatedField\u003cstring\u003e RelationshipTypes { get; }\n\nA list of relationship types to output, for example:\n`INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if\ncontent_type=RELATIONSHIP.\n\n- If specified: it snapshots specified relationships. It returns an error if any of the \\[relationship_types\\] doesn't belong to the supported relationship types of the \\[asset_types\\] or if any of the \\[asset_types\\] doesn't belong to the source types of the \\[relationship_types\\].\n- Otherwise: it snapshots the supported relationships for all \\[asset_types\\] or returns an error if any of the \\[asset_types\\] has no relationship support. An unspecified asset types field means all supported asset_types. See [Introduction to Cloud Asset\n Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types."]]