AI-generated Key Takeaways
-
The
listAssetsmethod lists any container asset like a folder or collection using aGETHTTP request to a specified URL. -
The
parentparameter is required and defines the container asset to list, using specific formatting for project and asset paths. -
Optional query parameters like
pageSize,pageToken,filter, andviewcan be used to refine the list of results, although some filters only apply toImageCollectionassets. -
A successful response contains a
ListAssetsResponse, and authorization requires specific IAM permissions and OAuth scopes.
Lists any container asset, such as a folder or collection.
HTTP request
GET https://earthengine.googleapis.com/v1beta/{parent=projects/*/assets/**}: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.