Skip to main content

files

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

Overview

Namefiles
TypeResource
Idazure.support.files

Fields

NameDatatypeDescription
chunk_sizetextfield from the properties object
created_ontextfield from the properties object
fileNametextfield from the properties object
fileWorkspaceNametextfield from the properties object
file_sizetextfield from the properties object
number_of_chunkstextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTfileName, fileWorkspaceName, subscriptionIdReturns details of a specific file in a work space.
listSELECTfileWorkspaceName, subscriptionIdLists all the Files information under a workspace for an Azure subscription.
createINSERTfileName, fileWorkspaceName, subscriptionIdCreates a new file under a workspace for the specified subscription.
uploadEXECfileName, fileWorkspaceName, subscriptionIdThis API allows you to upload content to a file

SELECT examples

Lists all the Files information under a workspace for an Azure subscription.

SELECT
chunk_size,
created_on,
fileName,
fileWorkspaceName,
file_size,
number_of_chunks,
subscriptionId
FROM azure.support.vw_files
WHERE fileWorkspaceName = '{{ fileWorkspaceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new files resource.

/*+ create */
INSERT INTO azure.support.files (
fileName,
fileWorkspaceName,
subscriptionId,
properties
)
SELECT
'{{ fileName }}',
'{{ fileWorkspaceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;