Method: matters.count
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
POST https://vault.googleapis.com/v1/matters/{matterId}:count
网址采用 gRPC 转码语法。
路径参数
参数 |
matterId |
string
相关事项 ID。
|
请求正文
请求正文中包含结构如下的数据:
字段 |
query |
object (Query )
搜索查询。
|
view |
enum (CountResultView )
设置计数结果的粒度。
|
响应正文
如果成功,则响应正文包含一个 Operation
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/ediscovery
如需了解详情,请参阅授权指南。
CountResultView
枚举 |
COUNT_RESULT_VIEW_UNSPECIFIED |
默认值。与 TOTAL_COUNT 相同。 |
TOTAL_COUNT |
响应中包含账号总数、查询的账号、匹配的账号、无法查询的账号以及查询的账号错误的计数。 |
ALL |
响应包含与 TOTAL_COUNT 相同的详细信息,以及其他账号细分信息。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Method: matters.count\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [CountResultView](#CountResultView)\n- [Try it!](#try-it)\n\nCounts the accounts processed by the specified query.\n\n### HTTP request\n\n`POST https://vault.googleapis.com/v1/matters/{matterId}:count`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|-------------------------|\n| `matterId` | `string` The matter ID. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"query\": { object (/workspace/vault/reference/rest/v1/Query) }, \"view\": enum (/workspace/vault/reference/rest/v1/matters/count#CountResultView) } ``` |\n\n| Fields ||\n|---------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| `query` | `object (`[Query](/workspace/vault/reference/rest/v1/Query)`)` The search query. |\n| `view` | `enum (`[CountResultView](/workspace/vault/reference/rest/v1/matters/count#CountResultView)`)` Sets the granularity of the count results. |\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/workspace/vault/reference/rest/v1/operations#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/ediscovery`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nCountResultView\n---------------\n\nThe possible granularity level of a count result.\n\n| Enums ||\n|---------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| `COUNT_RESULT_VIEW_UNSPECIFIED` | Default. Same as **TOTAL_COUNT**. |\n| `TOTAL_COUNT` | Response includes counts of the total accounts, queried accounts, matching accounts, non-queryable accounts, and queried account errors. |\n| `ALL` | Response includes the same details as **TOTAL_COUNT**, plus additional account breakdown. |"]]