Repositories
List repositories
Returns the project's live repositories by name. Repositories in the deletion grace period are listed separately. Long lists are paged. When more than one page exists the response's Link header carries the first, last, previous and next pages.
Create a repository
A repository is a versioned file store inside a project. It starts empty; files reach it through the CLI's push command, which writes them as a named tag.
List deleted repositories
Returns repositories still inside the grace period that follows deletion, each with when and by whom it was deleted and how many days remain before it is removed for good. A repository listed here can still be restored. Long lists are paged. When more than one page exists the response's Link header carries the first, last, previous and next pages.
Read a repository
Returns the repository and when it was created. Its contents are addressed through tags, each a named snapshot of the files in one push.
Check whether a repository exists
Answers with a status and no body, which makes it a cheap way to test a name before creating a repository under it.
Delete a repository
Deletion is soft. The repository enters a grace period during which it can be restored, and its storage is still billed; once the period elapses the content is removed for good. Content other tags in the account still reference is untouched.
Restore a deleted repository
Brings a repository back from the grace period that follows deletion, with the tags it held. The project holding it has to be live, so restore a deleted project before its repositories. A repository whose grace period has elapsed cannot be restored.