Объявление : Все некоммерческие проекты, зарегистрированные для использования Earth Engine до
15 апреля 2025 года, должны
подтвердить некоммерческое право на сохранение доступа к Earth Engine.
ee.data.setAssetAcl
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Устанавливает список контроля доступа актива с заданным идентификатором.
ACL владельца не может быть изменен, а окончательный ACL актива создается путем слияния записей OWNER старого ACL с входящей записью ACL.
Аутентифицированный пользователь должен быть автором или владельцем актива, чтобы установить его ACL.
Использование | Возврат | ee.data.setAssetAcl(assetId, aclUpdate, callback ) | |
Аргумент | Тип | Подробности | assetId | Нить | Идентификатор актива, для которого необходимо установить ACL. |
aclUpdate | AssetAclUpdate | Обновленный ACL. |
callback | Функция, необязательная | Необязательный обратный вызов. Если не указан, вызов выполняется синхронно. В обратный вызов передаётся пустой объект. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
[null,null,["Последнее обновление: 2025-07-24 UTC."],[[["\u003cp\u003eDefines how access is controlled for a specific Earth Engine asset using an ID and access control list.\u003c/p\u003e\n"],["\u003cp\u003eMerges existing owner access with new access rules, ensuring the owner's permissions remain unchanged.\u003c/p\u003e\n"],["\u003cp\u003eRequires the user to have write or owner permissions on the asset to modify its access control settings.\u003c/p\u003e\n"],["\u003cp\u003eProvides a function \u003ccode\u003eee.data.setAssetAcl\u003c/code\u003e to update the access control list of the asset, accepting asset ID and updated ACL as arguments.\u003c/p\u003e\n"]]],["This documentation details the process of updating an asset's Access Control List (ACL). Users with writer or owner privileges can modify an asset's ACL using `ee.data.setAssetAcl()`. The function requires the `assetId` and the `aclUpdate` as parameters. The owner's ACL entries cannot be modified and are merged with the new ACL during the update. An optional callback function can be provided for asynchronous execution, which returns an empty object.\n"],null,["# ee.data.setAssetAcl\n\n\u003cbr /\u003e\n\nSets the access control list of the asset with the given ID.\n\n\u003cbr /\u003e\n\nThe owner ACL cannot be changed, and the final ACL of the asset is constructed by merging the OWNER entries of the old ACL with the incoming ACL record.\n\nThe authenticated user must be a writer or owner of an asset to set its ACL.\n\n| Usage | Returns |\n|---------------------------------------------------------|---------|\n| `ee.data.setAssetAcl(assetId, aclUpdate, `*callback*`)` | |\n\n| Argument | Type | Details |\n|-------------|--------------------|----------------------------------------------------------------------------------------------------------------|\n| `assetId` | String | The ID of the asset to set the ACL on. |\n| `aclUpdate` | AssetAclUpdate | The updated ACL. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. The callback is passed an empty object. |"]]