IRPCVaultAdmin.ArchiveOldVersions

View as Markdown

Administration API / specialized admin session

Archives old versions of documents that meet the job's conditions into an archive file on the server, or previews how many would be archived.

ServiceVault administration MFiles.IRPCVaultAdmin
gRPC method/MFiles.IRPCVaultAdmin/ArchiveOldVersions
HTTP (mf-http-grpc)POST /grpc/v1/archive-old-versions
RequestArchiveOldVersionsRequest
ResponseArchiveOldVersionsResponse
Book and levelAdministration API, specialized
Kindadmin
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentno
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Request: ArchiveOldVersionsRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
preview_onlyboolTrue to only count what would be archived; the destination in the job is then ignored and nothing changes. False to start the archiving job.
archivejobArchiveOldVersionsJobThe conditions that select the old versions, the target file on the server and the archiving options.
archivejob.must_be_marked_for_archivingboolCondition: Document is marked for archiving. False = condition not effective.
archivejob.must_be_checked_in_before_utcgoogle.protobuf.TimestampIf bCheckedInBefore is true, specifies the condition parameter.
archivejob.has_must_be_at_least_nversions_olderboolCondition: At least N versions older than the current version. False = condition not effective.
archivejob.must_be_at_least_nversions_olderint32If bAtLeastNVersionsOlder is true, specifies the condition parameter.
archivejob.has_must_be_at_least_ndays_olderboolCondition: At least N days older than the current version. False = condition not effective.
archivejob.must_be_at_least_ndays_olderint32If bAtLeastNDaysOlder is true, specifies the condition parameter.
archivejob.must_not_have_version_tagboolCondition: Has no version tag. False = condition not effective.
archivejob.target_filestringFull path to the target file on server.
archivejob.impersonationImpersonationImpersonation information for accessing the archive target files on server.
archivejob.impersonation.typeImpersonationTypeImpersonation type.Values: IMPERSONATION_TYPE_SYSTEM_ACCOUNT (0), IMPERSONATION_TYPE_LOCAL_WINDOWS_ACCOUNT (1), IMPERSONATION_TYPE_EXTERNAL_ACCOUNT (2).
archivejob.impersonation.accountstringAccount name (e.g. DOMAIN\user).
archivejob.impersonation.encrypted_passwordbytesEncrypted password.
archivejob.optionsOBJARCHIVINGFLAGSBit flags that control the execution of this archiving job. Note: Currently only OBJARCHIVINGFLAG_OVERWRITEEXISTINGFILES, OBJARCHIVINGFLAG_DESTROYAFTERWARDS, and OBJARCHIVINGFLAG_RESETMFA are supported.
archivejob.options.allboolSpecifies all flags set; Including any future flags.
archivejob.options.overwrite_existing_filesboolIf present, existing target files are overwritten. If not present, job fails if a target file already exists.
archivejob.options.archive_latest_version_onlyboolIf present, only the latest version is archived.
archivejob.options.destroy_archived_objectsboolIf present and archiving full objects, the archived objects are destroyed.
archivejob.options.reset_marked_for_archivingboolIf present, the 'Marked for archiving' property is reset upon archiving.
archivejob.options.archive_data_filesboolIf present, data files are archived instead of document files.
archivejob.options.create_archive_pdfsboolIf present, files are also saved as PDF/A.
archivejob.options.archive_destroyed_objectsboolIf present, destroyed objects are archived.
archivejob.options.target_path_is_directoryboolIf present, archive location represents a directory.
archivejob.options.ignore_last_run_timestampboolIf present, delta timestamp is not applied (even if provided as non-FILETIME_ZERO).
archivejob.options.ignore_search_conditionsboolIf present, search filter is not applied (even if provided).
archivejob.options.export_drop_out_informationboolIf present, dropout information is exported if a previously exported object is not anymore part of the export set.
archivejob.options.export_contentboolIf present, vault content will be exported.
archivejob.options.export_structureboolIf present, vault metadata structure will be exported.
archivejob.options.export_value_list_valuesboolIf present, values of the selected values lists will be exported.
archivejob.options.export_private_view_settingsboolIf present, private settings of the selected views will be exported.
archivejob.options.export_migrated_as_internalboolIf present, migrated objects will be exported as internal objects without <externalrepository> element.
archivejob.options.export_workspace_tabsboolIf present, workspace tabs will be exported.

Response: ArchiveOldVersionsResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
task_idint32The ID of the vault's archiving job when preview_only is false.
parchiveoldversjoboinfoArchiveOldVersionsJobOutputInfoThe preview result when preview_only is true: affected documents, versions and bytes.
parchiveoldversjoboinfo.objectsuint32The number of affected documents.
parchiveoldversjoboinfo.object_versionsuint32The number of archived document versions.
parchiveoldversjoboinfo.bytesint64The amount of archived bytes.