---
title: "POST /v1/{+profileEnvironment}:computeEnvironmentScores"
method: POST
path: "/v1/{+profileEnvironment}:computeEnvironmentScores"
tags: ["organizations"]
---

# POST /v1/{+profileEnvironment}:computeEnvironmentScores

`POST /v1/{+profileEnvironment}:computeEnvironmentScores`

ComputeEnvironmentScores calculates scores for requested time range for the specified security profile and environment.

## Path parameters

- `profileEnvironment` string, required

## Request body

- GoogleCloudApigeeV1ComputeEnvironmentScoresRequest — Request for ComputeEnvironmentScores.
  - `pageSize` integer — Optional. The maximum number of subcomponents to be returned in a single page. The service may return fewer than this value. If unspecified, at most 100 subcomponents will be returned in a single page.
  - `pageToken` string — Optional. A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
  - `timeRange` GoogleTypeInterval — Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
    - `endTime` string, google-datetime — Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
    - `startTime` string, google-datetime — Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
  - `filters` GoogleCloudApigeeV1ComputeEnvironmentScoresRequestFilter[] — Optional. Filters are used to filter scored components. Return all the components if no filter is mentioned. Example: [{ "scorePath": "/org@myorg/envgroup@myenvgroup/env@myenv/proxies/proxy@myproxy/source" }, { "scorePath": "/org@myorg/envgroup@myenvgroup/env@myenv/proxies/proxy@myproxy/target", }] This will return components with path: "/org@myorg/envgroup@myenvgroup/env@myenv/proxies/proxy@myproxy/source" OR "/org@myorg/envgroup@myenvgroup/env@myenv/proxies/proxy@myproxy/target"
    - `scorePath` string — Optional. Return scores for this component. Example: "/org@myorg/envgroup@myenvgroup/env@myenv/proxies/proxy@myproxy/source"

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/apigee.md) · [All operations](https://skmtc.net/google/apis/apigee/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/apigee/versions/6e272fa448a7/schema)
