Skip to content

Commit

Permalink
docs: describe fetching existing export status
Browse files Browse the repository at this point in the history
  • Loading branch information
nejch authored and JohnVillalovos committed Jul 23, 2022
1 parent 0b02b95 commit 9c5b8d5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/gl_objects/projects.rst
Expand Up @@ -289,6 +289,14 @@ generated by GitLab you need to:
with open('/tmp/export.tgz', 'wb') as f:
export.download(streamed=True, action=f.write)

You can also get the status of an existing export, regardless of
whether it was created via the API or the Web UI::

project = gl.projects.get(my_project)

# Gets the current export status
export = project.exports.get()

Import the project into the current user's namespace::

with open('/tmp/export.tgz', 'rb') as f:
Expand Down

0 comments on commit 9c5b8d5

Please sign in to comment.