yandex_audit_trails_trail (DataSource)
Статья создана
Обновлена 23 сентября 2026 г.
Get information about a trail. For information about the trail concept, see official documentation.
Example usage
//
// Get information about existing Audit Trails Trail
//
data "yandex_audit_trails_trail" "basic-trail" {
trail_id = "cnpqe**********sh835"
}
Arguments & Attributes Reference
data_stream_destination(Read-Only) (List Of Object). Structure describing destination data stream of the trail. Mutually exclusive withlogging_destinationandstorage_destination.codec.database_id.stream_name.
description(Read-Only) (String). The resource description.filter(Read-Only) (Set Of Object). Structure is deprecated. Usefiltering_policyinstead.event_filters.categories.plane.type.
path_filter.any_filter.resource_id.resource_type.
some_filter.any_filters.resource_id.resource_type.
resource_id.resource_type.
service.
path_filter.any_filter.resource_id.resource_type.
some_filter.any_filters.resource_id.resource_type.
resource_id.resource_type.
filtering_policy(Read-Only) (List Of Object). Structure describing event filtering process for the trail. Mutually exclusive withfilter. At least one of themanagement_events_filterordata_events_filterfields will be filled.data_events_filter.dns_filter.include_nonrecursive_queries.
exclude_rule.condition.field.operator.values.
excluded_events.include_rule.condition.field.operator.values.
included_events.resource_scope.resource_id.resource_type.
service.
management_events_filter.exclude_rule.condition.field.operator.values.
include_rule.condition.field.operator.values.
resource_scope.resource_id.resource_type.
folder_id(Read-Only) (String). The folder identifier that resource belongs to. If it is not provided, the default providerfolder-idis used.id(String).labels(Read-Only) (Map Of String). A set of key/value label pairs which assigned to resource.logging_destination(Read-Only) (List Of Object). Structure describing destination log group of the trail. Mutually exclusive withstorage_destinationanddata_stream_destination.log_group_id.
name(Read-Only) (String). The resource name.service_account_id(Read-Only) (String). Service account which linked to the resource.status(Read-Only) (String). Status of this trail.storage_destination(Read-Only) (List Of Object). Structure describing destination bucket of the trail. Mutually exclusive withlogging_destinationanddata_stream_destination.bucket_name.object_prefix.
trail_id(Required)(String). Trail ID.