IRPCScheduledJobsAdmin.DownloadScheduledJobOutputFile_ReadBlock
Administration API / specialized admin session idempotent
Reads a block of a job output file, such as the summary of a restore from archive preview.
| Service | Scheduled jobs MFiles.IRPCScheduledJobsAdmin |
|---|---|
| gRPC method | /MFiles.IRPCScheduledJobsAdmin/DownloadScheduledJobOutputFile_ReadBlock |
| HTTP (mf-http-grpc) | POST /grpc/v1/download-scheduled-job-output-file_-read-block |
| Request | DownloadScheduledJobOutputFile_ReadBlockRequest |
| Response | DownloadScheduledJobOutputFile_ReadBlockResponse |
| Book and level | Administration API, specialized |
| Kind | admin |
| Session | Required: the session ID from LogIn in the mfiles-session-id-bin metadata. |
| Idempotent | yes |
| Returns metadata structure version | no |
| Streaming | none (unary) |
Remarks
- The
download_idcomes from the call that produced the file, for exampleRestoreFromArchiveResponse.download_idsummaryof RestoreFromArchive withpreview_only. - Read from offset 0 onwards until a block is shorter than requested. The server then deletes
the download session; it also deletes it when a read fails. An unknown or finished
download_idfails with "Not found. (The specified download session ... does not exist.)". block_sizeis at most 4 MiB. Only the session that started the download can read it.- Requires the vault rights
archiveandrestore_from_archive, ormanage_scheduled_jobs(in a server-level session,manage_jobs).
Request: DownloadScheduledJobOutputFile_ReadBlockRequest
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
download_id | int32 | The download session ID returned by the call that produced the file. |
block_size | uint32 | The number of bytes to read, at most 4194304. |
offset | int64 | The byte offset to start reading from. |
Response: DownloadScheduledJobOutputFile_ReadBlockResponse
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
data | bytes | The bytes read; shorter than block_size at the end of the file. |
Related methods
- IRPCVaultAdmin.RestoreFromArchive -- Imports the contents of an archive (or one object of it) into the vault, or previews the import.