Method: projects.assets.move
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी ऐसेट को एक से दूसरी जगह ले जाता है.
एचटीटीपी अनुरोध
POST https://earthengine.googleapis.com/v1alpha/{sourceName=projects/*/assets/**}:move
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
sourceName |
string
जिस ऐसेट को दूसरी जगह ले जाना है उसका नाम. name का फ़ॉर्मैट "projects/*/assets/**" है (उदाहरण के लिए, "projects/earthengine-legacy/assets/users/[USER]/[ASSET]"). उपयोगकर्ता के मालिकाना हक वाली सभी एसेट, "earthengine-legacy" प्रोजेक्ट में शामिल होती हैं. उदाहरण के लिए, "projects/earthengine-legacy/assets/users/foo/bar"). बाकी सभी एसेट, "earthengine-public" प्रोजेक्ट के तहत आती हैं. उदाहरण के लिए, "projects/earthengine-public/assets/LANDSAT").
अनुमति पाने के लिए, दिए गए संसाधन sourceName पर IAM की यह अनुमति ज़रूरी है:
earthengine.assets.delete
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में नीचे दिए गए स्ट्रक्चर वाला डेटा होता है:
JSON के काेड में दिखाना |
{
"destinationName": string
} |
फ़ील्ड |
destinationName |
string
वह डेस्टिनेशन जिस पर ऐसेट को ले जाना है. name का फ़ॉर्मैट "projects/*/assets/**" है (उदाहरण के लिए, "projects/earthengine-legacy/assets/users/[USER]/[ASSET]"). उपयोगकर्ता के मालिकाना हक वाली सभी एसेट, "earthengine-legacy" प्रोजेक्ट में शामिल होती हैं. उदाहरण के लिए, "projects/earthengine-legacy/assets/users/foo/bar"). बाकी सभी एसेट, "earthengine-public" प्रोजेक्ट के तहत आती हैं. उदाहरण के लिए, "projects/earthengine-public/assets/LANDSAT").
अनुमति पाने के लिए, दिए गए संसाधन destinationName पर IAM की यह अनुमति ज़रूरी है:
earthengine.assets.create
|
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में EarthEngineAsset
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
इसके लिए, OAuth के इनमें से किसी एक स्कोप की ज़रूरत होती है:
https://www.googleapis.com/auth/earthengine
https://www.googleapis.com/auth/cloud-platform
ज़्यादा जानकारी के लिए, 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\u003eMoves an Earth Engine asset to a new destination within your projects.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the source asset's name and the desired destination name using the format "projects/*/assets/**".\u003c/p\u003e\n"],["\u003cp\u003eNeeds appropriate IAM permissions for both deleting the source asset and creating it at the destination.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes a POST request to the Earth Engine API, including the source and destination names in the request.\u003c/p\u003e\n"],["\u003cp\u003eReturns the EarthEngineAsset details upon successful completion of the move operation.\u003c/p\u003e\n"]]],["This outlines the process for moving an asset using a POST request to the specified URL. The request requires a `sourceName` parameter, indicating the current asset location, and a `destinationName` within the request body, specifying the new location. `sourceName` requires `earthengine.assets.delete` permission, while `destinationName` needs `earthengine.assets.create` permission. Assets are located under \"earthengine-legacy\" for users or \"earthengine-public.\" Successful moves return an `EarthEngineAsset`. OAuth scopes `earthengine` or `cloud-platform` are required.\n"],null,["# Method: projects.assets.move\n\nMoves an asset.\n\n### HTTP request\n\n`POST https://earthengine.googleapis.com/v1alpha/{sourceName=projects/*/assets/**}:move`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `sourceName` | `string` The name of the asset to move. `name` is of the format \"projects/\\*/assets/\\*\\*\" (e.g., \"projects/earthengine-legacy/assets/users/\\[USER\\]/\\[ASSET\\]\"). All user-owned assets are 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\"). Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `sourceName`: - `earthengine.assets.delete` |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------|\n| ``` { \"destinationName\": string } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `destinationName` | `string` The destination name to which to move the asset. `name` is of the format \"projects/\\*/assets/\\*\\*\" (e.g., \"projects/earthengine-legacy/assets/users/\\[USER\\]/\\[ASSET\\]\"). All user-owned assets are 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\"). Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `destinationName`: - `earthengine.assets.create` |\n\n### Response body\n\nIf successful, the response body contains an instance of [EarthEngineAsset](/earth-engine/reference/rest/v1alpha/projects.assets#EarthEngineAsset).\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/cloud-platform`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]