Project

Profile

Help

Issue #1108

Updated by ipanova@redhat.com over 7 years ago

<pre> 
 $ curl -H "Accept: application/json" -H "WebFrameworkSwitch: django" -X GET -k -u admin:admin    'https://localhost/pulp/api/v2/repositories/test1/distributors/'|python -m json.tool 
   % Total      % Received % Xferd    Average Speed     Time      Time       Time    Current 
                                  Dload    Upload     Total     Spent      Left    Speed 
 100     305    100     290    100      15      928       48 --:--:-- --:--:-- --:--:--     929 
 [ 
     { 
         "_id": { 
             "$oid": "5596914945ef484fc437e6bb" 
         }, 
         "_ns": "repo_distributors", 
         "auto_publish": true, 
         "config": {}, 
         "distributor_type_id": "ostree_web_distributor", 
         "id": "ostree_web_distributor_name_cli", 
         "last_publish": null, 
         "repo_id": "test1", 
         "scheduled_publishes": [], 
         "scratchpad": null 
     } 
 ] 
 $ curl -H "Accept: application/json" -H "WebFrameworkSwitch: django" -X GET -k -u admin:admin -d '{"criteria": {}' 'https://localhost/pulp/api/v2/repositories/test1/distributors/ostree_web_distributor_name_cli/'|python -m json.tool 
   % Total      % Received % Xferd    Average Speed     Time      Time       Time    Current 
                                  Dload    Upload     Total     Spent      Left    Speed 
 100     303    100     288    100      15      856       44 --:--:-- --:--:-- --:--:--     854 
 { 
     "_id": { 
         "$oid": "5596914945ef484fc437e6bb" 
     }, 
     "_ns": "repo_distributors", 
     "auto_publish": true, 
     "config": {}, 
     "distributor_type_id": "ostree_web_distributor", 
     "id": "ostree_web_distributor_name_cli", 
     "last_publish": null, 
     "repo_id": "test1", 
     "scheduled_publishes": [], 
     "scratchpad": null 
 } 
 </pre> 

Back