From a88a0ac391e6712be9cb30ef5d18d254c5be0e59 Mon Sep 17 00:00:00 2001 From: "Christian.Kaps" Date: Wed, 7 Jul 2021 11:09:58 +0200 Subject: [PATCH] Add doc for blob storage metadata retrieval --- .../supported-bindings/blobstorage.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/daprdocs/content/en/reference/components-reference/supported-bindings/blobstorage.md b/daprdocs/content/en/reference/components-reference/supported-bindings/blobstorage.md index 08dace1a0..35c17abc4 100644 --- a/daprdocs/content/en/reference/components-reference/supported-bindings/blobstorage.md +++ b/daprdocs/content/en/reference/components-reference/supported-bindings/blobstorage.md @@ -174,11 +174,17 @@ To perform a get blob operation, invoke the Azure Blob Storage binding with a `P { "operation": "get", "metadata": { - "blobName": "myblob" + "blobName": "myblob", + "withUserMetadata": "true" } } ``` +The metadata parameters are: + +- `blobName` - the name of the blob +- `withUserMetadata`- (optional) defines if the user metadata should be returned or not, defaults to: false + #### Example {{< tabs Windows Linux >}} @@ -200,7 +206,10 @@ To perform a get blob operation, invoke the Azure Blob Storage binding with a `P #### Response -The response body contains the value stored in the blob object. +The response body contains the value stored in the blob object. If enabled, the user defined metadata will be returned as HTTP headers in the form: + +`Metadata.key1: value1` +`Metadata.key2: value2` ### Delete blob @@ -215,6 +224,10 @@ To perform a delete blob operation, invoke the Azure Blob Storage binding with a } ``` +The metadata parameters are: + +- `blobName` - the name of the blob + #### Examples ##### Delete blob