公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.getAssetAcl
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
返回具有指定 ID 的资产的访问控制列表。
经过身份验证的用户必须是相应资产的写入者或所有者,才能查看其 ACL。
用法 | 返回 |
---|
ee.data.getAssetAcl(assetId, callback) | AssetAcl |
参数 | 类型 | 详细信息 |
---|
assetId | 字符串 | 要检查的素材资源的 ID。 |
callback | 函数(可选) | 可选的回调。如果未提供,则以同步方式进行调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eReturns the access control list (ACL) for a specific Earth Engine asset.\u003c/p\u003e\n"],["\u003cp\u003eRequires writer or owner permissions for the asset to retrieve its ACL.\u003c/p\u003e\n"],["\u003cp\u003eUses the \u003ccode\u003eee.data.getAssetAcl()\u003c/code\u003e function, which can be called synchronously or asynchronously.\u003c/p\u003e\n"],["\u003cp\u003eTakes the asset ID as an argument to identify the asset in question.\u003c/p\u003e\n"]]],["Retrieves the Access Control List (ACL) for a specified asset ID. The `assetId` (string) is required to identify the target asset. The authenticated user must have writer or owner permissions to view the ACL. An optional `callback` function can be provided for asynchronous operation; otherwise, the call is synchronous. The function `ee.data.getAssetAcl(assetId, *callback*)` returns the AssetAcl.\n"],null,["# ee.data.getAssetAcl\n\n\u003cbr /\u003e\n\nReturns the access control list of the asset with the given ID.\n\n\u003cbr /\u003e\n\nThe authenticated user must be a writer or owner of an asset to see its ACL.\n\n| Usage | Returns |\n|----------------------------------------------|----------|\n| `ee.data.getAssetAcl(assetId, `*callback*`)` | AssetAcl |\n\n| Argument | Type | Details |\n|------------|--------------------|------------------------------------------------------------------------|\n| `assetId` | String | The ID of the asset to check. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]