Get Finding History
| securityhub_get_finding_history | R Documentation |
Returns the history of a Security Hub CSPM finding¶
Description¶
Returns the history of a Security Hub CSPM finding. The history includes
changes made to any fields in the Amazon Web Services Security Finding
Format (ASFF) except top-level timestamp fields, such as the CreatedAt
and UpdatedAt fields.
This operation might return fewer results than the maximum number of
results (MaxResults) specified in a request, even when more results
are available. If this occurs, the response includes a NextToken
value, which you should use to retrieve the next set of results in the
response. The presence of a NextToken value in a response doesn't
necessarily indicate that the results are incomplete. However, you
should continue to specify a NextToken value until you receive a
response that doesn't include this value.
Usage¶
securityhub_get_finding_history(FindingIdentifier, StartTime, EndTime,
NextToken, MaxResults)
Arguments¶
FindingIdentifier |
[required] Identifies which finding to get the finding history for. |
StartTime |
A timestamp that indicates the start time of the requested finding history. If you provide values for both For more information about the validation and formatting of timestamp fields in Security Hub CSPM, see Timestamps. |
EndTime |
An ISO 8601-formatted timestamp that indicates the end time of the requested finding history. If you provide values for both For more information about the validation and formatting of timestamp fields in Security Hub CSPM, see Timestamps. |
NextToken |
A token for pagination purposes. Provide |
MaxResults |
The maximum number of results to be returned. If you don’t provide it, Security Hub CSPM returns up to 100 results of finding history. |
Value¶
A list with the following syntax:
list(
Records = list(
list(
FindingIdentifier = list(
Id = "string",
ProductArn = "string"
),
UpdateTime = as.POSIXct(
"2015-01-01"
),
FindingCreated = TRUE|FALSE,
UpdateSource = list(
Type = "BATCH_UPDATE_FINDINGS"|"BATCH_IMPORT_FINDINGS",
Identity = "string"
),
Updates = list(
list(
UpdatedField = "string",
OldValue = "string",
NewValue = "string"
)
),
NextToken = "string"
)
),
NextToken = "string"
)
Request syntax¶
svc$get_finding_history(
FindingIdentifier = list(
Id = "string",
ProductArn = "string"
),
StartTime = as.POSIXct(
"2015-01-01"
),
EndTime = as.POSIXct(
"2015-01-01"
),
NextToken = "string",
MaxResults = 123
)