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

Support for setting expiry on a per blob basis #130

Open
janlimbeck opened this issue Dec 29, 2022 · 1 comment
Open

Support for setting expiry on a per blob basis #130

janlimbeck opened this issue Dec 29, 2022 · 1 comment

Comments

@janlimbeck
Copy link

Is the API to set expiry on a per BLOB basis currently supported? If not are there any plans on adding that functionality?
https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-expiry

@janlimbeck
Copy link
Author

I think I figured it out. Turns out it is as simple as calling:

do_container_op(container, '/testFolder/testFile.zip', options = list(comp = 'expiry') ,
                headers = list('x-ms-expiry-option' = 'RelativeToNow',
                                        'x-ms-expiry-time' = 1000 * 60 * 60), http_verb = 'PUT')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant