{
"swagger": "2.0",
"info": {
"title": "Azure Data Lake Storage REST API",
"version": "2026-06-06",
"x-typespec-generated": [
{
"emitter": "@azure-tools/typespec-autorest"
}
]
},
"schemes": [
"https"
],
"x-ms-parameterized-host": {
"hostTemplate": "{url}",
"useSchemePrefix": false,
"parameters": [
{
"name": "url",
"in": "path",
"description": "The URL of the service account, container, or blob that is the target of the desired operation.",
"required": true,
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
"produces": [
"application/json",
"application/xml"
],
"consumes": [
"application/json"
],
"security": [
{
"OAuth2Auth": [
"https://storage.azure.com/.default"
]
}
],
"securityDefinitions": {
"OAuth2Auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"https://storage.azure.com/.default": ""
}
}
},
"tags": [],
"paths": {
"/": {
"get": {
"operationId": "Service_ListFileSystems",
"description": "List filesystems and their properties in given account.",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "resource",
"in": "query",
"description": "The value must be \"account\" for all account operations.",
"required": true,
"type": "string",
"enum": [
"account"
],
"x-ms-enum": {
"name": "AccountResourceType",
"modelAsString": false,
"values": [
{
"name": "account",
"value": "account",
"description": "The account resource type."
}
]
}
},
{
"name": "prefix",
"in": "query",
"description": "Filters results to filesystems within the specified prefix.",
"required": false,
"type": "string"
},
{
"name": "continuation",
"in": "query",
"description": "Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number of paths to be deleted exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the delete operation to continue deleting the directory.",
"required": false,
"type": "string"
},
{
"name": "maxResults",
"in": "query",
"description": "An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, the response will include up to 5,000 items.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/FileSystemList"
},
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-continuation": {
"type": "string",
"description": "If the number of paths to be listed exceeds the maxResults limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the list operation to continue listing the paths."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
},
"put": {
"operationId": "FileSystem_Create",
"description": "Create a FileSystem rooted at the specified location. If the FileSystem already exists, the operation fails. This operation does not support conditional HTTP requests.",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "resource",
"in": "query",
"description": "The value must be \"filesystem\" for all filesystem operations.",
"required": true,
"type": "string",
"enum": [
"filesystem"
],
"x-ms-enum": {
"name": "FileSystemResourceType",
"modelAsString": false,
"values": [
{
"name": "filesystem",
"value": "filesystem",
"description": "The filesystem resource type."
}
]
}
},
{
"name": "x-ms-properties",
"in": "header",
"description": "Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and value pairs \"n1=v1, n2=v2, ...\", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties.",
"required": false,
"type": "string",
"x-ms-client-name": "properties"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"201": {
"description": "The request has succeeded and a new resource has been created as a result.",
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The data and time the resource was last modified."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-namespace-enabled": {
"type": "string",
"description": "A bool string indicates whether the namespace feature is enabled. If \"true\", the namespace is enabled for the filesystem."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
},
"post": {
"operationId": "Path_Lease",
"description": "Create and manage a lease to restrict write and delete access to the path. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://learn.microsoft.com/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations).",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "x-ms-lease-action",
"in": "header",
"description": "There are five lease actions: \"acquire\", \"break\", \"change\", \"renew\", and \"release\". Use \"acquire\" and specify the \"x-ms-proposed-lease-id\" and \"x-ms-lease-duration\" to acquire a new lease. Use \"break\" to break an existing lease. When a lease is broken, the lease break period is allowed to elapse, during which time no lease operation except break and release can be performed on the file. When a lease is successfully broken, the response indicates the interval in seconds until a new lease can be acquired. Use \"change\" and specify the current lease ID in \"x-ms-lease-id\" and the new lease ID in \"x-ms-proposed-lease-id\" to change the lease ID of an active lease. Use \"renew\" and specify the \"x-ms-lease-id\" to renew an existing lease. Use \"release\" and specify the \"x-ms-lease-id\" to release a lease.",
"required": true,
"type": "string",
"enum": [
"acquire",
"break",
"change",
"renew",
"release"
],
"x-ms-enum": {
"name": "PathLeaseAction",
"modelAsString": false,
"values": [
{
"name": "acquire",
"value": "acquire",
"description": "Acquire a new lease."
},
{
"name": "break",
"value": "break",
"description": "Break an existing lease."
},
{
"name": "change",
"value": "change",
"description": "Change the lease ID of an active lease."
},
{
"name": "renew",
"value": "renew",
"description": "Renew an existing lease."
},
{
"name": "release",
"value": "release",
"description": "Release a lease."
}
]
},
"x-ms-client-name": "leaseAction"
},
{
"name": "x-ms-lease-duration",
"in": "header",
"description": "The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease.",
"required": false,
"type": "integer",
"format": "int32",
"x-ms-client-name": "leaseDuration"
},
{
"name": "x-ms-lease-break-period",
"in": "header",
"description": "The lease break period duration is optional to break a lease, and specifies the break period of the lease in seconds. The lease break duration must be between 0 and 60 seconds.",
"required": false,
"type": "integer",
"format": "int32",
"x-ms-client-name": "leaseBreakPeriod"
},
{
"name": "x-ms-lease-id",
"in": "header",
"description": "If specified, the operation only succeeds if the resource's lease is active and matches this ID.",
"required": false,
"type": "string",
"x-ms-client-name": "leaseId"
},
{
"name": "x-ms-proposed-lease-id",
"in": "header",
"description": "Proposed lease ID, in a GUID string format.",
"required": false,
"type": "string",
"x-ms-client-name": "proposedLeaseId"
},
{
"name": "If-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs with a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifMatch"
},
{
"name": "If-None-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs without a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifNoneMatch"
},
{
"name": "If-Modified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifModifiedSince"
},
{
"name": "If-Unmodified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has not been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifUnmodifiedSince"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The data and time the resource was last modified."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-lease-id": {
"type": "string",
"description": "A successful lease action returns the lease ID."
},
"x-ms-lease-time": {
"type": "string",
"description": "The time remaining in the lease period in seconds."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
},
"patch": {
"operationId": "FileSystem_SetProperties",
"description": "Set properties for the FileSystem. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://learn.microsoft.com/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations).",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "resource",
"in": "query",
"description": "The value must be \"filesystem\" for all filesystem operations.",
"required": true,
"type": "string",
"enum": [
"filesystem"
],
"x-ms-enum": {
"name": "FileSystemResourceType",
"modelAsString": false,
"values": [
{
"name": "filesystem",
"value": "filesystem",
"description": "The filesystem resource type."
}
]
}
},
{
"name": "x-ms-properties",
"in": "header",
"description": "Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and value pairs \"n1=v1, n2=v2, ...\", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties.",
"required": false,
"type": "string",
"x-ms-client-name": "properties"
},
{
"name": "If-Modified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifModifiedSince"
},
{
"name": "If-Unmodified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has not been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifUnmodifiedSince"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The data and time the resource was last modified."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
},
"delete": {
"operationId": "FileSystem_Delete",
"description": "Marks the FileSystem for deletion. When a FileSystem is deleted, a FileSystem with the same identifier cannot be created for at least 30 seconds. While the filesystem is being deleted, attempts to create a filesystem with the same identifier will fail with status code 409 (Conflict), with the service returning additional error information indicating that the filesystem is being deleted. All other operations, including operations on any files or directories within the filesystem, will fail with status code 404 (Not Found) while the filesystem is being deleted. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://learn.microsoft.com/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations).",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "resource",
"in": "query",
"description": "The value must be \"filesystem\" for all filesystem operations.",
"required": true,
"type": "string",
"enum": [
"filesystem"
],
"x-ms-enum": {
"name": "FileSystemResourceType",
"modelAsString": false,
"values": [
{
"name": "filesystem",
"value": "filesystem",
"description": "The filesystem resource type."
}
]
}
},
{
"name": "If-Modified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifModifiedSince"
},
{
"name": "If-Unmodified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has not been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifUnmodifiedSince"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"202": {
"description": "The request has been accepted for processing, but processing has not yet completed.",
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
},
"head": {
"operationId": "FileSystem_GetProperties",
"description": "All system and user-defined filesystem properties are specified in the response headers.",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "resource",
"in": "query",
"description": "The value must be \"filesystem\" for all filesystem operations.",
"required": true,
"type": "string",
"enum": [
"filesystem"
],
"x-ms-enum": {
"name": "FileSystemResourceType",
"modelAsString": false,
"values": [
{
"name": "filesystem",
"value": "filesystem",
"description": "The filesystem resource type."
}
]
}
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The data and time the resource was last modified."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-namespace-enabled": {
"type": "string",
"description": "A bool string indicates whether the namespace feature is enabled. If \"true\", the namespace is enabled for the filesystem."
},
"x-ms-properties": {
"type": "string",
"description": "The user-defined properties associated with the file or directory, in the format of a comma-separated list of name and value pairs \"n1=v1, n2=v2, ...\", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
}
},
"x-ms-paths": {
"?action=append": {
"patch": {
"operationId": "Path_AppendData",
"description": "Append data to the file.",
"produces": [
"application/json"
],
"consumes": [
"application/octet-stream"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "position",
"in": "query",
"description": "This parameter allows the caller to upload data in parallel and control the order in which it is appended to the file. It is required when uploading data to be appended to the file and when flushing previously uploaded data to the file. The value must be the position where the data is to be appended. Uploaded data is not immediately flushed, or written, to the file. To flush, the previously uploaded data must be contiguous, the position parameter must be specified and equal to the length of the file after all data has been written, and there must not be a request entity body included with the request.",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "Content-Length",
"in": "header",
"description": "Required for \"Append Data\" and \"Flush Data\". Must be 0 for \"Flush Data\". Must be the length of the request content in bytes for \"Append Data\".",
"required": false,
"type": "integer",
"format": "int64",
"x-ms-client-name": "contentLength"
},
{
"name": "Content-MD5",
"in": "header",
"description": "Specify the transactional md5 for the body, to be validated by the service.",
"required": false,
"type": "string",
"format": "byte",
"x-ms-client-name": "transactionalContentHash"
},
{
"name": "x-ms-content-crc64",
"in": "header",
"description": "Specify the transactional crc64 for the body, to be validated by the service.",
"required": false,
"type": "string",
"format": "byte",
"x-ms-client-name": "transactionalContentCrc64"
},
{
"name": "x-ms-lease-id",
"in": "header",
"description": "If specified, the operation only succeeds if the resource's lease is active and matches this ID.",
"required": false,
"type": "string",
"x-ms-client-name": "leaseId"
},
{
"name": "x-ms-lease-action",
"in": "header",
"description": "Optional. If \"acquire\" it will acquire the lease. If \"auto-renew\" it will renew the lease. If \"release\" it will release the lease only on flush. If \"acquire-release\" it will acquire & complete the operation & release the lease once operation is done.",
"required": false,
"type": "string",
"enum": [
"acquire",
"auto-renew",
"release",
"acquire-release"
],
"x-ms-enum": {
"name": "LeaseAction",
"modelAsString": false,
"values": [
{
"name": "acquire",
"value": "acquire",
"description": "Acquire a lease."
},
{
"name": "auto-renew",
"value": "auto-renew",
"description": "Auto-renew the lease."
},
{
"name": "release",
"value": "release",
"description": "Release the lease only on flush."
},
{
"name": "acquire-release",
"value": "acquire-release",
"description": "Acquire, complete the operation, and release the lease."
}
]
},
"x-ms-client-name": "leaseAction"
},
{
"name": "x-ms-lease-duration",
"in": "header",
"description": "The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease.",
"required": false,
"type": "integer",
"format": "int64",
"x-ms-client-name": "leaseDuration"
},
{
"name": "x-ms-proposed-lease-id",
"in": "header",
"description": "Proposed lease ID, in a GUID string format.",
"required": false,
"type": "string",
"x-ms-client-name": "proposedLeaseId"
},
{
"name": "x-ms-encryption-key",
"in": "header",
"description": "Optional. Specifies the encryption key to use to encrypt the data provided in the request. If not specified, encryption is performed with the root account encryption key.",
"required": false,
"type": "string",
"x-ms-client-name": "encryptionKey"
},
{
"name": "x-ms-encryption-key-sha256",
"in": "header",
"description": "The SHA-256 hash of the provided encryption key. Must be provided if the x-ms-encryption-key header is provided.",
"required": false,
"type": "string",
"x-ms-client-name": "encryptionKeySha256"
},
{
"name": "x-ms-encryption-algorithm",
"in": "header",
"description": "The algorithm used to produce the encryption key hash. Currently, the only accepted value is \"AES256\". Must be provided if the x-ms-encryption-key header is provided.",
"required": false,
"type": "string",
"enum": [
"AES256"
],
"x-ms-enum": {
"name": "EncryptionAlgorithmType",
"modelAsString": false,
"values": [
{
"name": "AES256",
"value": "AES256",
"description": "The AES256 encryption algorithm."
}
]
},
"x-ms-client-name": "encryptionAlgorithm"
},
{
"name": "flush",
"in": "query",
"description": "If file should be flushed after the append.",
"required": false,
"type": "boolean"
},
{
"name": "x-ms-structured-body",
"in": "header",
"description": "Required if the request body is a structured message. Specifies the message schema version and properties.",
"required": false,
"type": "string",
"x-ms-client-name": "structuredBodyType"
},
{
"name": "x-ms-structured-content-length",
"in": "header",
"description": "Required if the request body is a structured message. Specifies the length of the blob/file content inside the message body. Will always be smaller than Content-Length.",
"required": false,
"type": "integer",
"format": "int64",
"x-ms-client-name": "structuredContentLength"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
},
{
"name": "body",
"in": "body",
"description": "Initial data.",
"required": true,
"schema": {
"type": "string",
"format": "binary"
}
}
],
"responses": {
"202": {
"description": "The request has been accepted for processing, but processing has not yet completed.",
"headers": {
"Content-MD5": {
"type": "string",
"format": "byte",
"description": "The MD5 hash of the content."
},
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-content-crc64": {
"type": "string",
"format": "byte",
"description": "This header is returned so that the client can check for message content integrity. The value of this header is computed by the Blob service; it is not necessarily the same value specified in the request headers."
},
"x-ms-encryption-key-sha256": {
"type": "string",
"description": "The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned when the blob was encrypted with a customer-provided key."
},
"x-ms-lease-renewed": {
"type": "boolean",
"description": "If the lease was auto-renewed with this request."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-request-server-encrypted": {
"type": "boolean",
"description": "The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise."
},
"x-ms-structured-body": {
"type": "string",
"description": "Indicates the structured message body was accepted and mirrors back the message schema version and properties."
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
},
"?action=flush": {
"patch": {
"operationId": "Path_FlushData",
"description": "Set the owner, group, permissions, or access control list for a path.",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "position",
"in": "query",
"description": "This parameter allows the caller to upload data in parallel and control the order in which it is appended to the file. It is required when uploading data to be appended to the file and when flushing previously uploaded data to the file. The value must be the position where the data is to be appended. Uploaded data is not immediately flushed, or written, to the file. To flush, the previously uploaded data must be contiguous, the position parameter must be specified and equal to the length of the file after all data has been written, and there must not be a request entity body included with the request.",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "retainUncommittedData",
"in": "query",
"description": "Valid only for flush operations. If \"true\", uncommitted data is retained after the flush operation completes; otherwise, the uncommitted data is deleted after the flush operation. The default is false. Data at offsets less than the specified position are written to the file when flush succeeds, but this optional parameter allows data after the flush position to be retained for a future flush operation.",
"required": false,
"type": "boolean"
},
{
"name": "close",
"in": "query",
"description": "Azure Storage Events allow applications to receive notifications when files change. When Azure Storage Events are enabled, a file changed event is raised. This event has a property indicating whether this is the final change to distinguish the difference between an intermediate flush to a file stream and the final close of a file stream. The close query parameter is valid only when the action is \"flush\" and change notifications are enabled. If the value of close is \"true\" and the flush operation completes successfully, the service raises a file change notification with a property indicating that this is the final update (the file stream has been closed). If \"false\" a change notification is raised indicating the file has changed. The default is false. This query parameter is set to true by the Hadoop ABFS driver to indicate that the file stream has been closed.",
"required": false,
"type": "boolean"
},
{
"name": "Content-Length",
"in": "header",
"description": "Required for \"Append Data\" and \"Flush Data\". Must be 0 for \"Flush Data\". Must be the length of the request content in bytes for \"Append Data\".",
"required": false,
"type": "integer",
"format": "int64",
"x-ms-client-name": "contentLength"
},
{
"name": "x-ms-content-md5",
"in": "header",
"description": "Specify the transactional md5 for the body, to be validated by the service.",
"required": false,
"type": "string",
"format": "byte",
"x-ms-client-name": "contentMD5"
},
{
"name": "x-ms-lease-id",
"in": "header",
"description": "If specified, the operation only succeeds if the resource's lease is active and matches this ID.",
"required": false,
"type": "string",
"x-ms-client-name": "leaseId"
},
{
"name": "x-ms-lease-action",
"in": "header",
"description": "Optional. If \"acquire\" it will acquire the lease. If \"auto-renew\" it will renew the lease. If \"release\" it will release the lease only on flush. If \"acquire-release\" it will acquire & complete the operation & release the lease once operation is done.",
"required": false,
"type": "string",
"enum": [
"acquire",
"auto-renew",
"release",
"acquire-release"
],
"x-ms-enum": {
"name": "LeaseAction",
"modelAsString": false,
"values": [
{
"name": "acquire",
"value": "acquire",
"description": "Acquire a lease."
},
{
"name": "auto-renew",
"value": "auto-renew",
"description": "Auto-renew the lease."
},
{
"name": "release",
"value": "release",
"description": "Release the lease only on flush."
},
{
"name": "acquire-release",
"value": "acquire-release",
"description": "Acquire, complete the operation, and release the lease."
}
]
},
"x-ms-client-name": "leaseAction"
},
{
"name": "x-ms-lease-duration",
"in": "header",
"description": "The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease.",
"required": false,
"type": "integer",
"format": "int64",
"x-ms-client-name": "leaseDuration"
},
{
"name": "x-ms-proposed-lease-id",
"in": "header",
"description": "Proposed lease ID, in a GUID string format.",
"required": false,
"type": "string",
"x-ms-client-name": "proposedLeaseId"
},
{
"name": "x-ms-cache-control",
"in": "header",
"description": "Optional. Sets the blob's cache control. If specified, this property is stored with the blob and returned with a read request.",
"required": false,
"type": "string",
"x-ms-client-name": "cacheControl"
},
{
"name": "x-ms-content-type",
"in": "header",
"description": "Optional. Sets the blob's content type. If specified, this property is stored with the blob and returned with a read request.",
"required": false,
"type": "string",
"x-ms-client-name": "contentType"
},
{
"name": "x-ms-content-disposition",
"in": "header",
"description": "Optional. Sets the blob's Content-Disposition header.",
"required": false,
"type": "string",
"x-ms-client-name": "contentDisposition"
},
{
"name": "x-ms-content-encoding",
"in": "header",
"description": "Optional. Sets the blob's content encoding. If specified, this property is stored with the blob and returned with a read request.",
"required": false,
"type": "string",
"x-ms-client-name": "contentEncoding"
},
{
"name": "x-ms-content-language",
"in": "header",
"description": "Optional. Set the blob's content language. If specified, this property is stored with the blob and returned with a read request.",
"required": false,
"type": "string",
"x-ms-client-name": "contentLanguage"
},
{
"name": "If-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs with a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifMatch"
},
{
"name": "If-None-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs without a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifNoneMatch"
},
{
"name": "If-Modified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifModifiedSince"
},
{
"name": "If-Unmodified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has not been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifUnmodifiedSince"
},
{
"name": "x-ms-encryption-key",
"in": "header",
"description": "Optional. Specifies the encryption key to use to encrypt the data provided in the request. If not specified, encryption is performed with the root account encryption key.",
"required": false,
"type": "string",
"x-ms-client-name": "encryptionKey"
},
{
"name": "x-ms-encryption-key-sha256",
"in": "header",
"description": "The SHA-256 hash of the provided encryption key. Must be provided if the x-ms-encryption-key header is provided.",
"required": false,
"type": "string",
"x-ms-client-name": "encryptionKeySha256"
},
{
"name": "x-ms-encryption-algorithm",
"in": "header",
"description": "The algorithm used to produce the encryption key hash. Currently, the only accepted value is \"AES256\". Must be provided if the x-ms-encryption-key header is provided.",
"required": false,
"type": "string",
"enum": [
"AES256"
],
"x-ms-enum": {
"name": "EncryptionAlgorithmType",
"modelAsString": false,
"values": [
{
"name": "AES256",
"value": "AES256",
"description": "The AES256 encryption algorithm."
}
]
},
"x-ms-client-name": "encryptionAlgorithm"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"headers": {
"Content-Length": {
"type": "integer",
"format": "int64",
"description": "The size of the resource in bytes."
},
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The data and time the resource was last modified."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-encryption-key-sha256": {
"type": "string",
"description": "The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned when the blob was encrypted with a customer-provided key."
},
"x-ms-lease-renewed": {
"type": "boolean",
"description": "If the lease was auto-renewed with this request."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-request-server-encrypted": {
"type": "boolean",
"description": "The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise."
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
},
"?action=setAccessControl": {
"patch": {
"operationId": "Path_SetAccessControl",
"description": "Set the owner, group, permissions, or access control list for a path.",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "x-ms-lease-id",
"in": "header",
"description": "If specified, the operation only succeeds if the resource's lease is active and matches this ID.",
"required": false,
"type": "string",
"x-ms-client-name": "leaseId"
},
{
"name": "x-ms-owner",
"in": "header",
"description": "Optional. The owner of the blob or directory.",
"required": false,
"type": "string",
"x-ms-client-name": "owner"
},
{
"name": "x-ms-group",
"in": "header",
"description": "Optional. The owning group of the blob or directory.",
"required": false,
"type": "string",
"x-ms-client-name": "group"
},
{
"name": "x-ms-permissions",
"in": "header",
"description": "Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported.",
"required": false,
"type": "string",
"x-ms-client-name": "permissions"
},
{
"name": "x-ms-acl",
"in": "header",
"description": "Sets POSIX access control rights on files and directories. The value is a comma-separated list of access control entries. Each access control entry (ACE) consists of a scope, a type, a user or group identifier, and permissions in the format \"[scope:][type]:[id]:[permissions]\".",
"required": false,
"type": "string",
"x-ms-client-name": "acl"
},
{
"name": "If-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs with a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifMatch"
},
{
"name": "If-None-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs without a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifNoneMatch"
},
{
"name": "If-Modified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifModifiedSince"
},
{
"name": "If-Unmodified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has not been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifUnmodifiedSince"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The data and time the resource was last modified."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
},
"?action=setAccessControlRecursive": {
"patch": {
"operationId": "Path_SetAccessControlRecursive",
"description": "Set the access control list for a path and sub-paths.",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "mode",
"in": "query",
"description": "Mode \"set\" sets POSIX access control rights on files and directories, \"modify\" modifies one or more POSIX access control rights that pre-exist on files and directories, \"remove\" removes one or more POSIX access control rights that were present earlier on files and directories.",
"required": true,
"type": "string",
"enum": [
"set",
"modify",
"remove"
],
"x-ms-enum": {
"name": "PathSetAccessControlRecursiveMode",
"modelAsString": false,
"values": [
{
"name": "set",
"value": "set",
"description": "Set POSIX access control rights."
},
{
"name": "modify",
"value": "modify",
"description": "Modify POSIX access control rights."
},
{
"name": "remove",
"value": "remove",
"description": "Remove POSIX access control rights."
}
]
}
},
{
"name": "continuation",
"in": "query",
"description": "Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number of paths to be deleted exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the delete operation to continue deleting the directory.",
"required": false,
"type": "string"
},
{
"name": "forceFlag",
"in": "query",
"description": "Optional. Valid for \"SetAccessControlRecursive\" operation. If set to false, the operation will terminate quickly on encountering user errors (4XX). If true, the operation will ignore user errors and proceed with the operation on other sub-entities of the directory. Continuation token will only be returned when forceFlag is true in case of user errors. If not set the default value is false for this.",
"required": false,
"type": "boolean"
},
{
"name": "maxRecords",
"in": "query",
"description": "Optional. It specifies the maximum number of files or directories on which the acl change will be applied. If omitted or greater than 2,000, the request will process up to 2,000 items.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1
},
{
"name": "x-ms-acl",
"in": "header",
"description": "Sets POSIX access control rights on files and directories. The value is a comma-separated list of access control entries. Each access control entry (ACE) consists of a scope, a type, a user or group identifier, and permissions in the format \"[scope:][type]:[id]:[permissions]\".",
"required": false,
"type": "string",
"x-ms-client-name": "acl"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/SetAccessControlRecursiveResponse"
},
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-continuation": {
"type": "string",
"description": "If the number of paths to be listed exceeds the maxResults limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the list operation to continue listing the paths."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
},
"?comp=expiry": {
"put": {
"operationId": "Path_SetExpiry",
"description": "Sets the time a blob will expire and be deleted.",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "x-ms-expiry-option",
"in": "header",
"description": "Required. Indicates mode of the expiry time.",
"required": true,
"type": "string",
"enum": [
"NeverExpire",
"RelativeToCreation",
"RelativeToNow",
"Absolute"
],
"x-ms-enum": {
"name": "PathExpiryOptions",
"modelAsString": true,
"values": [
{
"name": "NeverExpire",
"value": "NeverExpire",
"description": "Never expire."
},
{
"name": "RelativeToCreation",
"value": "RelativeToCreation",
"description": "Relative to creation time."
},
{
"name": "RelativeToNow",
"value": "RelativeToNow",
"description": "Relative to now."
},
{
"name": "Absolute",
"value": "Absolute",
"description": "Absolute time."
}
]
},
"x-ms-client-name": "expiryOptions"
},
{
"name": "x-ms-expiry-time",
"in": "header",
"description": "The time to set the blob to expiry.",
"required": false,
"type": "string",
"x-ms-client-name": "expiresOn"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The data and time the resource was last modified."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
},
"?comp=undelete": {
"put": {
"operationId": "Path_Undelete",
"description": "Undelete a path that was previously soft deleted.",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "x-ms-undelete-source",
"in": "header",
"description": "Only for hierarchical namespace enabled accounts. Optional. The path of the soft deleted blob to undelete.",
"required": false,
"type": "string",
"x-ms-client-name": "undeleteSource"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-resource-type": {
"type": "string",
"description": "The type of the resource. The value may be \"file\" or \"directory\". If not set, the value is \"file\"."
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
},
"?resource=filesystem": {
"get": {
"operationId": "FileSystem_ListPaths",
"description": "List FileSystem paths and their properties.",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "continuation",
"in": "query",
"description": "Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number of paths to be deleted exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the delete operation to continue deleting the directory.",
"required": false,
"type": "string"
},
{
"name": "directory",
"in": "query",
"description": "Optional. Filters results to paths within the specified directory. An error occurs if the directory does not exist.",
"required": false,
"type": "string",
"x-ms-client-name": "path"
},
{
"name": "recursive",
"in": "query",
"description": "Required",
"required": true,
"type": "boolean"
},
{
"name": "maxResults",
"in": "query",
"description": "An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, the response will include up to 5,000 items.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1
},
{
"name": "upn",
"in": "query",
"description": "Optional. Valid only when Hierarchical Namespace is enabled for the account. If \"true\", the user identity values returned in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User Principal Names. If \"false\", the values will be returned as Azure Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not translated because they do not have unique friendly names.",
"required": false,
"type": "boolean"
},
{
"name": "beginFrom",
"in": "query",
"description": "Optional. A relative path within the specified directory where the listing will start from.",
"required": false,
"type": "string"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/PathList"
},
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The data and time the resource was last modified."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-continuation": {
"type": "string",
"description": "If the number of paths to be listed exceeds the maxResults limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the list operation to continue listing the paths."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
},
"?restype=container&comp=list": {
"get": {
"operationId": "FileSystem_ListBlobHierarchySegment",
"description": "The List Blobs operation returns a list of the blobs under the specified container.",
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "prefix",
"in": "query",
"description": "Filters results to filesystems within the specified prefix.",
"required": false,
"type": "string"
},
{
"name": "delimiter",
"in": "query",
"description": "When the request includes this parameter, the operation returns a BlobPrefix element in the response body that acts as a placeholder for all blobs whose names begin with the same substring up to the appearance of the delimiter character. The delimiter may be a single character or a string.",
"required": false,
"type": "string"
},
{
"name": "marker",
"in": "query",
"description": "A string value that identifies the portion of the list of containers to be returned with the next listing operation. The operation returns the NextMarker value within the response body if the listing operation did not return all containers remaining to be listed with the current page. The NextMarker value can be used as the value for the marker parameter in a subsequent call to request the next page of list items. The marker value is opaque to the client.",
"required": false,
"type": "string"
},
{
"name": "maxResults",
"in": "query",
"description": "An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, the response will include up to 5,000 items.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1
},
{
"name": "include",
"in": "query",
"description": "Include this parameter to specify one or more datasets to include in the response.",
"required": false,
"type": "array",
"items": {
"type": "string",
"enum": [
"copy",
"deleted",
"metadata",
"snapshots",
"uncommittedblobs",
"versions",
"tags"
],
"x-ms-enum": {
"name": "ListBlobsIncludeItem",
"modelAsString": false,
"values": [
{
"name": "copy",
"value": "copy",
"description": "Include copy information."
},
{
"name": "deleted",
"value": "deleted",
"description": "Include deleted blobs."
},
{
"name": "metadata",
"value": "metadata",
"description": "Include metadata."
},
{
"name": "snapshots",
"value": "snapshots",
"description": "Include snapshots."
},
{
"name": "uncommittedblobs",
"value": "uncommittedblobs",
"description": "Include uncommitted blobs."
},
{
"name": "versions",
"value": "versions",
"description": "Include versions."
},
{
"name": "tags",
"value": "tags",
"description": "Include tags."
}
]
}
},
"collectionFormat": "csv"
},
{
"name": "showonly",
"in": "query",
"description": "Include this parameter to specify one or more datasets to include in the response.",
"required": false,
"type": "string",
"enum": [
"deleted"
],
"x-ms-enum": {
"name": "ListBlobsShowOnly",
"modelAsString": false,
"values": [
{
"name": "deleted",
"value": "deleted",
"description": "Show only deleted blobs."
}
]
}
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/ListBlobsHierarchySegmentResponse"
},
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
},
"/?_overload=create": {
"put": {
"operationId": "Path_Create",
"description": "Create or rename a file or directory. By default, the destination is overwritten and if the destination already exists and has a lease the lease is broken. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://learn.microsoft.com/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). To fail if the destination already exists, use a conditional request with If-None-Match: \"*\".",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "resource",
"in": "query",
"description": "Required only for Create File and Create Directory. The value must be \"file\" or \"directory\".",
"required": false,
"type": "string",
"enum": [
"directory",
"file"
],
"x-ms-enum": {
"name": "PathResourceType",
"modelAsString": false,
"values": [
{
"name": "directory",
"value": "directory",
"description": "A directory resource type."
},
{
"name": "file",
"value": "file",
"description": "A file resource type."
}
]
}
},
{
"name": "mode",
"in": "query",
"description": "Optional. Valid only when namespace is enabled. This parameter determines the behavior of the rename operation. The value must be \"legacy\" or \"posix\", and the default value will be \"posix\".",
"required": false,
"type": "string",
"enum": [
"legacy",
"posix"
],
"x-ms-enum": {
"name": "PathRenameMode",
"modelAsString": false,
"values": [
{
"name": "legacy",
"value": "legacy",
"description": "Legacy rename mode."
},
{
"name": "posix",
"value": "posix",
"description": "POSIX rename mode."
}
]
}
},
{
"name": "continuation",
"in": "query",
"description": "Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number of paths to be deleted exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the delete operation to continue deleting the directory.",
"required": false,
"type": "string"
},
{
"name": "x-ms-cache-control",
"in": "header",
"description": "Optional. Sets the blob's cache control. If specified, this property is stored with the blob and returned with a read request.",
"required": false,
"type": "string",
"x-ms-client-name": "cacheControl"
},
{
"name": "x-ms-content-encoding",
"in": "header",
"description": "Optional. Sets the blob's content encoding. If specified, this property is stored with the blob and returned with a read request.",
"required": false,
"type": "string",
"x-ms-client-name": "contentEncoding"
},
{
"name": "x-ms-content-language",
"in": "header",
"description": "Optional. Set the blob's content language. If specified, this property is stored with the blob and returned with a read request.",
"required": false,
"type": "string",
"x-ms-client-name": "contentLanguage"
},
{
"name": "x-ms-content-disposition",
"in": "header",
"description": "Optional. Sets the blob's Content-Disposition header.",
"required": false,
"type": "string",
"x-ms-client-name": "contentDisposition"
},
{
"name": "x-ms-content-type",
"in": "header",
"description": "Optional. Sets the blob's content type. If specified, this property is stored with the blob and returned with a read request.",
"required": false,
"type": "string",
"x-ms-client-name": "contentType"
},
{
"name": "x-ms-rename-source",
"in": "header",
"description": "An optional file or directory to be renamed. The value must have the following format: \"/{filesystem}/{path}\". If \"x-ms-properties\" is specified, the properties will overwrite the existing properties; otherwise, the existing properties will be preserved. This value must be a URL percent-encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set.",
"required": false,
"type": "string",
"x-ms-client-name": "renameSource"
},
{
"name": "x-ms-lease-id",
"in": "header",
"description": "If specified, the operation only succeeds if the resource's lease is active and matches this ID.",
"required": false,
"type": "string",
"x-ms-client-name": "leaseId"
},
{
"name": "x-ms-source-lease-id",
"in": "header",
"description": "A lease ID for the source path. If specified, the source path must have an active lease and the lease ID must match.",
"required": false,
"type": "string",
"x-ms-client-name": "sourceLeaseId"
},
{
"name": "x-ms-properties",
"in": "header",
"description": "Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and value pairs \"n1=v1, n2=v2, ...\", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties.",
"required": false,
"type": "string",
"x-ms-client-name": "properties"
},
{
"name": "x-ms-permissions",
"in": "header",
"description": "Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported.",
"required": false,
"type": "string",
"x-ms-client-name": "permissions"
},
{
"name": "x-ms-umask",
"in": "header",
"description": "Optional and only valid if Hierarchical Namespace is enabled for the account. When creating a file or directory and the parent folder does not have a default ACL, the umask restricts the permissions of the file or directory to be created. The resulting permission is given by p bitwise and not u, where p is the permission and u is the umask. For example, if p is 0777 and u is 0057, then the resulting permission is 0720. The default permission is 0777 for a directory and 0666 for a file. The default umask is 0027. The umask must be specified in 4-digit octal notation (e.g. 0766).",
"required": false,
"type": "string",
"x-ms-client-name": "umask"
},
{
"name": "If-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs with a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifMatch"
},
{
"name": "If-None-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs without a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifNoneMatch"
},
{
"name": "If-Modified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifModifiedSince"
},
{
"name": "If-Unmodified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has not been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifUnmodifiedSince"
},
{
"name": "x-ms-source-if-match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs with a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "sourceIfMatch"
},
{
"name": "x-ms-source-if-none-match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs without a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "sourceIfNoneMatch"
},
{
"name": "x-ms-source-if-modified-since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "sourceIfModifiedSince"
},
{
"name": "x-ms-source-if-unmodified-since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has not been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "sourceIfUnmodifiedSince"
},
{
"name": "x-ms-encryption-key",
"in": "header",
"description": "Optional. Specifies the encryption key to use to encrypt the data provided in the request. If not specified, encryption is performed with the root account encryption key.",
"required": false,
"type": "string",
"x-ms-client-name": "encryptionKey"
},
{
"name": "x-ms-encryption-key-sha256",
"in": "header",
"description": "The SHA-256 hash of the provided encryption key. Must be provided if the x-ms-encryption-key header is provided.",
"required": false,
"type": "string",
"x-ms-client-name": "encryptionKeySha256"
},
{
"name": "x-ms-encryption-algorithm",
"in": "header",
"description": "The algorithm used to produce the encryption key hash. Currently, the only accepted value is \"AES256\". Must be provided if the x-ms-encryption-key header is provided.",
"required": false,
"type": "string",
"enum": [
"AES256"
],
"x-ms-enum": {
"name": "EncryptionAlgorithmType",
"modelAsString": false,
"values": [
{
"name": "AES256",
"value": "AES256",
"description": "The AES256 encryption algorithm."
}
]
},
"x-ms-client-name": "encryptionAlgorithm"
},
{
"name": "x-ms-owner",
"in": "header",
"description": "Optional. The owner of the blob or directory.",
"required": false,
"type": "string",
"x-ms-client-name": "owner"
},
{
"name": "x-ms-group",
"in": "header",
"description": "Optional. The owning group of the blob or directory.",
"required": false,
"type": "string",
"x-ms-client-name": "group"
},
{
"name": "x-ms-acl",
"in": "header",
"description": "Sets POSIX access control rights on files and directories. The value is a comma-separated list of access control entries. Each access control entry (ACE) consists of a scope, a type, a user or group identifier, and permissions in the format \"[scope:][type]:[id]:[permissions]\".",
"required": false,
"type": "string",
"x-ms-client-name": "acl"
},
{
"name": "x-ms-proposed-lease-id",
"in": "header",
"description": "Proposed lease ID, in a GUID string format.",
"required": false,
"type": "string",
"x-ms-client-name": "proposedLeaseId"
},
{
"name": "x-ms-lease-duration",
"in": "header",
"description": "The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease.",
"required": false,
"type": "integer",
"format": "int64",
"x-ms-client-name": "leaseDuration"
},
{
"name": "x-ms-expiry-option",
"in": "header",
"description": "Required. Indicates mode of the expiry time.",
"required": false,
"type": "string",
"enum": [
"NeverExpire",
"RelativeToCreation",
"RelativeToNow",
"Absolute"
],
"x-ms-enum": {
"name": "PathExpiryOptions",
"modelAsString": true,
"values": [
{
"name": "NeverExpire",
"value": "NeverExpire",
"description": "Never expire."
},
{
"name": "RelativeToCreation",
"value": "RelativeToCreation",
"description": "Relative to creation time."
},
{
"name": "RelativeToNow",
"value": "RelativeToNow",
"description": "Relative to now."
},
{
"name": "Absolute",
"value": "Absolute",
"description": "Absolute time."
}
]
},
"x-ms-client-name": "expiryOptions"
},
{
"name": "x-ms-expiry-time",
"in": "header",
"description": "The time to set the blob to expiry.",
"required": false,
"type": "string",
"x-ms-client-name": "expiresOn"
},
{
"name": "x-ms-encryption-context",
"in": "header",
"description": "Specifies the encryption context to set on the file.",
"required": false,
"type": "string",
"x-ms-client-name": "encryptionContext"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"201": {
"description": "The request has succeeded and a new resource has been created as a result.",
"headers": {
"Content-Length": {
"type": "integer",
"format": "int64",
"description": "The size of the resource in bytes."
},
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The data and time the resource was last modified."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-continuation": {
"type": "string",
"description": "If the number of paths to be listed exceeds the maxResults limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the list operation to continue listing the paths."
},
"x-ms-encryption-key-sha256": {
"type": "string",
"description": "The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned when the blob was encrypted with a customer-provided key."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-request-server-encrypted": {
"type": "boolean",
"description": "The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise."
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
},
"/?_overload=delete": {
"delete": {
"operationId": "Path_Delete",
"description": "Delete the file or directory. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://learn.microsoft.com/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations).",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "recursive",
"in": "query",
"description": "Required",
"required": false,
"type": "boolean"
},
{
"name": "continuation",
"in": "query",
"description": "Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number of paths to be deleted exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the delete operation to continue deleting the directory.",
"required": false,
"type": "string"
},
{
"name": "x-ms-lease-id",
"in": "header",
"description": "If specified, the operation only succeeds if the resource's lease is active and matches this ID.",
"required": false,
"type": "string",
"x-ms-client-name": "leaseId"
},
{
"name": "If-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs with a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifMatch"
},
{
"name": "If-None-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs without a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifNoneMatch"
},
{
"name": "If-Modified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifModifiedSince"
},
{
"name": "If-Unmodified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has not been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifUnmodifiedSince"
},
{
"name": "paginated",
"in": "query",
"description": "If true, paginated behavior will be seen. Pagination is for the recursive ACL checks as a POSIX requirement in the server and Delete in an atomic operation once the ACL checks are completed. If false or missing, normal default behavior will kick in, which may timeout in case of very large directories due to recursive ACL checks. This new parameter is introduced for backward compatibility.",
"required": false,
"type": "boolean"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-continuation": {
"type": "string",
"description": "If the number of paths to be listed exceeds the maxResults limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the list operation to continue listing the paths."
},
"x-ms-deletion-id": {
"type": "string",
"description": "Returned only for hierarchical namespace space enabled accounts when soft delete is enabled. A unique identifier for the entity that can be used to restore it."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"202": {
"description": "The request has been accepted for processing, but processing has not yet completed.",
"headers": {
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-continuation": {
"type": "string",
"description": "If the number of paths to be listed exceeds the maxResults limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the list operation to continue listing the paths."
},
"x-ms-deletion-id": {
"type": "string",
"description": "Returned only for hierarchical namespace space enabled accounts when soft delete is enabled. A unique identifier for the entity that can be used to restore it."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
},
"/?_overload=getProperties": {
"head": {
"operationId": "Path_GetProperties",
"description": "Get Properties returns all system and user defined properties for a path. Get Status returns all system defined properties for a path. Get Access Control List returns the access control list for a path. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://learn.microsoft.com/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations).",
"produces": [
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "action",
"in": "query",
"description": "Optional. If the value is \"getStatus\" only the system defined properties for the path are returned. If the value is \"getAccessControl\" the access control list is returned in the response headers (Hierarchical Namespace must be enabled for the account), otherwise the properties are returned.",
"required": false,
"type": "string",
"enum": [
"getAccessControl",
"getStatus"
],
"x-ms-enum": {
"name": "PathGetPropertiesAction",
"modelAsString": false,
"values": [
{
"name": "getAccessControl",
"value": "getAccessControl",
"description": "Get access control list."
},
{
"name": "getStatus",
"value": "getStatus",
"description": "Get status."
}
]
}
},
{
"name": "upn",
"in": "query",
"description": "Optional. Valid only when Hierarchical Namespace is enabled for the account. If \"true\", the user identity values returned in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User Principal Names. If \"false\", the values will be returned as Azure Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not translated because they do not have unique friendly names.",
"required": false,
"type": "boolean"
},
{
"name": "x-ms-lease-id",
"in": "header",
"description": "If specified, the operation only succeeds if the resource's lease is active and matches this ID.",
"required": false,
"type": "string",
"x-ms-client-name": "leaseId"
},
{
"name": "If-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs with a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifMatch"
},
{
"name": "If-None-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs without a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifNoneMatch"
},
{
"name": "If-Modified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifModifiedSince"
},
{
"name": "If-Unmodified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has not been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifUnmodifiedSince"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"headers": {
"Accept-Ranges": {
"type": "string",
"description": "Indicates that the service supports requests for partial file content."
},
"Cache-Control": {
"type": "string",
"description": "If the Cache-Control request header has previously been set for the resource, that value is returned in this header."
},
"Content-Disposition": {
"type": "string",
"description": "If the Content-Disposition request header has previously been set for the resource, that value is returned in this header."
},
"Content-Encoding": {
"type": "string",
"description": "If the Content-Encoding request header has previously been set for the resource, that value is returned in this header."
},
"Content-Language": {
"type": "string",
"description": "If the Content-Language request header has previously been set for the resource, that value is returned in this header."
},
"Content-Length": {
"type": "integer",
"format": "int64",
"description": "The size of the resource in bytes."
},
"Content-MD5": {
"type": "string",
"format": "byte",
"description": "The MD5 hash of the content."
},
"Content-Range": {
"type": "string",
"description": "Indicates the range of bytes returned in the event that the client requested a subset of the file by setting the Range request header."
},
"Content-Type": {
"type": "string",
"description": "The content type specified for the resource. If no content type was specified, the default content type is application/octet-stream."
},
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The data and time the resource was last modified."
},
"x-ms-acl": {
"type": "string",
"description": "The POSIX access control list for the file or directory. Included in the response only if the action is \"getAccessControl\" and Hierarchical Namespace is enabled for the account."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-creation-time": {
"type": "string",
"format": "date-time-rfc7231",
"description": "Returns the date and time the blob was created."
},
"x-ms-encryption-context": {
"type": "string",
"description": "The encryption context used to encrypt the blob. This header is only returned when the blob was encrypted with a customer-provided key."
},
"x-ms-encryption-key-sha256": {
"type": "string",
"description": "The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned when the blob was encrypted with a customer-provided key."
},
"x-ms-encryption-scope": {
"type": "string",
"description": "Returns the name of the encryption scope used to encrypt the blob contents and application metadata. Note that the absence of this header implies use of the default account encryption scope."
},
"x-ms-expiry-time": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The time this blob will expire."
},
"x-ms-group": {
"type": "string",
"description": "The owning group of the file or directory. Included in the response if Hierarchical Namespace is enabled for the account."
},
"x-ms-lease-duration": {
"type": "string",
"description": "When a resource is leased, specifies whether the lease is of infinite or fixed duration."
},
"x-ms-lease-state": {
"type": "string",
"description": "Lease state of the resource."
},
"x-ms-lease-status": {
"type": "string",
"description": "The lease status of the resource."
},
"x-ms-owner": {
"type": "string",
"description": "The owner of the file or directory. Included in the response if Hierarchical Namespace is enabled for the account."
},
"x-ms-permissions": {
"type": "string",
"description": "The POSIX access permissions for the file owner, the file owning group, and others. Included in the response if Hierarchical Namespace is enabled for the account."
},
"x-ms-properties": {
"type": "string",
"description": "The user-defined properties associated with the file or directory, in the format of a comma-separated list of name and value pairs \"n1=v1, n2=v2, ...\", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-resource-type": {
"type": "string",
"description": "The type of the resource. The value may be \"file\" or \"directory\". If not set, the value is \"file\"."
},
"x-ms-server-encrypted": {
"type": "boolean",
"description": "The value of this header is set to true if the directory metadata is completely encrypted using the specified algorithm. Otherwise, the value is set to false."
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
},
"/?_overload=read": {
"get": {
"operationId": "Path_Read",
"description": "Read the contents of a file. For read operations, range requests are supported. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://learn.microsoft.com/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations).",
"produces": [
"application/octet-stream",
"application/json"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "Range",
"in": "header",
"description": "The HTTP Range request header specifies one or more byte ranges of the resource to be retrieved.",
"required": false,
"type": "string",
"x-ms-client-name": "range"
},
{
"name": "x-ms-lease-id",
"in": "header",
"description": "If specified, the operation only succeeds if the resource's lease is active and matches this ID.",
"required": false,
"type": "string",
"x-ms-client-name": "leaseId"
},
{
"name": "x-ms-range-get-content-md5",
"in": "header",
"description": "Optional. When this header is set to \"true\" and specified together with the Range header, the service returns the MD5 hash for the range, as long as the range is less than or equal to 4MB in size.",
"required": false,
"type": "boolean",
"x-ms-client-name": "rangeGetContentMD5"
},
{
"name": "If-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs with a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifMatch"
},
{
"name": "If-None-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs without a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifNoneMatch"
},
{
"name": "If-Modified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifModifiedSince"
},
{
"name": "If-Unmodified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has not been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifUnmodifiedSince"
},
{
"name": "x-ms-encryption-key",
"in": "header",
"description": "Optional. Specifies the encryption key to use to encrypt the data provided in the request. If not specified, encryption is performed with the root account encryption key.",
"required": false,
"type": "string",
"x-ms-client-name": "encryptionKey"
},
{
"name": "x-ms-encryption-key-sha256",
"in": "header",
"description": "The SHA-256 hash of the provided encryption key. Must be provided if the x-ms-encryption-key header is provided.",
"required": false,
"type": "string",
"x-ms-client-name": "encryptionKeySha256"
},
{
"name": "x-ms-encryption-algorithm",
"in": "header",
"description": "The algorithm used to produce the encryption key hash. Currently, the only accepted value is \"AES256\". Must be provided if the x-ms-encryption-key header is provided.",
"required": false,
"type": "string",
"enum": [
"AES256"
],
"x-ms-enum": {
"name": "EncryptionAlgorithmType",
"modelAsString": false,
"values": [
{
"name": "AES256",
"value": "AES256",
"description": "The AES256 encryption algorithm."
}
]
},
"x-ms-client-name": "encryptionAlgorithm"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"type": "file"
},
"headers": {
"Accept-Ranges": {
"type": "string",
"description": "Indicates that the service supports requests for partial file content."
},
"Cache-Control": {
"type": "string",
"description": "If the Cache-Control request header has previously been set for the resource, that value is returned in this header."
},
"Content-Disposition": {
"type": "string",
"description": "If the Content-Disposition request header has previously been set for the resource, that value is returned in this header."
},
"Content-Encoding": {
"type": "string",
"description": "If the Content-Encoding request header has previously been set for the resource, that value is returned in this header."
},
"Content-Language": {
"type": "string",
"description": "If the Content-Language request header has previously been set for the resource, that value is returned in this header."
},
"Content-Length": {
"type": "integer",
"format": "int64",
"description": "The size of the resource in bytes."
},
"Content-MD5": {
"type": "string",
"format": "byte",
"description": "The MD5 hash of the content."
},
"Content-Range": {
"type": "string",
"description": "Indicates the range of bytes returned in the event that the client requested a subset of the file by setting the Range request header."
},
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The data and time the resource was last modified."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-encryption-key-sha256": {
"type": "string",
"description": "The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned when the blob was encrypted with a customer-provided key."
},
"x-ms-lease-duration": {
"type": "string",
"description": "When a resource is leased, specifies whether the lease is of infinite or fixed duration."
},
"x-ms-lease-state": {
"type": "string",
"description": "Lease state of the resource."
},
"x-ms-lease-status": {
"type": "string",
"description": "The lease status of the resource."
},
"x-ms-properties": {
"type": "string",
"description": "The user-defined properties associated with the file or directory, in the format of a comma-separated list of name and value pairs \"n1=v1, n2=v2, ...\", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-request-server-encrypted": {
"type": "boolean",
"description": "The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise."
},
"x-ms-resource-type": {
"type": "string",
"description": "The type of the resource. The value may be \"file\" or \"directory\". If not set, the value is \"file\"."
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
},
"/?_overload=update": {
"patch": {
"operationId": "Path_Update",
"description": "Uploads data to be appended to a file, flushes (writes) previously uploaded data to a file, sets properties for a file or directory, or sets access control for a file or directory. Data can only be appended to a file. Concurrent writes to the same file using multiple clients are not supported. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://learn.microsoft.com/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations).",
"produces": [
"application/json"
],
"consumes": [
"application/octet-stream"
],
"parameters": [
{
"name": "x-ms-version",
"in": "header",
"description": "Specifies the version of the operation to use for this request.",
"required": true,
"type": "string",
"x-ms-client-name": "version"
},
{
"name": "x-ms-client-request-id",
"in": "header",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.",
"required": false,
"type": "string",
"x-ms-client-name": "clientRequestId"
},
{
"name": "action",
"in": "query",
"description": "The action must be \"append\" to upload data to be appended to a file, \"flush\" to flush previously uploaded data to a file, \"setProperties\" to set the properties of a file or directory, \"setAccessControl\" to set the owner, group, permissions, or access control list for a file or directory, or \"setAccessControlRecursive\" to set the access control list for a directory recursively. Note that Hierarchical Namespace must be enabled for the account in order to use access control. Also note that the Access Control List (ACL) includes permissions for the owner, owning group, and others, so the x-ms-permissions and x-ms-acl request headers are mutually exclusive.",
"required": true,
"type": "string",
"enum": [
"append",
"flush",
"setProperties",
"setAccessControl",
"setAccessControlRecursive"
],
"x-ms-enum": {
"name": "PathUpdateAction",
"modelAsString": false,
"values": [
{
"name": "append",
"value": "append",
"description": "Append data to the file."
},
{
"name": "flush",
"value": "flush",
"description": "Flush previously uploaded data to a file."
},
{
"name": "setProperties",
"value": "setProperties",
"description": "Set the properties of a file or directory."
},
{
"name": "setAccessControl",
"value": "setAccessControl",
"description": "Set the access control for a file or directory."
},
{
"name": "setAccessControlRecursive",
"value": "setAccessControlRecursive",
"description": "Set the access control list for a directory recursively."
}
]
}
},
{
"name": "maxRecords",
"in": "query",
"description": "Optional. Valid for \"SetAccessControlRecursive\" operation. It specifies the maximum number of files or directories on which the acl change will be applied. If omitted or greater than 2,000, the request will process up to 2,000 items.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1
},
{
"name": "continuation",
"in": "query",
"description": "Optional. The number of paths processed with each invocation is limited. If the number of paths to be processed exceeds this limit, a continuation token is returned in the response header x-ms-continuation. When a continuation token is returned in the response, it must be percent-encoded and specified in a subsequent invocation of setAccessControlRecursive operation.",
"required": false,
"type": "string"
},
{
"name": "mode",
"in": "query",
"description": "Mode for set access control recursive.",
"required": false,
"type": "string",
"enum": [
"set",
"modify",
"remove"
],
"x-ms-enum": {
"name": "PathSetAccessControlRecursiveMode",
"modelAsString": false,
"values": [
{
"name": "set",
"value": "set",
"description": "Set POSIX access control rights."
},
{
"name": "modify",
"value": "modify",
"description": "Modify POSIX access control rights."
},
{
"name": "remove",
"value": "remove",
"description": "Remove POSIX access control rights."
}
]
}
},
{
"name": "forceFlag",
"in": "query",
"description": "Optional. Valid for \"SetAccessControlRecursive\" operation. If set to false, the operation will terminate quickly on encountering user errors (4XX). If true, the operation will ignore user errors and proceed with the operation on other sub-entities of the directory. Continuation token will only be returned when forceFlag is true in case of user errors. If not set the default value is false for this.",
"required": false,
"type": "boolean"
},
{
"name": "position",
"in": "query",
"description": "This parameter allows the caller to upload data in parallel and control the order in which it is appended to the file. It is required when uploading data to be appended to the file and when flushing previously uploaded data to the file. The value must be the position where the data is to be appended. Uploaded data is not immediately flushed, or written, to the file. To flush, the previously uploaded data must be contiguous, the position parameter must be specified and equal to the length of the file after all data has been written, and there must not be a request entity body included with the request.",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "retainUncommittedData",
"in": "query",
"description": "Valid only for flush operations. If \"true\", uncommitted data is retained after the flush operation completes; otherwise, the uncommitted data is deleted after the flush operation. The default is false. Data at offsets less than the specified position are written to the file when flush succeeds, but this optional parameter allows data after the flush position to be retained for a future flush operation.",
"required": false,
"type": "boolean"
},
{
"name": "close",
"in": "query",
"description": "Azure Storage Events allow applications to receive notifications when files change. When Azure Storage Events are enabled, a file changed event is raised. This event has a property indicating whether this is the final change to distinguish the difference between an intermediate flush to a file stream and the final close of a file stream. The close query parameter is valid only when the action is \"flush\" and change notifications are enabled. If the value of close is \"true\" and the flush operation completes successfully, the service raises a file change notification with a property indicating that this is the final update (the file stream has been closed). If \"false\" a change notification is raised indicating the file has changed. The default is false. This query parameter is set to true by the Hadoop ABFS driver to indicate that the file stream has been closed.",
"required": false,
"type": "boolean"
},
{
"name": "Content-Length",
"in": "header",
"description": "Required for \"Append Data\" and \"Flush Data\". Must be 0 for \"Flush Data\". Must be the length of the request content in bytes for \"Append Data\".",
"required": false,
"type": "integer",
"format": "int64",
"x-ms-client-name": "contentLength"
},
{
"name": "x-ms-content-md5",
"in": "header",
"description": "Specify the transactional md5 for the body, to be validated by the service.",
"required": false,
"type": "string",
"format": "byte",
"x-ms-client-name": "contentMD5"
},
{
"name": "x-ms-lease-id",
"in": "header",
"description": "If specified, the operation only succeeds if the resource's lease is active and matches this ID.",
"required": false,
"type": "string",
"x-ms-client-name": "leaseId"
},
{
"name": "x-ms-cache-control",
"in": "header",
"description": "Optional. Sets the blob's cache control. If specified, this property is stored with the blob and returned with a read request.",
"required": false,
"type": "string",
"x-ms-client-name": "cacheControl"
},
{
"name": "x-ms-content-disposition",
"in": "header",
"description": "Optional. Sets the blob's Content-Disposition header.",
"required": false,
"type": "string",
"x-ms-client-name": "contentDisposition"
},
{
"name": "x-ms-content-encoding",
"in": "header",
"description": "Optional. Sets the blob's content encoding. If specified, this property is stored with the blob and returned with a read request.",
"required": false,
"type": "string",
"x-ms-client-name": "contentEncoding"
},
{
"name": "x-ms-content-language",
"in": "header",
"description": "Optional. Set the blob's content language. If specified, this property is stored with the blob and returned with a read request.",
"required": false,
"type": "string",
"x-ms-client-name": "contentLanguage"
},
{
"name": "x-ms-properties",
"in": "header",
"description": "Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and value pairs \"n1=v1, n2=v2, ...\", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties.",
"required": false,
"type": "string",
"x-ms-client-name": "properties"
},
{
"name": "x-ms-owner",
"in": "header",
"description": "Optional. The owner of the blob or directory.",
"required": false,
"type": "string",
"x-ms-client-name": "owner"
},
{
"name": "x-ms-group",
"in": "header",
"description": "Optional. The owning group of the blob or directory.",
"required": false,
"type": "string",
"x-ms-client-name": "group"
},
{
"name": "x-ms-permissions",
"in": "header",
"description": "Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported.",
"required": false,
"type": "string",
"x-ms-client-name": "permissions"
},
{
"name": "x-ms-acl",
"in": "header",
"description": "Sets POSIX access control rights on files and directories. The value is a comma-separated list of access control entries. Each access control entry (ACE) consists of a scope, a type, a user or group identifier, and permissions in the format \"[scope:][type]:[id]:[permissions]\".",
"required": false,
"type": "string",
"x-ms-client-name": "acl"
},
{
"name": "If-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs with a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifMatch"
},
{
"name": "If-None-Match",
"in": "header",
"description": "Specify an ETag value to operate only on blobs without a matching value.",
"required": false,
"type": "string",
"x-ms-client-name": "ifNoneMatch"
},
{
"name": "If-Modified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifModifiedSince"
},
{
"name": "If-Unmodified-Since",
"in": "header",
"description": "Specify this header value to operate only on a blob if it has not been modified since the specified date/time.",
"required": false,
"type": "string",
"format": "date-time-rfc7231",
"x-ms-client-name": "ifUnmodifiedSince"
},
{
"name": "x-ms-structured-body",
"in": "header",
"description": "Required if the request body is a structured message. Specifies the message schema version and properties.",
"required": false,
"type": "string",
"x-ms-client-name": "structuredBodyType"
},
{
"name": "x-ms-structured-content-length",
"in": "header",
"description": "Required if the request body is a structured message. Specifies the length of the blob/file content inside the message body. Will always be smaller than Content-Length.",
"required": false,
"type": "integer",
"format": "int64",
"x-ms-client-name": "structuredContentLength"
},
{
"name": "timeout",
"in": "query",
"description": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 0
},
{
"name": "body",
"in": "body",
"description": "Initial data.",
"required": true,
"schema": {
"type": "string",
"format": "binary"
}
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/SetAccessControlRecursiveResponse"
},
"headers": {
"Accept-Ranges": {
"type": "string",
"description": "Indicates that the service supports requests for partial file content."
},
"Cache-Control": {
"type": "string",
"description": "If the Cache-Control request header has previously been set for the resource, that value is returned in this header."
},
"Content-Disposition": {
"type": "string",
"description": "If the Content-Disposition request header has previously been set for the resource, that value is returned in this header."
},
"Content-Encoding": {
"type": "string",
"description": "If the Content-Encoding request header has previously been set for the resource, that value is returned in this header."
},
"Content-Language": {
"type": "string",
"description": "If the Content-Language request header has previously been set for the resource, that value is returned in this header."
},
"Content-Length": {
"type": "integer",
"format": "int64",
"description": "The size of the resource in bytes."
},
"Content-MD5": {
"type": "string",
"format": "byte",
"description": "The MD5 hash of the content."
},
"Content-Range": {
"type": "string",
"description": "Indicates the range of bytes returned in the event that the client requested a subset of the file by setting the Range request header."
},
"Date": {
"type": "string",
"format": "date-time-rfc7231",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"ETag": {
"type": "string",
"description": "An HTTP entity tag associated with the resource."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The data and time the resource was last modified."
},
"x-ms-client-request-id": {
"type": "string",
"description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled."
},
"x-ms-continuation": {
"type": "string",
"description": "If the number of paths to be listed exceeds the maxResults limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the list operation to continue listing the paths."
},
"x-ms-properties": {
"type": "string",
"description": "The user-defined properties associated with the file or directory, in the format of a comma-separated list of name and value pairs \"n1=v1, n2=v2, ...\", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set."
},
"x-ms-request-id": {
"type": "string",
"description": "A server-generated UUID recorded in the analytics logs for troubleshooting and correlation.",
"pattern": "^[{(]?[0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}[)}]?$"
},
"x-ms-version": {
"type": "string",
"description": "Specifies the version of the operation to use for this request."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/StorageError"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "The error code."
}
}
}
}
}
}
},
"definitions": {
"AccountResourceType": {
"type": "string",
"description": "The value must be \"account\" for all account operations.",
"enum": [
"account"
],
"x-ms-enum": {
"name": "AccountResourceType",
"modelAsString": false,
"values": [
{
"name": "account",
"value": "account",
"description": "The account resource type."
}
]
}
},
"AclFailedEntry": {
"type": "object",
"description": "An ACL failed entry.",
"properties": {
"name": {
"type": "string",
"description": "The name of the entry."
},
"type": {
"type": "string",
"description": "The type of the entry."
},
"errorMessage": {
"type": "string",
"description": "The error message."
}
}
},
"Azure.Core.eTag": {
"type": "string",
"description": "The ETag (or entity tag) HTTP response header is an identifier for a specific version of a resource.\nIt lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content was not changed.\n\nIt is a string of ASCII characters placed between double quotes, like \"675af34563dc-tr34\".",
"xml": {
"name": "eTag"
}
},
"BlobHierarchyListSegment": {
"type": "object",
"description": "A segment of blob hierarchy items.",
"properties": {
"blobPrefixes": {
"type": "array",
"description": "The blob prefixes.",
"items": {
"$ref": "#/definitions/BlobPrefix"
},
"xml": {
"name": "BlobPrefix",
"wrapped": false
}
},
"blobItems": {
"type": "array",
"description": "The blob items.",
"items": {
"$ref": "#/definitions/BlobItem"
},
"xml": {
"name": "Blob",
"wrapped": false
}
}
},
"required": [
"blobItems"
],
"xml": {
"name": "Blobs"
}
},
"BlobItem": {
"type": "object",
"description": "An Azure Storage blob.",
"properties": {
"name": {
"type": "string",
"description": "The blob name.",
"xml": {
"name": "Name"
}
},
"deleted": {
"type": "boolean",
"description": "Whether the blob is deleted.",
"xml": {
"name": "Deleted"
}
},
"snapshot": {
"type": "string",
"description": "The snapshot.",
"xml": {
"name": "Snapshot"
}
},
"versionId": {
"type": "string",
"description": "The version ID.",
"xml": {
"name": "VersionId"
}
},
"isCurrentVersion": {
"type": "boolean",
"description": "Whether this is the current version.",
"xml": {
"name": "IsCurrentVersion"
}
},
"properties": {
"$ref": "#/definitions/BlobPropertiesInternal",
"description": "The blob properties.",
"xml": {
"name": "Properties"
}
},
"deletionId": {
"type": "string",
"description": "The deletion ID.",
"xml": {
"name": "DeletionId"
}
}
},
"required": [
"name",
"deleted",
"snapshot",
"properties"
],
"xml": {
"name": "Blob"
}
},
"BlobPrefix": {
"type": "object",
"description": "A blob prefix.",
"properties": {
"name": {
"type": "string",
"description": "The prefix name.",
"xml": {
"name": "Name"
}
}
},
"required": [
"name"
]
},
"BlobPropertiesInternal": {
"type": "object",
"description": "Properties of a blob.",
"properties": {
"creationTime": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The creation time.",
"xml": {
"name": "Creation-Time"
}
},
"lastModified": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The last modified time.",
"xml": {
"name": "Last-Modified"
}
},
"etag": {
"$ref": "#/definitions/Azure.Core.eTag",
"description": "The entity tag.",
"xml": {
"name": "Etag"
}
},
"contentLength": {
"type": "integer",
"format": "int64",
"description": "Size in bytes.",
"xml": {
"name": "Content-Length"
}
},
"contentType": {
"type": "string",
"description": "The content type.",
"xml": {
"name": "Content-Type"
}
},
"contentEncoding": {
"type": "string",
"description": "The content encoding.",
"xml": {
"name": "Content-Encoding"
}
},
"contentLanguage": {
"type": "string",
"description": "The content language.",
"xml": {
"name": "Content-Language"
}
},
"contentMd5": {
"type": "string",
"format": "byte",
"description": "The content MD5 hash.",
"xml": {
"name": "Content-MD5"
}
},
"contentDisposition": {
"type": "string",
"description": "The content disposition.",
"xml": {
"name": "Content-Disposition"
}
},
"cacheControl": {
"type": "string",
"description": "The cache control.",
"xml": {
"name": "Cache-Control"
}
},
"blobSequenceNumber": {
"type": "integer",
"format": "int64",
"description": "The blob sequence number.",
"xml": {
"name": "x-ms-blob-sequence-number"
}
},
"copyId": {
"type": "string",
"description": "The copy ID.",
"xml": {
"name": "CopyId"
}
},
"copySource": {
"type": "string",
"description": "The copy source.",
"xml": {
"name": "CopySource"
}
},
"copyProgress": {
"type": "string",
"description": "The copy progress.",
"xml": {
"name": "CopyProgress"
}
},
"copyCompletionTime": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The copy completion time.",
"xml": {
"name": "CopyCompletionTime"
}
},
"copyStatusDescription": {
"type": "string",
"description": "The copy status description.",
"xml": {
"name": "CopyStatusDescription"
}
},
"serverEncrypted": {
"type": "boolean",
"description": "Whether the server is encrypted.",
"xml": {
"name": "ServerEncrypted"
}
},
"incrementalCopy": {
"type": "boolean",
"description": "Whether it is an incremental copy.",
"xml": {
"name": "IncrementalCopy"
}
},
"destinationSnapshot": {
"type": "string",
"description": "The destination snapshot.",
"xml": {
"name": "DestinationSnapshot"
}
},
"deletedTime": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The deleted time.",
"xml": {
"name": "DeletedTime"
}
},
"remainingRetentionDays": {
"type": "integer",
"format": "int32",
"description": "The remaining retention days.",
"xml": {
"name": "RemainingRetentionDays"
}
},
"accessTierInferred": {
"type": "boolean",
"description": "Whether the access tier is inferred.",
"xml": {
"name": "AccessTierInferred"
}
},
"customerProvidedKeySha256": {
"type": "string",
"description": "The customer-provided key SHA256 hash.",
"xml": {
"name": "CustomerProvidedKeySha256"
}
},
"encryptionScope": {
"type": "string",
"description": "The name of the encryption scope under which the blob is encrypted.",
"xml": {
"name": "EncryptionScope"
}
},
"accessTierChangeTime": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The access tier change time.",
"xml": {
"name": "AccessTierChangeTime"
}
},
"tagCount": {
"type": "integer",
"format": "int32",
"description": "The tag count.",
"xml": {
"name": "TagCount"
}
},
"expiresOn": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The expiry time.",
"xml": {
"name": "Expiry-Time"
}
},
"isSealed": {
"type": "boolean",
"description": "Whether the blob is sealed.",
"xml": {
"name": "Sealed"
}
},
"lastAccessedOn": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The last accessed time.",
"xml": {
"name": "LastAccessTime"
}
},
"deleteTime": {
"type": "string",
"format": "date-time-rfc7231",
"description": "The delete time.",
"xml": {
"name": "DeleteTime"
}
}
},
"required": [
"lastModified",
"etag"
],
"xml": {
"name": "Properties"
}
},
"EncryptionAlgorithmType": {
"type": "string",
"description": "The encryption algorithm type.",
"enum": [
"AES256"
],
"x-ms-enum": {
"name": "EncryptionAlgorithmType",
"modelAsString": false,
"values": [
{
"name": "AES256",
"value": "AES256",
"description": "The AES256 encryption algorithm."
}
]
}
},
"FileSystemItem": {
"type": "object",
"description": "Represents a filesystem.",
"properties": {
"name": {
"type": "string",
"description": "The filesystem name."
},
"lastModified": {
"type": "string",
"description": "The last modified time."
},
"eTag": {
"$ref": "#/definitions/Azure.Core.eTag",
"description": "The entity tag."
}
}
},
"FileSystemList": {
"type": "object",
"description": "A list of filesystems.",
"properties": {
"filesystems": {
"type": "array",
"description": "The list of filesystems.",
"items": {
"$ref": "#/definitions/FileSystemItem"
},
"xml": {
"wrapped": true
}
}
}
},
"FileSystemResourceType": {
"type": "string",
"description": "The value must be \"filesystem\" for all filesystem operations.",
"enum": [
"filesystem"
],
"x-ms-enum": {
"name": "FileSystemResourceType",
"modelAsString": false,
"values": [
{
"name": "filesystem",
"value": "filesystem",
"description": "The filesystem resource type."
}
]
}
},
"LeaseAction": {
"type": "string",
"description": "The lease action for append and flush operations.",
"enum": [
"acquire",
"auto-renew",
"release",
"acquire-release"
],
"x-ms-enum": {
"name": "LeaseAction",
"modelAsString": false,
"values": [
{
"name": "acquire",
"value": "acquire",
"description": "Acquire a lease."
},
{
"name": "auto-renew",
"value": "auto-renew",
"description": "Auto-renew the lease."
},
{
"name": "release",
"value": "release",
"description": "Release the lease only on flush."
},
{
"name": "acquire-release",
"value": "acquire-release",
"description": "Acquire, complete the operation, and release the lease."
}
]
}
},
"ListBlobsHierarchySegmentResponse": {
"type": "object",
"description": "An enumeration of blobs.",
"properties": {
"serviceEndpoint": {
"type": "string",
"description": "The service endpoint.",
"xml": {
"name": "ServiceEndpoint",
"attribute": true
}
},
"containerName": {
"type": "string",
"description": "The container name.",
"xml": {
"name": "ContainerName",
"attribute": true
}
},
"prefix": {
"type": "string",
"description": "The prefix filter.",
"xml": {
"name": "Prefix"
}
},
"marker": {
"type": "string",
"description": "The marker for pagination.",
"xml": {
"name": "Marker"
}
},
"maxResults": {
"type": "integer",
"format": "int32",
"description": "The maximum number of results.",
"xml": {
"name": "MaxResults"
}
},
"delimiter": {
"type": "string",
"description": "The delimiter used for hierarchy.",
"xml": {
"name": "Delimiter"
}
},
"segment": {
"$ref": "#/definitions/BlobHierarchyListSegment",
"description": "The blob segment.",
"xml": {
"name": "Blobs"
}
},
"nextMarker": {
"type": "string",
"description": "The next marker for pagination.",
"xml": {
"name": "NextMarker"
}
}
},
"required": [
"serviceEndpoint",
"containerName",
"segment"
],
"xml": {
"name": "EnumerationResults"
}
},
"ListBlobsIncludeItem": {
"type": "string",
"description": "Include this parameter to specify one or more datasets to include in the response.",
"enum": [
"copy",
"deleted",
"metadata",
"snapshots",
"uncommittedblobs",
"versions",
"tags"
],
"x-ms-enum": {
"name": "ListBlobsIncludeItem",
"modelAsString": false,
"values": [
{
"name": "copy",
"value": "copy",
"description": "Include copy information."
},
{
"name": "deleted",
"value": "deleted",
"description": "Include deleted blobs."
},
{
"name": "metadata",
"value": "metadata",
"description": "Include metadata."
},
{
"name": "snapshots",
"value": "snapshots",
"description": "Include snapshots."
},
{
"name": "uncommittedblobs",
"value": "uncommittedblobs",
"description": "Include uncommitted blobs."
},
{
"name": "versions",
"value": "versions",
"description": "Include versions."
},
{
"name": "tags",
"value": "tags",
"description": "Include tags."
}
]
}
},
"ListBlobsShowOnly": {
"type": "string",
"description": "The show only filter for list blobs.",
"enum": [
"deleted"
],
"x-ms-enum": {
"name": "ListBlobsShowOnly",
"modelAsString": false,
"values": [
{
"name": "deleted",
"value": "deleted",
"description": "Show only deleted blobs."
}
]
}
},
"PathExpiryOptions": {
"type": "string",
"description": "The path expiry options.",
"enum": [
"NeverExpire",
"RelativeToCreation",
"RelativeToNow",
"Absolute"
],
"x-ms-enum": {
"name": "PathExpiryOptions",
"modelAsString": true,
"values": [
{
"name": "NeverExpire",
"value": "NeverExpire",
"description": "Never expire."
},
{
"name": "RelativeToCreation",
"value": "RelativeToCreation",
"description": "Relative to creation time."
},
{
"name": "RelativeToNow",
"value": "RelativeToNow",
"description": "Relative to now."
},
{
"name": "Absolute",
"value": "Absolute",
"description": "Absolute time."
}
]
}
},
"PathGetPropertiesAction": {
"type": "string",
"description": "The action for Path_GetProperties.",
"enum": [
"getAccessControl",
"getStatus"
],
"x-ms-enum": {
"name": "PathGetPropertiesAction",
"modelAsString": false,
"values": [
{
"name": "getAccessControl",
"value": "getAccessControl",
"description": "Get access control list."
},
{
"name": "getStatus",
"value": "getStatus",
"description": "Get status."
}
]
}
},
"PathItem": {
"type": "object",
"description": "Represents a path in a filesystem.",
"properties": {
"name": {
"type": "string",
"description": "The path name."
},
"isDirectory": {
"type": "boolean",
"description": "Whether the path is a directory.",
"default": false
},
"lastModified": {
"type": "string",
"description": "The last modified time."
},
"eTag": {
"$ref": "#/definitions/Azure.Core.eTag",
"description": "The entity tag."
},
"contentLength": {
"type": "integer",
"format": "int64",
"description": "The content length."
},
"owner": {
"type": "string",
"description": "The owner of the path."
},
"group": {
"type": "string",
"description": "The owning group of the path."
},
"permissions": {
"type": "string",
"description": "The POSIX access permissions."
},
"EncryptionScope": {
"type": "string",
"description": "The name of the encryption scope under which the blob is encrypted.",
"xml": {
"name": "encryptionScope"
},
"x-ms-client-name": "encryptionScope"
},
"creationTime": {
"type": "string",
"description": "The creation time."
},
"expiryTime": {
"type": "string",
"description": "The expiry time."
},
"EncryptionContext": {
"type": "string",
"description": "The encryption context.",
"xml": {
"name": "encryptionContext"
},
"x-ms-client-name": "encryptionContext"
}
}
},
"PathLeaseAction": {
"type": "string",
"description": "The lease action for Path_Lease.",
"enum": [
"acquire",
"break",
"change",
"renew",
"release"
],
"x-ms-enum": {
"name": "PathLeaseAction",
"modelAsString": false,
"values": [
{
"name": "acquire",
"value": "acquire",
"description": "Acquire a new lease."
},
{
"name": "break",
"value": "break",
"description": "Break an existing lease."
},
{
"name": "change",
"value": "change",
"description": "Change the lease ID of an active lease."
},
{
"name": "renew",
"value": "renew",
"description": "Renew an existing lease."
},
{
"name": "release",
"value": "release",
"description": "Release a lease."
}
]
}
},
"PathList": {
"type": "object",
"description": "A list of paths.",
"properties": {
"paths": {
"type": "array",
"description": "The list of paths.",
"items": {
"$ref": "#/definitions/PathItem"
},
"xml": {
"wrapped": true
}
}
}
},
"PathRenameMode": {
"type": "string",
"description": "The rename mode. The value must be \"legacy\" or \"posix\".",
"enum": [
"legacy",
"posix"
],
"x-ms-enum": {
"name": "PathRenameMode",
"modelAsString": false,
"values": [
{
"name": "legacy",
"value": "legacy",
"description": "Legacy rename mode."
},
{
"name": "posix",
"value": "posix",
"description": "POSIX rename mode."
}
]
}
},
"PathResourceType": {
"type": "string",
"description": "Required only for Create File and Create Directory. The value must be \"file\" or \"directory\".",
"enum": [
"directory",
"file"
],
"x-ms-enum": {
"name": "PathResourceType",
"modelAsString": false,
"values": [
{
"name": "directory",
"value": "directory",
"description": "A directory resource type."
},
{
"name": "file",
"value": "file",
"description": "A file resource type."
}
]
}
},
"PathSetAccessControlRecursiveMode": {
"type": "string",
"description": "The mode for recursive access control operations.",
"enum": [
"set",
"modify",
"remove"
],
"x-ms-enum": {
"name": "PathSetAccessControlRecursiveMode",
"modelAsString": false,
"values": [
{
"name": "set",
"value": "set",
"description": "Set POSIX access control rights."
},
{
"name": "modify",
"value": "modify",
"description": "Modify POSIX access control rights."
},
{
"name": "remove",
"value": "remove",
"description": "Remove POSIX access control rights."
}
]
}
},
"PathUpdateAction": {
"type": "string",
"description": "The action to perform on the path during update.",
"enum": [
"append",
"flush",
"setProperties",
"setAccessControl",
"setAccessControlRecursive"
],
"x-ms-enum": {
"name": "PathUpdateAction",
"modelAsString": false,
"values": [
{
"name": "append",
"value": "append",
"description": "Append data to the file."
},
{
"name": "flush",
"value": "flush",
"description": "Flush previously uploaded data to a file."
},
{
"name": "setProperties",
"value": "setProperties",
"description": "Set the properties of a file or directory."
},
{
"name": "setAccessControl",
"value": "setAccessControl",
"description": "Set the access control for a file or directory."
},
{
"name": "setAccessControlRecursive",
"value": "setAccessControlRecursive",
"description": "Set the access control list for a directory recursively."
}
]
}
},
"SetAccessControlRecursiveResponse": {
"type": "object",
"description": "The response for set access control recursive operations.",
"properties": {
"directoriesSuccessful": {
"type": "integer",
"format": "int32",
"description": "The number of directories successfully processed."
},
"filesSuccessful": {
"type": "integer",
"format": "int32",
"description": "The number of files successfully processed."
},
"failureCount": {
"type": "integer",
"format": "int32",
"description": "The number of failures."
},
"failedEntries": {
"type": "array",
"description": "The list of failed entries.",
"items": {
"$ref": "#/definitions/AclFailedEntry"
},
"xml": {
"wrapped": true
}
}
}
},
"StorageError": {
"type": "object",
"description": "The storage error response.",
"properties": {
"error": {
"$ref": "#/definitions/StorageErrorBody",
"description": "The service error response object."
}
}
},
"StorageErrorBody": {
"type": "object",
"description": "The service error response body.",
"properties": {
"code": {
"type": "string",
"description": "The service error code.",
"xml": {
"name": "Code"
}
},
"message": {
"type": "string",
"description": "The service error message.",
"xml": {
"name": "Message"
}
}
}
}
},
"parameters": {}
}