Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/storage/put blob from url #11197

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4804,6 +4804,205 @@
}
]
},
"/{containerName}/{blob}?BlockBlob&fromUrl": {
"put": {
"tags": [
"blob"
],
"operationId": "BlockBlob_PutBlobFromUrl",
"description": "The Put Blob from URL operation creates a new Block Blob where the contents of the blob are read from a given URL. This API is supported beginning with the 2020-04-08 version. Partial updates are not supported with Put Blob from URL; the content of an existing blob is overwritten with the content of the new blob. To perform partial updates to a block blob’s contents using a source URL, use the Put Block from URL API in conjunction with Put Block List.",
"consumes": [
"application/octet-stream"
],
"parameters": [
{
"$ref": "#/parameters/Timeout"
},
{
"$ref": "#/parameters/ContentMD5"
},
{
"$ref": "#/parameters/ContentLength"
},
{
"$ref": "#/parameters/BlobContentType"
},
{
"$ref": "#/parameters/BlobContentEncoding"
},
{
"$ref": "#/parameters/BlobContentLanguage"
},
{
"$ref": "#/parameters/BlobContentMD5"
},
{
"$ref": "#/parameters/BlobCacheControl"
},
{
"$ref": "#/parameters/Metadata"
},
{
"$ref": "#/parameters/LeaseIdOptional"
},
{
"$ref": "#/parameters/BlobContentDisposition"
},
{
"$ref": "#/parameters/EncryptionKey"
},
{
"$ref": "#/parameters/EncryptionKeySha256"
},
{
"$ref": "#/parameters/EncryptionAlgorithm"
},
{
"$ref": "#/parameters/EncryptionScope"
},
{
"$ref": "#/parameters/AccessTierOptional"
},
{
"$ref": "#/parameters/IfModifiedSince"
},
{
"$ref": "#/parameters/IfUnmodifiedSince"
},
{
"$ref": "#/parameters/IfMatch"
},
{
"$ref": "#/parameters/IfNoneMatch"
},
{
"$ref": "#/parameters/IfTags"
},
{
"$ref": "#/parameters/SourceIfModifiedSince"
},
{
"$ref": "#/parameters/SourceIfUnmodifiedSince"
},
{
"$ref": "#/parameters/SourceIfMatch"
},
{
"$ref": "#/parameters/SourceIfNoneMatch"
},
{
"$ref": "#/parameters/SourceIfTags"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ClientRequestId"
},
{
"$ref": "#/parameters/BlobTagsHeader"
},
{
"$ref": "#/parameters/CopySource"
},
{
"$ref": "#/parameters/CopySourceBlobProperties"
}
],
"responses": {
"201": {
"description": "The blob was updated.",
"headers": {
"ETag": {
"type": "string",
"format": "etag",
"description": "The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc1123",
"description": "Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob."
},
"Content-MD5": {
"type": "string",
"format": "byte",
"description": "If the blob has an MD5 hash and this operation is to read the full blob, this response header is returned so that the client can check for message content integrity."
},
"x-ms-client-request-id": {
"x-ms-client-name": "ClientRequestId",
"type": "string",
"description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
},
"x-ms-request-id": {
"x-ms-client-name": "RequestId",
"type": "string",
"description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
},
"x-ms-version": {
"x-ms-client-name": "Version",
"type": "string",
"description": "Indicates the version of the Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
},
"x-ms-version-id": {
"x-ms-client-name": "VersionId",
"type": "string",
"description": "A DateTime value returned by the service that uniquely identifies the blob. The value of this header indicates the blob version, and may be used in subsequent requests to access this version of the blob."
},
"Date": {
"type": "string",
"format": "date-time-rfc1123",
"description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
},
"x-ms-request-server-encrypted": {
"x-ms-client-name": "IsServerEncrypted",
"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-encryption-key-sha256": {
"x-ms-client-name": "EncryptionKeySha256",
"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": {
"x-ms-client-name": "EncryptionScope",
"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."
}
}
},
"default": {
"description": "Failure",
"headers": {
"x-ms-error-code": {
"x-ms-client-name": "ErrorCode",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/StorageError"
}
}
}
},
"parameters": [
{
"name": "x-ms-blob-type",
"x-ms-client-name": "blobType",
"in": "header",
"required": true,
"x-ms-parameter-location": "method",
"description": "Specifies the type of blob to create: block blob, page blob, or append blob.",
"type": "string",
"enum": [
"BlockBlob"
],
"x-ms-enum": {
"name": "BlobType",
"modelAsString": false
}
}
]
},
"/{containerName}/{blob}?comp=undelete": {
"put": {
"tags": [
Expand Down Expand Up @@ -11277,6 +11476,15 @@
"x-ms-parameter-location": "method",
"description": "Specifies the name of the source page blob snapshot. This value is a URL of up to 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would appear in a request URI. The source blob must either be public or must be authenticated via a shared access signature."
},
"CopySourceBlobProperties": {
"name": "x-ms-copy-source-blob-properties",
"x-ms-client-name": "copySourceBlobProperties",
"in": "header",
"required": false,
"type": "boolean",
"x-ms-parameter-location": "method",
"description": "Optional, default is true. Indicates if properties from the source blob should be copied."
},
"DeleteSnapshots": {
"name": "x-ms-delete-snapshots",
"x-ms-client-name": "deleteSnapshots",
Expand Down