Project

Profile

Help

Issue #318

closed

Update bindings retrieval response body example with more recent information

Added by ipanova@redhat.com about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation, Pulp 2
Sprint:
Quarter:

Description

http://pulp.readthedocs.org/en/latest/dev-guide/integration/rest-api/consumer/bind.html#retrieve-a-single-binding

As an example:

  1. curl H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X GET -k -u admin:admin "https://localhost/pulp/api/v2/consumers/c1/bindings/zoo/yum_distributor/"|python -m json.tool
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 610 100 610 0 0 982 0 -
    :--:-- --:--:-- --:--:-- 982
    {
    "_href": "/pulp/api/v2/consumers/c1/bindings/zoo/yum_distributor/",
    "_id": {
    "$oid": "54e4a51ca629d331857c5c77"
    },
    "_ns": "consumer_bindings",
    "binding_config": {},
    "consumer_actions": [],
    "consumer_id": "c1",
    "deleted": false,
    "details": {
    "ca_cert": null,
    "client_cert": null,
    "gpg_keys": [],
    "protocols": [
    "https"
    ],
    "relative_path": "/pulp/repos/repos/pulp/pulp/demo_repos/zoo/",
    "repo_name": "zoo",
    "server_name": "ec2-54-246-34-239.eu-west-1.compute.amazonaws.com"
    },
    "distributor_id": "yum_distributor",
    "id": "54e4a51ca629d331857c5c77",
    "notify_agent": true,
    "repo_id": "zoo",
    "type_id": "yum_distributor"
    }

Also available in: Atom PDF