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

Query for image deletion #121

Open
rjschwei opened this issue Jul 11, 2022 · 2 comments
Open

Query for image deletion #121

rjschwei opened this issue Jul 11, 2022 · 2 comments
Assignees

Comments

@rjschwei
Copy link
Contributor

Our image deletion date is defined as deprecation-date + 6 months. We have a user of the API that is interested in being able to query the expected deletion date. For this we have 2 use cases

1.) Receive a list of all images to be deleted on or before a given date

  • The user must be able to filter this result set by framework and region

2.) Get the expected deletion date for a given image name

@rtamalin
Copy link
Contributor

We identified the follow new V1 API requests:

  • /v1/images/deletedby/{date}
  • /v1/{provider}/images/deletedby/{date}
  • /v1/{provider}/{region}/images/deletedby/{date}
  • /v1/{provider}/images/deletiondate/{image}
  • /v1/{provider}/{region}/images/deletiondate/{image}

For the provider specific deletedby API requests the result will be a list, possibly empty, of images that will be marked as deleted by the specified date, with the results looking similar to the existing provider image list queries.

For the provider specific deletiondate API requests the result with be a deletion date value, which may be empty if the specified image couldn't be found, or the image is not yet marked as deprecated.

The global images deletedby query is a little different; the result will be a list of providers, and for each provider there will be a potentially empty list of images that will be marked as deleted by the specified date. The XML result of such a query should look similar to:

<providers>
  <provider name="alibaba"/>
  <provider name="amazon"/>
  <provider name="google">
    <images>
      <image deletedon="".../>
      <image deletedon="".../>
    </images>
  </provider>
  <provider name="microsoft">
    <images>
      <image deletedon="".../>
      <image deletedon="".../>
    </images>
  </provider>
  <provider name="oracle"/>
</providers>

@rtamalin
Copy link
Contributor

Changes landed in #123 implement the provider specific deletedby and deletiondate requests.

The global deletedby request will be implemented in a follow on submission.

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

2 participants