A value of now may be used to indicate the time of the request. The Coordinated Universal Time (UTC) creation time property for the file. For more information, see the list of available attributes. This header contains the file system attributes to be set on the file. You can create the key by calling the Create Permission API. If neither header is specified, the default value of inherit is used for the x-ms-file-permission header. As of version, both headers are optional. In version through, this header is required if x-ms-file-permission isn't specified. You can pass a value of inherit to inherit from the parent directory. If you specify the header, it must have an owner, group, and discretionary access control list (DACL). If it isn't, you can use x-ms-file-permission-key. You can use this header if the permissions size is over 8 KiB. This permission is the security descriptor for the file that's specified in the Security Descriptor Definition Language (SDDL). In version through, this header is required if x-ms-file-permission-key isn't specified. Note: File metadata that's specified via Azure Files isn't accessible from a Server Message Block (SMB) client. Metadata names must adhere to the naming rules for C# identifiers. Name-value pairs that are associated with the file as metadata. Sets the file's Content-Disposition header. Azure Files stores this value but doesn't use or modify it. Specifies the natural languages that are used by this resource. This value is returned to the client when the Get File operation is performed on the file resource, and you can use it to decode file content.Ĭontent-Language or x-ms-content-language Specifies which content encodings have been applied to the file. The default type is application/octet-stream.Ĭontent-Encoding or x-ms-content-encoding This header specifies the maximum size for the file, up to 4 tibibytes (TiB). For more information, see Versioning for the Azure Storage services. Specifies the version of the operation to use for this request. For more information, see Authorize requests to Azure Storage. Specifies the Coordinated Universal Time (UTC) time for the request. Specifies the authorization scheme, account name, and signature. The required and optional request headers are described in the following table: Request header For more information, see Set timeouts for file service operations. The timeout parameter is expressed in seconds. You can specify the following additional parameters on the request URI: Parameter If the directory is specified, it must already exist within the share before you can create the file.įor information about path-naming restrictions, see Name and reference shares, directories, files, and metadata. If the directory path is omitted, the file will be created within the specified share. The path to the directory where the file is to be created. Replace the path components that are shown in the request URI with your own, as described in the following table: Path component You can construct a Create File request by doing the following. Protocol availability Enabled file share protocol To add content to a file, you call the Put Range operation. When you call Create File, you only initialize the file. The Create File operation creates a new file or replaces a file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |