[Bug Report] Get Properties Requests Don't Allow the Action Query Parameter #24009
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Storage
Storage Service (Queues, Blobs, Files)
Bug Report
The current file/directory clients in the storage sdk have
GetProperties
implemented, but there's no way to pass through theaction
parameter of the query mentioned in the rest API: https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/get-properties?view=rest-storageservices-datalakestoragegen2-2019-12-12https://github.com/Azure/azure-sdk-for-go/blob/sdk/storage/azdatalake/v1.3.0/sdk/storage/azdatalake/directory/client.go#L277
If you look at the GetPropertiesOptions parameter, there's no way to pass through
action
, and there's no other parameter to get the query values for the request.Reason:
I'm working with adding customer managed encryption keys to a bucket. To support the possibility of the encryption key being rotated, I need to have
x-ms-encryption-context
set on each directory/file that I create. However, in the event of a key rotation, I won't have a valid key value to pass through for theGetProperties
request (the flow I'm trying to achieve is that to rotate the keys, I'll first fetch thex-ms-encryption-context
value associated with the blob usingGetProperties
withaction=getStatus
, however the current SDK implementation doesn't support this).The text was updated successfully, but these errors were encountered: