Actions
Issue #323
closedDocument that it is possible to delete a consumer profile.
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
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
]$ curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X DELETE -k -u admin:admin "https://localhost/pulp/api/v2/consumers/c1/profiles/rpm/"
HTTP/1.1 200 OK
Date: Thu, 26 Feb 2015 13:11:01 GMT
Server: Apache/2.4.10 (Fedora) OpenSSL/1.0.1e-fips mod_wsgi/3.5 Python/2.7.5
Content-Length: 4
Content-Type: application/json
null
Updated by ipanova@redhat.com over 8 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ipanova@redhat.com
Updated by bmbouter over 8 years ago
- Triaged changed from No to Yes
- Severity set to Medium
Updated by ipanova@redhat.com over 8 years ago
- Status changed from ASSIGNED to POST
Updated by bmbouter over 8 years ago
- Category deleted (
1) - Tags Documentation added
Documentation is now a Tag not a Category.
Updated by ipanova@redhat.com over 8 years ago
- Status changed from POST to MODIFIED
Updated by dkliban@redhat.com over 8 years ago
- Status changed from MODIFIED to 5
Updated by igulina@redhat.com over 8 years ago
- Status changed from 5 to 6
Docs added [1]
>> curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X POST -k -u admin:admin -d '{ "content_type": "rpm", "profile": [{"arch": "i686", "epoch": 0, "name": "glib2", "release": "2.fc17", "vendor": "Fedora Project", "version": "2.32.4"}, {"arch": "x86_64", "epoch": 0, "name": "rpm-libs", "release": "8.fc17", "vendor": "Fedora Project", "version": "4.9.1.3"}]}' "https://localhost/pulp/api/v2/consumers/gosha/profiles/"
HTTP/1.1 201 CREATED
Date: Fri, 26 Jun 2015 14:40:19 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 551
Location: https://localhost/pulp/api/v2/consumers/gosha/profiles/rpm/
Content-Type: application/json
{"profile": [{"vendor": "Fedora Project", "name": "glib2", "epoch": 0, "version": "2.32.4", "release": "2.fc17", "arch": "i686"}, {"vendor": "Fedora Project", "name": "rpm-libs", "epoch": 0, "version": "4.9.1.3", "release": "8.fc17", "arch": "x86_64"}], "_href": "/pulp/api/v2/consumers/gosha/profiles/rpm/", "_ns": "consumer_unit_profiles", "profile_hash": "15df1c6105edacd6b167d2e9dd87311b069f50cebb2f7968ef185c1d6eae5197", "consumer_id": "gosha", "content_type": "rpm", "_id": {"$oid": "558d6453e512ed777ec43a23"}, "id": "558d6453e512ed777ec43a23"}
>> curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X GET -k -u admin:admin "https://localhost/pulp/api/v2/consumers/gosha/profiles/"
HTTP/1.1 200 OK
Date: Fri, 26 Jun 2015 14:40:24 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 553
Content-Type: application/json
[{"profile": [{"vendor": "Fedora Project", "name": "glib2", "epoch": 0, "version": "2.32.4", "release": "2.fc17", "arch": "i686"}, {"vendor": "Fedora Project", "name": "rpm-libs", "epoch": 0, "version": "4.9.1.3", "release": "8.fc17", "arch": "x86_64"}], "_href": "/pulp/api/v2/consumers/gosha/profiles/rpm/", "_ns": "consumer_unit_profiles", "profile_hash": "15df1c6105edacd6b167d2e9dd87311b069f50cebb2f7968ef185c1d6eae5197", "consumer_id": "gosha", "content_type": "rpm", "_id": {"$oid": "558d6453e512ed777ec43a23"}, "id": "558d6453e512ed777ec43a23"}]
>> curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X DELETE -k -u admin:admin "https://localhost/pulp/api/v2/consumers/gosha/profiles/rpm/"
HTTP/1.1 200 OK
Date: Fri, 26 Jun 2015 14:43:33 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 4
Content-Type: application/json
null
>> curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X GET -k -u admin:admin "https://localhost/pulp/api/v2/consumers/gosha/profiles/" HTTP/1.1 200 OK
Date: Fri, 26 Jun 2015 14:43:59 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 2
Content-Type: application/json
[]
Updated by amacdona@redhat.com almost 8 years ago
- Status changed from 6 to CLOSED - CURRENTRELEASE
Actions