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

# POST /v1/{+name}:batchCompute

`POST /v1/{+name}:batchCompute`

Compute RAV2 security scores for a set of resources.

## Path parameters

- `name` string, required

## Request body

- GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest — Request for BatchComputeSecurityAssessmentResults.
  - `include` GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray — Message for the array of resources. For Apigee, the proxies are resources.
    - `resources` GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArrayResource[] — Required. The array of resources. For Apigee, the proxies are resources.
      - `type` 'RESOURCE_TYPE_UNSPECIFIED' | 'API_PROXY' | 'API_HUB_DEPLOYMENT' — Required. Type of this resource.
      - `name` string — Required. Name of this resource. For an Apigee API Proxy, this should be the id of the API proxy. For an API Hub Deployment, this should be the id of the deployment.
  - `pageSize` integer — Optional. The maximum number of results to return. The service may return fewer than this value. If unspecified, at most 50 results will be returned.
  - `pageToken` string — Optional. A page token, received from a previous `BatchComputeSecurityAssessmentResults` call. Provide this to retrieve the subsequent page.
  - `apiHubGateways` GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestApiHubGatewayArray — Message for the array of API Hub Gateways.
    - `gateways` string[] — Required. The array of API Hub Gateway IDs. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
  - `includeAllResources` GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll — Message for include_all_resources option.
  - `profile` string — Required. Name of the profile that is used for computation.
  - `scope` string — Optional. Scope of the resources for the computation. When computing scores for Apigee proxies, the scope should be set to the environment of the resources. When computing scores for API Hub deployments, api_hub_scope should be set instead.
  - `apiHubApis` GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestApiHubApiArray — Message for the array of API Hub APIs.
    - `apis` string[] — Required. The array of API Hub API IDs. Format: `projects/{project}/locations/{location}/apis/{api}`

## 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)
