Skip to main content

security_incidents

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

Overview

Namesecurity_incidents
TypeResource
Idgoogle.apigee.security_incidents

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. Name of the security incident resource. Format: organizations/{org}/environments/{environment}/securityIncidents/{incident} Example: organizations/apigee-org/environments/dev/securityIncidents/1234-5678-9101-1111
detectionTypesarrayOutput only. Detection types which are part of the incident. Examples: Flooder, OAuth Abuser, Static Content Scraper, Anomaly Detection.
displayNamestringOptional. Display name of the security incident.
firstDetectedTimestring (google-datetime)Output only. The time when events associated with the incident were first detected.
lastDetectedTimestring (google-datetime)Output only. The time when events associated with the incident were last detected.
lastObservabilityChangeTimestring (google-datetime)Output only. The time when the incident observability was last changed.
observabilitystringOptional. Indicates if the user archived this incident.
riskLevelstringOutput only. Risk level of the incident.
trafficCountstring (int64)Total traffic detected as part of the incident.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_environments_security_incidents_getselectorganizationsId, environmentsId, securityIncidentsIdGetSecurityIncident gets the specified security incident. Returns NOT_FOUND if security incident is not present for the specified organization and environment.
organizations_environments_security_incidents_listselectorganizationsId, environmentsIdpageSize, pageToken, filterListSecurityIncidents lists all the security incident associated with the environment.
organizations_environments_security_incidents_patchupdateorganizationsId, environmentsId, securityIncidentsIdupdateMaskUpdateSecurityIncidents updates an existing security incident.
organizations_environments_security_incidents_batch_updateupdateorganizationsId, environmentsIdBatchUpdateSecurityIncident updates multiple existing security incidents.

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
environmentsIdstring
organizationsIdstring
securityIncidentsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

GetSecurityIncident gets the specified security incident. Returns NOT_FOUND if security incident is not present for the specified organization and environment.

SELECT
name,
detectionTypes,
displayName,
firstDetectedTime,
lastDetectedTime,
lastObservabilityChangeTime,
observability,
riskLevel,
trafficCount
FROM google.apigee.security_incidents
WHERE organizationsId = '{{ organizationsId }}' -- required
AND environmentsId = '{{ environmentsId }}' -- required
AND securityIncidentsId = '{{ securityIncidentsId }}' -- required;

UPDATE examples

UpdateSecurityIncidents updates an existing security incident.

UPDATE google.apigee.security_incidents
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__trafficCount = '{{ trafficCount }}',
data__observability = '{{ observability }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND environmentsId = '{{ environmentsId }}' --required
AND securityIncidentsId = '{{ securityIncidentsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
detectionTypes,
displayName,
firstDetectedTime,
lastDetectedTime,
lastObservabilityChangeTime,
observability,
riskLevel,
trafficCount;