Skip to main content

upload_file_chunks

Creates, updates, deletes, gets or lists a upload_file_chunks resource.

Overview

Nameupload_file_chunks
TypeResource
Idazure.service_fabric_dataplane.upload_file_chunks

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
upload_file_chunkexecsession-id, Content-Range, content_path, endpointtimeoutUploads a file chunk to the image store relative path. Uploads a file chunk to the image store with the specified upload session ID and image store relative path. This API allows user to resume the file upload operation. user doesn't have to restart the file upload from scratch whenever there is a network interruption. Use this option if the file size is large. To perform a resumable file upload, user need to break the file into multiple chunks and upload these chunks to the image store one-by-one. Chunks don't have to be uploaded in order. If the file represented by the image store relative path already exists, it will be overwritten when the upload session commits.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
Content-RangestringWhen uploading file chunks to the image store, the Content-Range header field need to be configured and sent with a request. The format should looks like "bytes {First-Byte-Position}-{Last-Byte-Position}/{File-Length}". For example, Content-Range:bytes 300-5000/20000 indicates that user is sending bytes 300 through 5,000 and the total file length is 20,000 bytes.
content_pathstringRelative path to file or folder in the image store from its root.
endpointstringThe service endpoint host (no scheme). (default: )
session-idstringA GUID generated by the user for a file uploading. It identifies an image store upload session which keeps track of all file chunks until it is committed.
timeoutinteger (int64)The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. The default value for this parameter is 60 seconds.

Lifecycle Methods

Uploads a file chunk to the image store relative path. Uploads a file chunk to the image store with the specified upload session ID and image store relative path. This API allows user to resume the file upload operation. user doesn't have to restart the file upload from scratch whenever there is a network interruption. Use this option if the file size is large. To perform a resumable file upload, user need to break the file into multiple chunks and upload these chunks to the image store one-by-one. Chunks don't have to be uploaded in order. If the file represented by the image store relative path already exists, it will be overwritten when the upload session commits.

EXEC azure.service_fabric_dataplane.upload_file_chunks.upload_file_chunk 
@session-id='{{ session-id }}' --required,
@Content-Range='{{ Content-Range }}' --required,
@content_path='{{ content_path }}' --required,
@endpoint='{{ endpoint }}' --required,
@timeout='{{ timeout }}'
;