WorkflowsΒΆ
If you have not yet installed the Python plugins on your Pulp installation, please follow our User Setup. These documents will assume you have the environment installed and ready to go.
The REST API examples here use httpie to perform the requests.
The httpie
commands below assume that the user executing the commands has a .netrc
file
in the home directory. The .netrc
should have the following configuration:
machine localhost
login admin
password admin
If you configured the admin
user with a different password, adjust the configuration
accordingly. If you prefer to specify the username and password with each request, please see
httpie
documentation on how to do that.
To make these workflows copy/pastable, we make use of environment variables. The first variable to set is the hostname and port:
$ export BASE_ADDR=http://<hostname>:8000
This documentation makes use of the jq library to parse the json received from requests, in order to get the unique urls generated when objects are created. To follow this documentation as-is please install the jq library with:
$ sudo dnf install jq