- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- IndexedAsset
Lists a list of assets inside an index.
HTTP request
GET https://visionai.googleapis.com/v1/{index=projects/*/locations/*/corpora/*/indexes/*}:viewAssets
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
index |
Required. The index that owns this collection of assets. Format: |
Query parameters
Parameters | |
---|---|
pageSize |
The maximum number of assets to return. The service may return fewer than this value. If unspecified, at most 50 assets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken |
A page token, received from a previous When paginating, all other parameters provided to |
filter |
The filter applied to the returned list. Only the following filterings are supported: "assetId = xxxx", which returns asset with specified id. "assetId = xxxx, yyyy, zzzz", which returns assets with specified ids. |
Request body
The request body must be empty.
Response body
Response message for indexes.viewAssets.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"indexedAssets": [
{
object ( |
Fields | |
---|---|
indexedAssets[] |
The assets from the specified index. |
nextPageToken |
A token, which can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the index
resource:
visionai.indexes.viewAssets
For more information, see the IAM documentation.
IndexedAsset
An IndexedAsset is an asset that the index is built upon.
JSON representation |
---|
{ "index": string, "asset": string, "createTime": string, "updateTime": string } |
Fields | |
---|---|
index |
Required. The index that this indexed asset belongs to. Format: |
asset |
Required. The resource name of the asset. Format: |
createTime |
Output only. The create timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The update timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |