Authorizations: oauth2_implicit (org:admin)
Type | Name | Description | Schema |
---|---|---|---|
path |
orgname |
The name of the organization |
string |
The policy configuration that is to be applied to the user namespace
Name | Description | Schema |
---|---|---|
method |
The method to use for pruning tags (number_of_tags, creation_date) |
string |
value |
The value to use for the pruning method (number of tags e.g. 10, time delta e.g. 7d (7 days)) |
|
tagPattern |
Tags only matching this pattern will be pruned |
string |
tagPatternMatches |
Determine whether pruned tags should or should not match the tagPattern |
boolean |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successful creation |
|
400 |
Bad Request |
|
401 |
Session required |
|
403 |
Unauthorized access |
|
404 |
Not found |
$ curl -X POST -H "Authorization: Bearer <access_token>" -H "Content-Type: application/json" -d '{"method": "number_of_tags", "value": 10}' http://<quay-server.example.com>/api/v1/organization/<organization_name>/autoprunepolicy/