Skip to main content

log_archives

Overview

Namelog_archives
TypeResource
Iddatadog.log_archives.log_archives

Fields

NameDatatypeDescription
idstringThe archive ID.
attributesobjectThe attributes associated with the archive.
typestringThe type of the resource. The value should always be archives.

Methods

NameAccessible byRequired ParamsDescription
get_logs_archiveSELECTarchive_id, dd_siteGet a specific archive from your organization.
list_logs_archivesSELECTdd_siteGet the list of configured logs archives with their definitions.
create_logs_archiveINSERTdd_siteCreate an archive in your organization.
delete_logs_archiveDELETEarchive_id, dd_siteDelete a given archive from your organization.
_get_logs_archiveEXECarchive_id, dd_siteGet a specific archive from your organization.
_list_logs_archivesEXECdd_siteGet the list of configured logs archives with their definitions.
add_read_role_to_archiveEXECarchive_id, dd_siteAdds a read role to an archive. (Roles API)
remove_role_from_archiveEXECarchive_id, dd_siteRemoves a role from an archive. (Roles API)
update_logs_archiveEXECarchive_id, dd_siteUpdate a given archive configuration.

Note: Using this method updates your archive configuration by replacing
your current configuration with the new one sent to your Datadog organization.