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

# POST /v1/{+parent}/securityMonitoringConditions

`POST /v1/{+parent}/securityMonitoringConditions`

Create a security monitoring condition.

## Path parameters

- `parent` string, required

## Query parameters

- `securityMonitoringConditionId` string

## Request body

- GoogleCloudApigeeV1SecurityMonitoringCondition — Security monitoring condition for risk assessment version 2.
  - `profile` string — Required. ID of security profile of the security monitoring condition.
  - `name` string — Identifier. Name of the security monitoring condition resource. Format: organizations/{org}/securityMonitoringConditions/{security_monitoring_condition}
  - `totalDeployedResources` integer — Output only. Total number of deployed resources within scope.
  - `totalMonitoredResources` integer — Output only. Total number of monitored resources within this condition.
  - `apiHubGateway` string — Optional. The API Hub gateway monitored by the security monitoring condition. This should only be set if risk_assessment_type is API_HUB. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
  - `updateTime` string, google-datetime — Output only. The time of the security monitoring condition update.
  - `scope` string — Optional. Scope of the security monitoring condition. When RiskAssessmentType is APIGEE, the scope should be set to the environment of the resources. When RiskAssessmentType is API_HUB, the scope should not be set.
  - `createTime` string, google-datetime — Output only. The time of the security monitoring condition creation.
  - `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.
  - `riskAssessmentType` 'RISK_ASSESSMENT_TYPE_UNSPECIFIED' | 'APIGEE' | 'API_HUB' — Optional. The risk assessment type of the security monitoring condition. Defaults to ADVANCED_API_SECURITY.
  - `includeAllResources` GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll — Message for include_all_resources option.

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