Anuncio: Todos los proyectos no comerciales registrados para usar Earth Engine antes del
15 de abril de 2025 deben
verificar su elegibilidad no comercial para mantener el acceso a Earth Engine.
Method: projects.assets.move
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Solicitud HTTP
POST https://earthengine.googleapis.com/v1alpha/{sourceName=projects/*/assets/**}:move
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
sourceName |
string
Es el nombre del recurso que se moverá. name tiene el formato "projects/*/assets/**" (p.ej., "projects/earthengine-legacy/assets/users/[USER]/[ASSET]"). Todos los recursos que pertenecen al usuario están en el proyecto "earthengine-legacy" (p.ej., "projects/earthengine-legacy/assets/users/foo/bar"). Todos los demás recursos se encuentran en el proyecto "earthengine-public" (p.ej., "projects/earthengine-public/assets/LANDSAT").
La autorización requiere el siguiente permiso IAM en el recurso especificado sourceName :
earthengine.assets.delete
|
Cuerpo de la solicitud
El cuerpo de la solicitud contiene datos con la siguiente estructura:
Representación JSON |
{
"destinationName": string
} |
Campos |
destinationName |
string
Es el nombre del destino al que se moverá el activo. name tiene el formato "projects/*/assets/**" (p.ej., "projects/earthengine-legacy/assets/users/[USER]/[ASSET]"). Todos los recursos que pertenecen al usuario están en el proyecto "earthengine-legacy" (p.ej., "projects/earthengine-legacy/assets/users/foo/bar"). Todos los demás recursos se encuentran en el proyecto "earthengine-public" (p.ej., "projects/earthengine-public/assets/LANDSAT").
La autorización requiere el siguiente permiso IAM en el recurso especificado destinationName :
earthengine.assets.create
|
Cuerpo de la respuesta
Si se ejecuta de forma correcta, el cuerpo de la respuesta contiene una instancia de EarthEngineAsset
.
Alcances de autorización
Se necesita uno de los siguientes permisos de OAuth:
https://www.googleapis.com/auth/earthengine
https://www.googleapis.com/auth/cloud-platform
Para obtener más información, consulta OAuth 2.0 Overview.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-25 (UTC)
[null,null,["Última actualización: 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)."]]