Method: projects.assets.listAssets

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

string

The name of the container asset to list. parent is of the format "projects/*" or "projects/*/assets/**" (e.g., "projects/[PROJECT]" or "projects/earthengine-legacy/assets/users/[USER]/[ASSET]"). All user-owned assets are currently under the project "earthengine-legacy" (e.g., "projects/earthengine-legacy/assets/users/foo/bar"). All other assets are under the project "earthengine-public" (e.g., "projects/earthengine-public/assets/LANDSAT"). If "projects/earthengine-legacy" is specified, the response will consist of a list of all top-level folders owned by the requesting user.

Authorization requires one or more of the following Google IAM permissions on the specified resource parent:

  • earthengine.assets.get
  • earthengine.assets.list

Query parameters

Parameters
pageSize

number

An optional maximum number of results per page. The server may return fewer assets than requested. If unspecified, server will pick an appropriate default.

pageToken

string

An optional token identifying a page of results the server should return. Typically this is the value of ListAssetsResponse.next_page_token returned from the previous call to the assets.listAssets method.

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