Security Deck Alerts API, REST: Alert.Update
Update alert.
HTTP request
PATCH https://alert-sink.api.cloud.yandex.net/securitydeck/alerts/v1/alerts/{alertId}
Path parameters
|
Field |
Description |
|
alertId |
string Required field. Alert ID to update. The maximum string length in characters is 50. |
Body parameters
{
"updateMask": "string",
"status": "string",
"classification": "string",
// Includes only one of the fields `assigneeSubjectId`
"assigneeSubjectId": "string"
// end of the list of possible fields
}
|
Field |
Description |
|
updateMask |
string (field-mask) Required field. A comma-separated names off ALL fields to be updated. If |
|
status |
enum (Status) Alert status.
|
|
classification |
enum (Classification) Alert classification.
|
|
assigneeSubjectId |
string Assign alert to a subject with specified ID. Includes only one of the fields Alert assignee. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"alertId": "string"
},
// Includes only one of the fields `error`, `response`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
},
"response": {
"id": "string",
"sinkId": "string",
"title": "string",
"description": "string",
"recommendations": "string",
"severity": "string",
"status": "string",
"category": {
"name": "string"
},
"classification": "string",
"createdBy": {
// Includes only one of the fields `subject`, `sensor`
"subject": {
"id": "string"
},
"sensor": {
"id": "string"
}
// end of the list of possible fields
},
"assignee": {
// Includes only one of the fields `subject`
"subject": {
"id": "string"
}
// end of the list of possible fields
},
"createTime": "string",
"updateTime": "string",
"details": "object"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
|
createdBy |
string ID of the user or service account who initiated the operation. |
|
modifiedAt |
string (date-time) The time when the Operation resource was last modified. String in RFC3339 To work with values in this field, use the APIs described in the |
|
done |
boolean If the value is |
|
metadata |
Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
UpdateAlertMetadata
|
Field |
Description |
|
alertId |
string Alert ID. |
Status
The error result of the operation in case of failure or cancellation.
|
Field |
Description |
|
code |
integer (int32) Error code. An enum value of google.rpc.Code |
|
message |
string An error message. |
|
details[] |
object A list of messages that carry the error details. |
Alert
Security Deck alert.
|
Field |
Description |
|
id |
string ID of the alert. |
|
sinkId |
string ID of the alert sink alert is in. |
|
title |
string Alert title. Plain text in requested language. |
|
description |
string Alert description. Yandex Flavored Markdown in requested language. |
|
recommendations |
string Alert recommendations. Yandex Flavored Markdown in requested language. |
|
severity |
enum (Severity) Alert severity.
|
|
status |
enum (Status) Alert status.
|
|
category |
Alert category (aka threat type). |
|
classification |
enum (Classification) Alert classification.
|
|
createdBy |
Who created the alert. |
|
assignee |
Who the alert is assigned to. |
|
createTime |
string (date-time) Alert creation time. String in RFC3339 To work with values in this field, use the APIs described in the |
|
updateTime |
string (date-time) Alert modification time. String in RFC3339 To work with values in this field, use the APIs described in the |
|
details |
object Alert technical details. |
Category
Alert category.
|
Field |
Description |
|
name |
string Alert category name. |
Actor
Information about an entity that performed an action (created an alert, added a comment, etc.).
|
Field |
Description |
|
subject |
Action was performed by a specific Cloud subject. Includes only one of the fields |
|
sensor |
Action was performed by (or on behalf of) an alert provider system (aka sensor) Includes only one of the fields |
Subject
Cloud subject.
|
Field |
Description |
|
id |
string Subject ID. |
Sensor
Alert provider system (aka sensor).
|
Field |
Description |
|
id |
string Sensor ID. |
Assignee
Information about an entity that alert was assigned to.
|
Field |
Description |
|
subject |
Alert is assigned to as specific Cloud subject. Includes only one of the fields |
Subject
Cloud subject.
|
Field |
Description |
|
id |
string Subject ID. |