image_store_upload_sessions
Creates, updates, deletes, gets or lists an image_store_upload_sessions resource.
Overview
| Name | image_store_upload_sessions |
| Type | Resource |
| Id | azure.service_fabric_dataplane.image_store_upload_sessions |
Fields
The following fields are returned by SELECT queries:
- get_image_store_upload_session_by_id
- get_image_store_upload_session_by_path
| Name | Datatype | Description |
|---|---|---|
UploadSessions | array |
| Name | Datatype | Description |
|---|---|---|
UploadSessions | array |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_image_store_upload_session_by_id | select | session-id, endpoint | timeout | Get the image store upload session by ID. Gets the image store upload session identified by the given ID. User can query the upload session at any time during uploading. . |
get_image_store_upload_session_by_path | select | content_path, endpoint | timeout | Get the image store upload session by relative path. Gets the image store upload session associated with the given image store relative path. User can query the upload session at any time during uploading. . |
delete_image_store_upload_session | delete | session-id, endpoint | timeout | Cancels an image store upload session. The DELETE request will cause the existing upload session to expire and remove any previously uploaded file chunks. |
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.
| Name | Datatype | Description |
|---|---|---|
content_path | string | Relative path to file or folder in the image store from its root. |
endpoint | string | The service endpoint host (no scheme). (default: ) |
session-id | string | A 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. |
timeout | integer (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. |
SELECT examples
- get_image_store_upload_session_by_id
- get_image_store_upload_session_by_path
Get the image store upload session by ID. Gets the image store upload session identified by the given ID. User can query the upload session at any time during uploading. .
SELECT
UploadSessions
FROM azure.service_fabric_dataplane.image_store_upload_sessions
WHERE session-id = '{{ session-id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND timeout = '{{ timeout }}'
;
Get the image store upload session by relative path. Gets the image store upload session associated with the given image store relative path. User can query the upload session at any time during uploading. .
SELECT
UploadSessions
FROM azure.service_fabric_dataplane.image_store_upload_sessions
WHERE content_path = '{{ content_path }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND timeout = '{{ timeout }}'
;
DELETE examples
- delete_image_store_upload_session
Cancels an image store upload session. The DELETE request will cause the existing upload session to expire and remove any previously uploaded file chunks.
DELETE FROM azure.service_fabric_dataplane.image_store_upload_sessions
WHERE session-id = '{{ session-id }}' --required
AND endpoint = '{{ endpoint }}' --required
AND timeout = '{{ timeout }}'
;