Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. James.McAllister_0459

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    J Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0

    James.McAllister_0459

    @James.McAllister_0459

    0
    Reputation
    14
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    James.McAllister_0459 Unfollow Follow

    Latest posts made by James.McAllister_0459

    • RE: deleting docker images via REST API

      @James-McAllister_0459 said in deleting docker images via REST API:

      Invoke-RestMethod

      With that help i can now delete when i enter a digest. I had to switch to using Invoke-WebRequest rather than Invoke-RestMethod to get the response headers so i actually get the correct digest (read the docs again :-)

      Is there any way to get the published date or created date of the image from a REST api?

      I can see i could get it from the database and a join between the DockerImages and DockerImageTags tables.

      posted in Support
      J
      James.McAllister_0459
    • deleting docker images via REST API

      I am trying to use a PowerShell script to experiment with deleting docker images using the recently introduced REST API. When i issue the delete operation it returns a 401 error. I thus am assumed i needed to pass an API key. So i generated one with all permissions (overkill but it wasn't obvious which specific ones would apply). I passed that as a header and there was no change.

      The Uri value is the same one i used on a GET which returned the info on the image (config. digest, image layers etc)

      Invoke-RestMethod -Method DELETE -Uri https://MyServer/v2/Main/bhge/dcfr-microservices/manifests/280307 -ErrorVariable RestError -ErrorAction SilentlyContinue

      then went to

      Invoke-RestMethod -Method DELETE -Uri https://MyServer/v2/Main/bhge/dcfr-microservices/manifests/280307 -Headers @{"X-ApiKey" = "DdRBo6_mbzH80XEpXSfz" } -ErrorVariable RestError -ErrorAction SilentlyContinue

      i also tried a few other permutations but all end up with 401 errors.

      How should I really be doing this?

      posted in Support
      J
      James.McAllister_0459