CloudBlobContainer.GetUserDelegationSharedAccessSignature(UserDelegationKey, SharedAccessBlobPolicy, SharedAccessBlobHeaders, Nullable<SharedAccessProtocol>, IPAddressOrRange) Method

Definition

Returns an user-delegation-based shared access signature for the container, with credentials solely based on the UserDelegationKey provided.

public string GetUserDelegationSharedAccessSignature (Microsoft.Azure.Storage.UserDelegationKey delegationKey, Microsoft.Azure.Storage.Blob.SharedAccessBlobPolicy policy, Microsoft.Azure.Storage.Blob.SharedAccessBlobHeaders headers = null, Nullable<Microsoft.Azure.Storage.SharedAccessProtocol> protocols = null, Microsoft.Azure.Storage.IPAddressOrRange ipAddressOrRange = null);
member this.GetUserDelegationSharedAccessSignature : Microsoft.Azure.Storage.UserDelegationKey * Microsoft.Azure.Storage.Blob.SharedAccessBlobPolicy * Microsoft.Azure.Storage.Blob.SharedAccessBlobHeaders * Nullable<Microsoft.Azure.Storage.SharedAccessProtocol> * Microsoft.Azure.Storage.IPAddressOrRange -> string

Parameters

delegationKey
UserDelegationKey

UserDelegationKey for signing this SAS token.

policy
SharedAccessBlobPolicy

A SharedAccessBlobPolicy object specifying the access policy for the shared access signature.

headers
SharedAccessBlobHeaders

A SharedAccessBlobHeaders object specifying optional header values to set for a blob container accessed with this SAS.

protocols
Nullable<SharedAccessProtocol>

The allowed protocols (https only, or http and https). Null if you don't want to restrict protocol.

ipAddressOrRange
IPAddressOrRange

The allowed IP address or IP address range. Null if you don't want to restrict based on IP address.

Returns

Applies to