- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- ApiHubGatewayArray
- ApiHubApiArray
- SecurityAssessmentResult
- Resource
- ResourceType
- ApiHubDeploymentDetails
- ScoringResult
- Severity
- AssessmentRecommendation
- Weight
- Verdict
- Recommendation
- Link
- Try it!
Compute RAV2 security scores for a set of resources.
HTTP request
POST https://apigee.googleapis.com/v1/{name=organizations/*/securityAssessmentResults}:batchCompute
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name |
Required. Name of the organization for which the score needs to be computed in the following format: |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "profile": string, "scope": string, "pageSize": integer, "pageToken": string, // Union field |
| Fields | |
|---|---|
profile |
Required. Name of the profile that is used for computation. |
scope |
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. |
pageSize |
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 |
Optional. A page token, received from a previous |
Union field resources. REQUIRED resources can be only one of the following: |
|
includeAllResources |
Include all resources under the scope. |
include |
Include only these resources. |
Union field api_hub_scope. API Hub scope to compute the security assessment results for the underlying deployments when RiskAssessmentType is API_HUB. This should not be set when RiskAssessmentType is APIGEE. api_hub_scope can be only one of the following: |
|
apiHubGateways |
An array of API Hub Gateways to assess. A maximum of 3 gateways can be assessed. |
apiHubApis |
An array of API Hub APIs to assess. A maximum of 1 API can be assessed. |
Response body
Response for securityAssessmentResults.batchCompute.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"securityAssessmentResults": [
{
object ( |
| Fields | |
|---|---|
securityAssessmentResults[] |
Default sort order is by resource name in alphabetic order. |
assessmentTime |
The time of the assessment api call. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
nextPageToken |
A token that can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
ApiHubGatewayArray
Message for the array of API Hub Gateways.
| JSON representation |
|---|
{ "gateways": [ string ] } |
| Fields | |
|---|---|
gateways[] |
Required. The array of API Hub Gateway IDs. Format: |
ApiHubApiArray
Message for the array of API Hub APIs.
| JSON representation |
|---|
{ "apis": [ string ] } |
| Fields | |
|---|---|
apis[] |
Required. The array of API Hub API IDs. Format: |
SecurityAssessmentResult
The security assessment result for one resource.
| JSON representation |
|---|
{ "resource": { object ( |
| Fields | |
|---|---|
resource |
The assessed resource. |
createTime |
The time of the assessment of this resource. This could lag behind Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Union field
|
|
scoringResult |
The result of the assessment. |
error |
The error status if scoring fails. |
Resource
Resource for which we are computing security assessment.
| JSON representation |
|---|
{ "type": enum ( |
| Fields | |
|---|---|
type |
Required. Type of this resource. |
name |
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. |
resourceRevisionId |
The revision id for the resource. In case of Apigee, this is proxy revision id. |
apiHubDeploymentDetails |
Output only. Additional details for the API Hub deployment. |
ResourceType
Type of the resource
| Enums | |
|---|---|
RESOURCE_TYPE_UNSPECIFIED |
ResourceType not specified. |
API_PROXY |
Resource is an Apigee Proxy. |
API_HUB_DEPLOYMENT |
Resource is an API Hub deployment. |
ApiHubDeploymentDetails
Additional details if the resource is an API Hub deployment.
| JSON representation |
|---|
{
"displayName": string,
"gatewayType": enum ( |
| Fields | |
|---|---|
displayName |
The display name of the API Hub deployment. |
gatewayType |
The gateway type for the API Hub deployment. |
gateway |
The gateway for the API Hub deployment. Format: |
sourceProject |
The source project for the API Hub deployment. |
resourceUri |
The resource uri for the API Hub deployment. |
ScoringResult
The result of the assessment.
| JSON representation |
|---|
{ "score": integer, "severity": enum ( |
| Fields | |
|---|---|
score |
The security score of the assessment. |
severity |
|
failedAssessmentPerWeight |
The number of failed assessments grouped by its weight. Keys are one of the following: "MAJOR", "MODERATE", "MINOR". An object containing a list of |
assessmentRecommendations |
The recommendations of the assessment. The key is the "name" of the assessment (not displayName), and the value are the recommendations. An object containing a list of |
dataUpdateTime |
The time when resource data was last fetched for this resource. This time may be different than when the resource was actually updated due to lag in data collection. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Severity
The severity definition.
| Enums | |
|---|---|
SEVERITY_UNSPECIFIED |
Severity is not defined. |
LOW |
Severity is low. |
MEDIUM |
Severity is medium. |
HIGH |
Severity is high. |
MINIMAL |
Severity is minimal |
AssessmentRecommendation
The message format of a recommendation from the assessment.
| JSON representation |
|---|
{ "displayName": string, "weight": enum ( |
| Fields | |
|---|---|
displayName |
The display name of the assessment. |
weight |
The weight of the assessment which was set in the profile. |
scoreImpact |
Score impact indicates the impact on the overall score if the assessment were to pass. |
verdict |
Verdict indicates the assessment result. |
recommendations[] |
The recommended steps of the assessment. |
Weight
The assessment weight of a assessment within the profile.
| Enums | |
|---|---|
WEIGHT_UNSPECIFIED |
The weight is unspecified. |
MINOR |
The weight is minor. |
MODERATE |
The weight is moderate. |
MAJOR |
The weight is major. |
Verdict
Verdict indicates the assessment result.
| Enums | |
|---|---|
VERDICT_UNSPECIFIED |
The verdict is unspecified. |
PASS |
The assessment has passed. |
FAIL |
The assessment has failed. |
NOT_APPLICABLE |
The verdict is not applicable. |
Recommendation
The format of the assessment recommendation.
| JSON representation |
|---|
{
"description": string,
"link": {
object ( |
| Fields | |
|---|---|
description |
The description of the recommendation. |
link |
The link for the recommendation. |
Link
The format for a link in the recommendation.
| JSON representation |
|---|
{ "text": string, "uri": string } |
| Fields | |
|---|---|
text |
The text of the url. (ie: "Learn more") |
uri |
The link itself. |