Skip to main content

file

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

Overview

Namefile
TypeResource
Idazure.storage_file_share.file

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
get_propertiesexecx-ms-version, accountsharesnapshot, timeout, x-ms-lease-id, x-ms-allow-trailing-dot, x-ms-file-request-intentReturns all user-defined metadata, standard HTTP properties, and system properties for the file. It does not return the content of the file.

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
accountstringStorage account name. (default: )
x-ms-versionstring
sharesnapshotstringThe snapshot parameter is an opaque DateTime value that, when present, specifies the share snapshot to query. Default value is None.
timeoutintegerThe timeout parameter is expressed in seconds. For more information, see
x-ms-allow-trailing-dotboolean
x-ms-file-request-intentstring
x-ms-lease-idstring

Lifecycle Methods

Returns all user-defined metadata, standard HTTP properties, and system properties for the file. It does not return the content of the file.

EXEC azure.storage_file_share.file.get_properties 
@x-ms-version='{{ x-ms-version }}' --required,
@account='{{ account }}' --required,
@sharesnapshot='{{ sharesnapshot }}',
@timeout='{{ timeout }}',
@x-ms-lease-id='{{ x-ms-lease-id }}',
@x-ms-allow-trailing-dot={{ x-ms-allow-trailing-dot }},
@x-ms-file-request-intent='{{ x-ms-file-request-intent }}'
@@json=
'{
"leaseId": "{{ leaseId }}"
}'
;