Skip to content

Instantly share code, notes, and snippets.

@parthaa
Last active January 20, 2023 19:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parthaa/1e6d0c03aa541f7354c22c5d204a5fe2 to your computer and use it in GitHub Desktop.
Save parthaa/1e6d0c03aa541f7354c22c5d204a5fe2 to your computer and use it in GitHub Desktop.
#!/bin/bash
curl --cert /home/vagrant/foreman-certs/client_cert.pem --key /home/vagrant/foreman-certs/client_key.pem https://`hostname`/$*
@parthaa
Copy link
Author

parthaa commented Sep 1, 2021

usage

$ purl /pulp/api/v3/repositories/file/file/a626814c-2029-457b-8740-e4436c315845/versions/0/|jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   322  100   322    0     0   1859      0 --:--:-- --:--:-- --:--:--  1861
{
  "pulp_href": "/pulp/api/v3/repositories/file/file/a626814c-2029-457b-8740-e4436c315845/versions/0/",
  "pulp_created": "2021-09-01T19:13:54.682366Z",
  "number": 0,
  "repository": "/pulp/api/v3/repositories/file/file/a626814c-2029-457b-8740-e4436c315845/",
  "base_version": null,
  "content_summary": {
    "added": {},
    "removed": {},
    "present": {}
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment