公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.getAssetRootQuota
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
返回具有指定 ID 的资源根的配额使用情况详细信息。
使用说明:
- ID 必须是根文件夹,例如“users/foo”(而不是“users/foo/bar”)。
- 经过身份验证的用户必须拥有资源根,才能查看其配额用量。
用法 | 返回 |
---|
ee.data.getAssetRootQuota(rootId, callback) | AssetQuotaDetails |
参数 | 类型 | 详细信息 |
---|
rootId | 字符串 | 要检查的资源根的 ID,例如“users/foo”。 |
callback | 函数(可选) | 可选的回调。如果未提供,则以同步方式进行调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eProvides quota usage details for a specified asset root folder, such as "users/foo".\u003c/p\u003e\n"],["\u003cp\u003eRequires authentication and ownership of the asset root by the user to view quota usage.\u003c/p\u003e\n"],["\u003cp\u003eAccepts the asset root ID and an optional callback function as arguments.\u003c/p\u003e\n"],["\u003cp\u003eReturns an object containing asset quota details.\u003c/p\u003e\n"],["\u003cp\u003eOnly applies to the top-level folder (root folder) and does not work with nested folders.\u003c/p\u003e\n"]]],[],null,["# ee.data.getAssetRootQuota\n\n\u003cbr /\u003e\n\nReturns quota usage details for the asset root with the given ID.\n\n\u003cbr /\u003e\n\nUsage notes:\n\n- The id *must* be a root folder like \"users/foo\" (not \"users/foo/bar\").\n\n- The authenticated user must own the asset root to see its quota usage.\n\n| Usage | Returns |\n|---------------------------------------------------|-------------------|\n| `ee.data.getAssetRootQuota(rootId, `*callback*`)` | AssetQuotaDetails |\n\n| Argument | Type | Details |\n|------------|--------------------|------------------------------------------------------------------------|\n| `rootId` | String | The ID of the asset root to check, e.g. \"users/foo\". |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]