Skip to main content

security_monitoring_conditions

Creates, updates, deletes, gets or lists a security_monitoring_conditions resource.

Overview

Namesecurity_monitoring_conditions
TypeResource
Idgoogle.apigee.security_monitoring_conditions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Name of the security monitoring condition resource. Format: organizations/{org}/securityMonitoringConditions/{security_monitoring_condition}
apiHubGatewaystringOptional. 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}
createTimestring (google-datetime)Output only. The time of the security monitoring condition creation.
includeobjectInclude only these resources. (id: GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray)
includeAllResourcesobjectInclude all resources under the scope. (id: GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll)
profilestringRequired. ID of security profile of the security monitoring condition.
riskAssessmentTypestringOptional. The risk assessment type of the security monitoring condition. Defaults to ADVANCED_API_SECURITY. (RISK_ASSESSMENT_TYPE_UNSPECIFIED, APIGEE, API_HUB)
scopestringOptional. 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.
totalDeployedResourcesinteger (int32)Output only. Total number of deployed resources within scope.
totalMonitoredResourcesinteger (int32)Output only. Total number of monitored resources within this condition.
updateTimestring (google-datetime)Output only. The time of the security monitoring condition update.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_security_monitoring_conditions_getselectorganizationsId, securityMonitoringConditionsIdriskAssessmentTypeGet a security monitoring condition.
organizations_security_monitoring_conditions_listselectorganizationsIdpageToken, pageSize, riskAssessmentType, filterList security monitoring conditions.
organizations_security_monitoring_conditions_createinsertorganizationsIdsecurityMonitoringConditionIdCreate a security monitoring condition.
organizations_security_monitoring_conditions_patchupdateorganizationsId, securityMonitoringConditionsIdupdateMaskUpdate a security monitoring condition.
organizations_security_monitoring_conditions_deletedeleteorganizationsId, securityMonitoringConditionsIdriskAssessmentTypeDelete a security monitoring condition.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
organizationsIdstring
securityMonitoringConditionsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
riskAssessmentTypestring
securityMonitoringConditionIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Get a security monitoring condition.

SELECT
name,
apiHubGateway,
createTime,
include,
includeAllResources,
profile,
riskAssessmentType,
scope,
totalDeployedResources,
totalMonitoredResources,
updateTime
FROM google.apigee.security_monitoring_conditions
WHERE organizationsId = '{{ organizationsId }}' -- required
AND securityMonitoringConditionsId = '{{ securityMonitoringConditionsId }}' -- required
AND riskAssessmentType = '{{ riskAssessmentType }}'
;

INSERT examples

Create a security monitoring condition.

INSERT INTO google.apigee.security_monitoring_conditions (
data__profile,
data__name,
data__scope,
data__include,
data__riskAssessmentType,
data__apiHubGateway,
data__includeAllResources,
organizationsId,
securityMonitoringConditionId
)
SELECT
'{{ profile }}',
'{{ name }}',
'{{ scope }}',
'{{ include }}',
'{{ riskAssessmentType }}',
'{{ apiHubGateway }}',
'{{ includeAllResources }}',
'{{ organizationsId }}',
'{{ securityMonitoringConditionId }}'
RETURNING
name,
apiHubGateway,
createTime,
include,
includeAllResources,
profile,
riskAssessmentType,
scope,
totalDeployedResources,
totalMonitoredResources,
updateTime
;

UPDATE examples

Update a security monitoring condition.

UPDATE google.apigee.security_monitoring_conditions
SET
data__profile = '{{ profile }}',
data__name = '{{ name }}',
data__scope = '{{ scope }}',
data__include = '{{ include }}',
data__riskAssessmentType = '{{ riskAssessmentType }}',
data__apiHubGateway = '{{ apiHubGateway }}',
data__includeAllResources = '{{ includeAllResources }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND securityMonitoringConditionsId = '{{ securityMonitoringConditionsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
apiHubGateway,
createTime,
include,
includeAllResources,
profile,
riskAssessmentType,
scope,
totalDeployedResources,
totalMonitoredResources,
updateTime;

DELETE examples

Delete a security monitoring condition.

DELETE FROM google.apigee.security_monitoring_conditions
WHERE organizationsId = '{{ organizationsId }}' --required
AND securityMonitoringConditionsId = '{{ securityMonitoringConditionsId }}' --required
AND riskAssessmentType = '{{ riskAssessmentType }}'
;