Last post talked about the process of adding a v2.0 plugin to a Pulp server. This post will provide an overview of the currently available APIs. These APIs were developed with the focus of a sprint demo, so there are some holes in functionality. There is a story this sprint to revisit these and flush them out (along with correcting some conventions), but for now I wanted to provide a quick list for those interested in playing around with the plugin model.
The APIs can be found after the jump.
Repository Create, Delete, Retrieve, and Configure¶
id – identifies the repository (specified in the URL)
importer_type_id – identifies the type of importer being added; corresponds to the ID of the importer plugin
importer_config – dictionary of configuration values to pass to the importer that will be used only for the given repository; the contents will vary depending on the type of importer being added
id – identifies the repository (specified in the URL)
distributor_type_id – identifies the type of distributor being added; corresponds to the ID of the distributor plugin
distributor_config – dictionary of configuration values to pass to the distributor that will be used only for the given repository; the contents will vary depending on the type of distributor being added
auto_publish – boolean; if true, this distributor will be published at the end of every successful sync; if false, the only way to publish this distributor is through an explicit call
distributor_id – (optional) since more than one distributor may be added to a repository, this is used to uniquely identify the distributor being added; if not specified Pulp will automatically generate one
id – identifies the repository (specified in the URL)
override_config – (optional) if specified, values within will override the importer_config specified when it was added to the repository; these values will take effect only for this sync operation
id – identifies the repository (specified in the URL)
distributor_id – identifies which distributor assigned to the repository should be published
override_config – (optional) if specified, values within will override the distributor_config specified when it was added to the repository; these values will take effect only for this publish operation