IRPCObjectOperations.GetFileDownloadUrl2

View as Markdown

Vault API / core write session or assertion

Not available over native gRPC: the server answers "Not implemented.". Used by the M-Files HTTP gateway.

ServiceObjects, versions, properties and files MFiles.IRPCObjectOperations
gRPC method/MFiles.IRPCObjectOperations/GetFileDownloadUrl2
HTTP (mf-http-grpc)POST /grpc/v1/get-file-download-url2
RequestGetFileDownloadUrlRequest2
ResponseGetFileDownloadUrlResponse2
Book and levelVault API, core
Kindwrite
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentno
Returns metadata structure versionno
Streamingnone (unary)

Request: GetFileDownloadUrlRequest2

Request details for generating a download key for downloading multiple files.

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

FieldTypeDescription
download_requests[]repeated FileDownloadUrlRequestDataDownload requests.
download_requests[].obj_verObjVerThe object version to download files from with the key. Not used if uploadID is not zero or fileRef is not empty.
download_requests[].obj_ver.obj_idObjIDThe object.
download_requests[].obj_ver.versionObjVerVersionThe version. Usually OBJ_VER_VERSION_TYPE_SPECIFIC with internal_version.
download_requests[].file_ids[]repeated FileIDFile IDs in the object version to download with the key. Not used if uploadID is not zero or fileRef is not empty.
download_requests[].file_ids[].typeFileIDTypeFILE_IDTYPE_SPECIFIC for one file.Values: FILE_IDTYPE_UNINITIALIZED (0), FILE_IDTYPE_ALL (1), FILE_IDTYPE_ANY (2), FILE_IDTYPE_SPECIFIC (3).
download_requests[].file_ids[].internal_idint32The file ID.
download_requests[].file_ids[].external_repository_idstringUsed only for files in external repositories. Leave empty.
download_requests[].upload_idint32The identifier of the upload operation (from UploadTempFile or UploadTempFileCommit). If this is not zero, objVer and fileIds are ignored, and the download key is generated for downloading the file uploaded in the upload operation identified by this parameter.
download_requests[].file_refstringIf not empty, the file_ref of a stateless upload ended with FileUploadEnd, and the download key is generated for downloading it; objVer and fileIds are ignored. At most one of uploadID and fileRef may be set.
download_requests[].extensionstringThe extension of the file, not including the dot (e.g. "doc"). Used with fileRef only, as a file_ref has no file name.

Response: GetFileDownloadUrlResponse2

Response details for generating a download key for downloading multiple files.

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

FieldTypeDescription
urlstringThe download URL.