Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. hashim.abu-gellban_3562
    H
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    hashim.abu-gellban_3562

    @hashim.abu-gellban_3562

    1
    Reputation
    13
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    hashim.abu-gellban_3562 Follow

    Best posts made by hashim.abu-gellban_3562

    • RE: Download/ upload a NuGet package using cmd with ProGet Key or Username/ password

      Hi Alana,

      I found the issue of the url provided from the former forum. It should be "nuget" instead of "feeds", as follows:
      $url = "https://myprogetserver/nuget/mynuggets/package/mypackage/1.0.0"

      The complete PowerShell is as follows:

      $user = 'api'
      $pass = 'abcdefg12345'
      $pair = "$($user):$($pass)"
      $encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($pair))
      $basicAuthValue = "Basic $encodedCreds"
      $Headers = @{
          Authorization = $basicAuthValue
      }
      
      $url = "https://myprogetserver/nuget/mynuggets/package/mypackage/1.0.0"
      $destination = "c:\mypackages\mypackage-1.0.0.zip"
      Invoke-WebRequest -Uri $url -OutFile $destination -Headers $Headers
      

      Thanks,
      Hashim

      posted in Support
      H
      hashim.abu-gellban_3562

    Latest posts made by hashim.abu-gellban_3562

    • RE: Download/ upload a NuGet package using cmd with ProGet Key or Username/ password

      Hi Alana,

      I found the issue of the url provided from the former forum. It should be "nuget" instead of "feeds", as follows:
      $url = "https://myprogetserver/nuget/mynuggets/package/mypackage/1.0.0"

      The complete PowerShell is as follows:

      $user = 'api'
      $pass = 'abcdefg12345'
      $pair = "$($user):$($pass)"
      $encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($pair))
      $basicAuthValue = "Basic $encodedCreds"
      $Headers = @{
          Authorization = $basicAuthValue
      }
      
      $url = "https://myprogetserver/nuget/mynuggets/package/mypackage/1.0.0"
      $destination = "c:\mypackages\mypackage-1.0.0.zip"
      Invoke-WebRequest -Uri $url -OutFile $destination -Headers $Headers
      

      Thanks,
      Hashim

      posted in Support
      H
      hashim.abu-gellban_3562
    • RE: Download/ upload a NuGet package using cmd with ProGet Key or Username/ password

      The Following is the reply from Steve https://forums.inedo.com/topic/3956/download-a-nuget-package-using-cmd/2?_=1710614207806

      I see a few issues here...

      First, the URL you're using is not correct; the easiest way to to find the url by clicking the "download package link" in the ProGet UI. It will look like this: /nuget/your-feed-name/package/your-package-name/your-version-number

      Second, you're downloading a file - so you want to use a powershell command like this:

      $url = "https://myprogetserver/feeds/mynuggets/package/mypackage/1.0.0"
      $destination = "c:\mypackages\mypackage-1.0.0.zip"
      Invoke-WebRequest -Uri $url -OutFile $destination
      Best,
      Steve

      I tried api/{your-key} but it did not work.
      $url = "https://myprogetserver/feeds/mynuggets/package/mypackage/1.0.0/mykey"
      $destination = "c:\mypackages\mypackage-1.0.0.zip"
      Invoke-WebRequest -Uri $url -OutFile $destination

      I would like to download the package as mypackage.zip file. I do not need to install it.
      Is this correct? "https://myprogetserver/feeds/mynuggets/package/mypackage/1.0.0/mykey"

      Thanks,
      Hashim

      posted in Support
      H
      hashim.abu-gellban_3562
    • Download/ upload a NuGet package using cmd with ProGet Key or Username/ password

      Re: Download a NuGet package using cmd

      Q1: How can I pass the API key or username and password using the example provided of my old forum?

      Q2: How can I upload a NuGet package to a ProGet feed using similar API?

      Can you provide me with PowerShell script for that as in the referenced in my old forum?

      posted in Support
      H
      hashim.abu-gellban_3562
    • RE: What is SAML Identifier

      @atripp Thank you!

      posted in Support
      H
      hashim.abu-gellban_3562
    • What is SAML Identifier

      I am following the link: https://docs.inedo.com/docs/various-saml-azure-ad

      Configuration Azure AD (Microsoft Entra ID) > 5/b/i: Click "Add Identifier" and enter an identifier (e.g proget-saml)

      My Question is: What is the Identifier? How can I get it from ProGet? Or it can be any unique number. Can you help us?

      posted in Support
      H
      hashim.abu-gellban_3562
    • Download a NuGet package using cmd

      I followed "https://docs.inedo.com/docs/proget-feeds-nuget" to download the package as follows:

      #https://«proget-server»/«feed-name»/«packageName»/«versionNumber[optional]»
      $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
      $headers.Add("X-ApiKey", "xyz")

      $response = Invoke-RestMethod 'https://ip:port/feedname/nuget-paclkage-name/version' -Method 'GET' -Headers $headers
      $response | ConvertTo-Json

      I got the error:
      Invoke-RestMethod :
      Not Found

      My question, how can I download a NuGet package as file (e.g., zip)?

      posted in Support
      H
      hashim.abu-gellban_3562
    • RE: ProGet API to get the operating systems of all Docker images

      @dean-houston said in ProGet API to get the operating systems of all Docker images:

      curl -X GET https://proget-url/v2/feedName/repositoryName/tags/list

      Thank you for your help!

      I passed X-ApiKey to the API Key Authorization in Postman, but I got the following error:

      "errors": [
          {
              "code": "UNAUTHORIZED",
              "message": "Anonymous is not permitted to perform the Feeds_ViewFeed task for the                 current scope.",
          ...
          }
      

      ]

      What should I pass for authorization?

      posted in Support
      H
      hashim.abu-gellban_3562
    • ProGet API to get the operating systems of all Docker images

      Hi All,

      I used the API (/api/json/DockerImages_GetTags) to get all Docker images and their properties. However, I could not find any API that can get the Docker images' OSs (Windows/ Linux). Can you provide me with the API that get the OSs of docker images?

      posted in Support
      H
      hashim.abu-gellban_3562
    • RE: Clair: VulnerabilitySource

      Thank you! The Clair Docker container is running.

      In the documentation there is the following step:
      Once you have created a vulnerability source, you will then need to add that vulnerability source to your container registry. You would do that by clicking Manage Registry in your container registry, and clicking the Add button on vulnerability sources

      I cannot find the Manage Registry/ Container registry. Can you help?

      posted in Support
      H
      hashim.abu-gellban_3562