- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IncludeAll
- ResourceArray
- Resource
- ResourceType
- SecurityAssessmentResult
- Resource
- ResourceType
- 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 |
Required. Scope of the resources for the computation. For Apigee, the environment is the scope of the resources. |
page |
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. |
page |
Optional. A page token, received from a previous |
Union field resources . REQUIRED resources can be only one of the following: |
|
include |
Include all resources under the scope. |
include |
Include only these resources. |
Response body
Response for securityAssessmentResults.batchCompute
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"securityAssessmentResults": [
{
object ( |
Fields | |
---|---|
security |
Default sort order is by resource name in alphabetic order. |
assessment |
The time of the assessment api call. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
next |
A token that can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
IncludeAll
This type has no fields.
Message for includeAllResources option.
ResourceArray
Message for the array of resources. For Apigee, the proxies are resources.
JSON representation |
---|
{
"resources": [
{
object ( |
Fields | |
---|---|
resources[] |
Required. The array of resources. For Apigee, the proxies are resources. |
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. |
ResourceType
Type of the resource
Enums | |
---|---|
RESOURCE_TYPE_UNSPECIFIED |
ResourceType not specified. |
API_PROXY |
Resource is an Apigee Proxy. |
SecurityAssessmentResult
The security assessment result for one resource.
JSON representation |
---|
{ "resource": { object ( |
Fields | |
---|---|
resource |
The assessed resource. |
create |
The time of the assessment of this resource. This could lag behind Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Union field
|
|
scoring |
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. |
resource |
The revision id for the resource. In case of Apigee, this is proxy revision id. |
ResourceType
Type of the resource
Enums | |
---|---|
RESOURCE_TYPE_UNSPECIFIED |
ResourceType not specified. |
API_PROXY |
Resource is an Apigee Proxy. |
ScoringResult
The result of the assessment.
JSON representation |
---|
{ "score": integer, "severity": enum ( |
Fields | |
---|---|
score |
The security score of the assessment. |
severity |
|
failed |
The number of failed assessments grouped by its weight. Keys are one of the following: "MAJOR", "MODERATE", "MINOR". An object containing a list of |
assessment |
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 |
data |
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 uses 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 | |
---|---|
display |
The display name of the assessment. |
weight |
The weight of the assessment which was set in the profile. |
score |
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. |
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. |