-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add delete buildpack cache per app endpoint
- Loading branch information
1 parent
c526d5a
commit 6366085
Showing
5 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
docs/v3/source/includes/resources/apps/_clear_buildpack_cache.md.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
### Clear buildpack cache | ||
|
||
``` | ||
Example Request | ||
``` | ||
|
||
```shell | ||
curl "https://api.example.org/v3/apps/[guid]/actions/clear_buildpack_cache" \ | ||
-X POST \ | ||
-H "Authorization: bearer [token]" | ||
``` | ||
|
||
``` | ||
Example Response | ||
``` | ||
|
||
```http | ||
HTTP/1.1 202 Accepted | ||
Location: https://api.example.org/v3/jobs/[guid] | ||
``` | ||
|
||
This endpoint will delete all of the existing buildpack caches for a specified app. | ||
The buildpack cache is used during staging by buildpacks as a way to | ||
cache certain resources, e.g. downloaded Ruby gems. A user who wants to | ||
decrease the size of their blobstore could use this endpoint to delete | ||
unnecessary blobs. | ||
|
||
#### Definition | ||
`POST /v3/apps/:guid/actions/clear_buildpack_cache` | ||
|
||
#### Permitted roles | ||
| | ||
--- | | ||
Admin | | ||
Space Developer | | ||
Space Supporter | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters