AI-generated Key Takeaways
-
The
listAssetsmethod lists any container asset, such as a folder or collection, using a GET HTTP request. -
The
parentpath parameter specifies the container asset to list and requires specific IAM permissions. -
Query parameters like
pageSize,pageToken,filter, andviewcan be used to control the response, withfilterandviewprimarily applicable to ImageCollection assets. -
The request body is empty, and a successful response returns a
ListAssetsResponse. -
Authorization requires specific OAuth scopes related to Earth Engine or Cloud Platform access.
Lists any container asset, such as a folder or collection.
HTTP request
GET https://earthengine.googleapis.com/v1beta/{parent=projects/*}:listAssets
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The name of the container asset to list. Authorization requires one or more of the following IAM permissions on the specified resource
|
Query parameters
| Parameters | |
|---|---|
pageSize |
The maximum number of results per page. The server may return fewer assets than requested. If unspecified, the page size default depends on the EarthEngineAssetView, with higher limits for more restrictive views. |
pageToken |
A token identifying a page of results the server should return. Typically this is the value of |
filter |
If present, specifies a filter. Filters are only applied to The fields An example date filter: An example property filter: An example geometry filter: See https://google.aip.dev/160 for more details on the filter language. |
view |
Specifies which parts of the |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of ListAssetsResponse.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/earthenginehttps://www.googleapis.com/auth/earthengine.readonlyhttps://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-platform.read-only
For more information, see the OAuth 2.0 Overview.