AI-generated Key Takeaways
-
The
listAssets
method is used to list container assets like folders or collections. -
The HTTP request uses a GET method with a URL following gRPC Transcoding syntax, requiring a parent parameter specifying the container asset to list.
-
Path parameters include the required
parent
which defines the container asset's name and format, including user-owned and public assets. -
Query parameters like
pageSize
,pageToken
,filter
, andview
can be used to control the pagination, filtering, and level of detail in the response. -
The method requires specific IAM permissions and OAuth scopes for authorization.
Lists any container asset, such as a folder or collection.
HTTP request
GET https://earthengine.googleapis.com/v1alpha/{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/earthengine
https://www.googleapis.com/auth/earthengine.readonly
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-platform.read-only
For more information, see the OAuth 2.0 Overview.