-
Notifications
You must be signed in to change notification settings - Fork 54
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
DataProtection / API Version 2023-05-01 deletedbackupinstances.UndeleteThenPoll fails with 404 after the item gets undeleted #886
Comments
Presumably this is a duplicate of #740? |
I don't believe so. The issue you linked is on first poll. This one is when the operation succeeds. UnDelete seems to just be a Delete |
@mbfrahry if you've got them handy, mind posting the Request/Responses? |
Here is the Request
And the response
And then we do a Get:
And that returns
So I guess that does make it like the other issue 🤔 except we aren't waiting for it to be created as subsequent Get calls will always return resource not found since it's moved from |
tl;dr 404 should be treated as success for UndeleteThenPoll |
Ah fun, so it appears to be a Delete LRO masquerading as Regular LRO? We'll likely need to update the Regular vs Delete LRO logic to check if the URI contains |
Is there an existing issue for this?
Community Note
Service Used
Data Protection
API Versions Used
2023-05-01
Description
I am running UndeleteThenPoll and it looks like the command errors with 404 after the specified item is undeleted.
I believe that 404 should actually be our success trigger for when the Undelete finishes as the item no longer exists in that
deletedbackupinstances
api and should now show up in thebackupinstances
api.References
No response
The text was updated successfully, but these errors were encountered: