I have an azcopy.exe command that I copied out of MS Azure Storage Explorer in order to use in a script. The command works perfectly, but I want to understand the querystring parameters that are being used.
?sv=2020-04-08&se=2021-10-29T15:07:01Z&sr=c&sp=rwl
I understand that sv
is signed version which I found in Versioning for the Azure Storage services and that section references the other parameters but I haven't been able to locate the actual docs.
I suspect that I'm close to it, but need some help.
CodePudding user response:
You can find information about SAS querystring parameters here: https://docs.microsoft.com/en-us/rest/api/storageservices/create-service-sas.
To specifically answer your question:
- sv: This is the storage REST API version.
- se: This is the date/time value in UTC when your SAS URL will expire.
- sr: This is the signed resource type. In your context,
sr=c
means that SAS token is acquired for a blob container. - sp: These are the permissions included in your SAS token. Currently your signed permissions include
(r)ead
,(w)rite
and(l)ist
permissions.