Method: projects.listAssets
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी कंटेनर ऐसेट की सूची बनाता है, जैसे कि फ़ोल्डर या कलेक्शन.
एचटीटीपी अनुरोध
GET https://earthengine.googleapis.com/v1alpha/{parent=projects/*}:listAssets
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
parent |
string
ज़रूरी है. सूची में शामिल की जाने वाली कंटेनर ऐसेट का नाम. parent , "projects/*" या "projects/*/assets/**" फ़ॉर्मैट में हो (उदाहरण के लिए, "projects/[PROJECT]" या "projects/earthengine-legacy/assets/users/[USER]/[ASSET]"). फ़िलहाल, उपयोगकर्ता के मालिकाना हक वाली सभी एसेट, "earthengine-legacy" प्रोजेक्ट में शामिल हैं. उदाहरण के लिए, "projects/earthengine-legacy/assets/users/foo/bar"). बाकी सभी एसेट, "earthengine-public" प्रोजेक्ट के तहत आती हैं. उदाहरण के लिए, "projects/earthengine-public/assets/LANDSAT"). अगर "projects/earthengine-legacy" तय किया गया है, तो जवाब में उन सभी टॉप-लेवल फ़ोल्डर की सूची होगी जिनका मालिकाना हक, अनुरोध करने वाले उपयोगकर्ता के पास है.
अनुमति पाने के लिए, दिए गए संसाधन parent पर, IAM की इनमें से एक या उससे ज़्यादा अनुमतियों की ज़रूरत होती है:
earthengine.assets.get
earthengine.assets.list
|
क्वेरी पैरामीटर
पैरामीटर |
pageSize |
integer
हर पेज पर नतीजों की ज़्यादा से ज़्यादा संख्या. ऐसा हो सकता है कि सर्वर, अनुरोध की गई संख्या से कम ऐसेट दिखाए. अगर पेज साइज़ की वैल्यू सबमिट नहीं की जाती है, तो पेज का डिफ़ॉल्ट साइज़ EarthEngineAssetView पर निर्भर करता है. साथ ही, ज़्यादा पाबंदी वाले व्यू के लिए, ज़्यादा सीमाएं होती हैं.
|
pageToken |
string
नतीजों के उस पेज की पहचान करने वाला टोकन जिसे सर्वर को दिखाना चाहिए. आम तौर पर, यह projects.listAssets वाले तरीके के पिछले कॉल से मिली ListAssetsResponse.next_page_token की वैल्यू होती है.
|
filter |
string
अगर मौजूद है, तो यह किसी फ़िल्टर की जानकारी देता है. फ़िल्टर सिर्फ़ ImageCollection ऐसेट पर लागू होते हैं. इन्हें Folder ऐसेट के लिए अनदेखा कर दिया जाता है. startTime , endTime , और properties के सदस्यों के फ़ील्ड को पहचाना जाता है. कस्टम फ़ंक्शन intersects(str) उपलब्ध है, जो ज्यामिति के हिसाब से फ़िल्टर करने की सुविधा देता है.
तारीख के फ़िल्टर का उदाहरण:
"startTime>\"2020-01-01T00:00:00+00:00\" AND
endTime<\"2020-02-01T00:00:00+00:00\""
प्रॉपर्टी फ़िल्टर का उदाहरण:
"properties.CLOUDY_PIXEL_PERCENTAGE<30"
ज्यामिति फ़िल्टर का उदाहरण:
"intersects(\"{'type':'Point','coordinates':[1,2]}\")"
"intersects(\"{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[1,2]}\")"
फ़िल्टर की भाषा के बारे में ज़्यादा जानकारी के लिए, https://google.aip.dev/160 देखें.
|
view |
enum (EarthEngineAssetView )
इससे पता चलता है कि जवाब में EarthEngineAsset रिसॉर्स के कौनसे हिस्से दिखाए जाने चाहिए. यह सिर्फ़ ImageCollection ऐसेट पर लागू होता है. इस फ़ील्ड की वैल्यू के बावजूद, Folder ऐसेट के सभी एलिमेंट को BASIC व्यू में एन्कोड किया जाएगा.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य हिस्सा
कामयाब रहने पर, जवाब के मुख्य हिस्से में ListAssetsResponse
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
इसके लिए, OAuth के इनमें से किसी एक स्कोप की ज़रूरत होती है:
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
ज़्यादा जानकारी के लिए, OAuth 2.0 Overview देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eLists container assets, such as folders or collections, within a specified parent resource.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering by date, properties, and geometry for \u003ccode\u003eImageCollection\u003c/code\u003e assets.\u003c/p\u003e\n"],["\u003cp\u003eSupports pagination to retrieve large result sets.\u003c/p\u003e\n"],["\u003cp\u003eRequires appropriate IAM permissions or OAuth scopes for authorization.\u003c/p\u003e\n"],["\u003cp\u003eResponse includes details about the listed assets and a token for retrieving subsequent pages.\u003c/p\u003e\n"]]],["This describes the `listAssets` method, which retrieves a list of container assets like folders or collections. The method uses a `GET` request with the `parent` path parameter, specifying the container to list (e.g., projects or user folders). Optional query parameters include `pageSize` and `pageToken` for pagination, `filter` to filter `ImageCollection` assets by date, properties or geometry and `view` to specify the `EarthEngineAsset` returned parts. Authorization needs specific IAM permissions. The request body is empty.\n"],null,["# Method: projects.listAssets\n\nLists any container asset, such as a folder or collection.\n\n### HTTP request\n\n`GET https://earthengine.googleapis.com/v1alpha/{parent=projects/*}:listAssets`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. 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 [IAM](https://cloud.google.com/iam/docs/) permissions on the specified resource `parent`: - `earthengine.assets.get` - `earthengine.assets.list` |\n\n### Query parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` 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. |\n| `pageToken` | `string` A token identifying a page of results the server should return. Typically this is the value of [ListAssetsResponse.next_page_token](/earth-engine/reference/rest/v1alpha/ListAssetsResponse#FIELDS.next_page_token) returned from the previous call to the `projects.listAssets` method. |\n| `filter` | `string` If present, specifies a filter. Filters are only applied to `ImageCollection` assets and are ignored for `Folder` assets. The fields `startTime`, `endTime`, and members of `properties` are recognized. The custom function `intersects(str)` is available, which allows filtering by geometry. An example date filter: \"startTime\u003e\\\"2020-01-01T00:00:00+00:00\\\" AND endTime\u003c\\\"2020-02-01T00:00:00+00:00\\\"\" An example property filter: \"properties.CLOUDY_PIXEL_PERCENTAGE\u003c30\" An example geometry filter: \"intersects(\\\"{'type':'Point','coordinates':[1,2]}\\\")\" \"intersects(\\\"{\\\\\\\"type\\\\\\\":\\\\\\\"Point\\\\\\\",\\\\\\\"coordinates\\\\\\\":[1,2]}\\\")\" See \u003chttps://google.aip.dev/160\u003e for more details on the filter language. |\n| `view` | `enum (`[EarthEngineAssetView](/earth-engine/reference/rest/v1alpha/EarthEngineAssetView)`)` Specifies which parts of the `EarthEngineAsset` resource should be returned in the response. Only applies to `ImageCollection` assets. All elements of `Folder` assets will be encoded in the `BASIC` view regardless of the value of this field. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [ListAssetsResponse](/earth-engine/reference/rest/v1alpha/ListAssetsResponse).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/earthengine`\n- `\n https://www.googleapis.com/auth/earthengine.readonly`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/cloud-platform.read-only`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]