- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarSettings/legacyGetEnvironmentStatistics#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarSettings/legacyGetEnvironmentStatistics#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarSettings/legacyGetEnvironmentStatistics#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarSettings/legacyGetEnvironmentStatistics#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarSettings/legacyGetEnvironmentStatistics#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarSettings/legacyGetEnvironmentStatistics#body.LegacyGetEnvironmentStatisticsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarSettings/legacyGetEnvironmentStatistics#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacySoarSettings/legacyGetEnvironmentStatistics#body.aspect_1)

**Full name**: projects.locations.instances.legacySoarSettings.legacyGetEnvironmentStatistics

Returns high-level statistics for a specific environment, including the number of playbooks, integrations, connectors, report schedules, and active agents.

### HTTP request

`POST https://{endpoint}/v1alpha/{instance}/legacySoarSettings:legacyGetEnvironmentStatistics`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `instance` | `string` Required. The instance to get the environment statistics for. Format: projects/{project}/locations/{location}/instances/{instance} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "name": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the environment statistics. |

### Response body

Response message for LegacySoarSettingService.LegacyGetEnvironmentStatistics.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "numOfPlaybooks": integer, "numOfIntegrations": integer, "numOfConnectors": integer, "numOfReportSchedules": integer, "numOfAgents": integer } ``` |

| Fields ||
|---|---|
| `numOfPlaybooks` | `integer` Output only. The number of playbooks. |
| `numOfIntegrations` | `integer` Output only. The number of integrations. |
| `numOfConnectors` | `integer` Output only. The number of connectors. |
| `numOfReportSchedules` | `integer` Output only. The number of report schedules. |
| `numOfAgents` | `integer` Output only. The number of agents. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `
  https://www.googleapis.com/auth/chronicle`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `instance` resource:

- `chronicle.legacySoarSettings.get`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).