お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
Method: projects.assets.copy
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
HTTP リクエスト
POST https://earthengine.googleapis.com/v1/{sourceName=projects/*/assets/**}:copy
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
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」)。(例: "assets/users/[USER]/[ASSET]").
認可には、指定されたリソース sourceName に対する次の IAM の権限が必要です。
|
リクエストの本文
リクエストの本文には、次の構造のデータが含まれます。
JSON 表現 |
{
"destinationName": string,
"overwrite": boolean
} |
フィールド |
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
|
overwrite |
boolean
既存のアセットを上書きするかどうか。
|
レスポンスの本文
成功した場合、レスポンスの本文には EarthEngineAsset
のインスタンスが含まれます。
認可スコープ
以下のいずれかの OAuth スコープが必要です。
https://www.googleapis.com/auth/earthengine
https://www.googleapis.com/auth/cloud-platform
詳細については、OAuth 2.0 Overview をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eCopies an existing Earth Engine asset to a new destination.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the source asset name and the desired destination name.\u003c/p\u003e\n"],["\u003cp\u003eOptionally allows overwriting an existing asset at the destination.\u003c/p\u003e\n"],["\u003cp\u003eNeeds appropriate IAM permissions for both source and destination.\u003c/p\u003e\n"],["\u003cp\u003eUses the \u003ccode\u003ePOST\u003c/code\u003e method with the URL \u003ccode\u003ehttps://earthengine.googleapis.com/v1/{sourceName=projects/*/assets/**}:copy\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.assets.copy\n\nCopies an asset.\n\n### HTTP request\n\n`POST https://earthengine.googleapis.com/v1/{sourceName=projects/*/assets/**}:copy`\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 copy. `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\"). (e.g., \"assets/users/\\[USER\\]/\\[ASSET\\]\"). Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `sourceName`: - `earthengine.assets.get` |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------|\n| ``` { \"destinationName\": string, \"overwrite\": boolean } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `destinationName` | `string` The destination name to which to copy 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| `overwrite` | `boolean` Whether to allow overwriting an existing asset. |\n\n### Response body\n\nIf successful, the response body contains an instance of [EarthEngineAsset](/earth-engine/reference/rest/v1/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)."]]