FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

python-gitlab/docs/gl_objects/environments.rst at main · Prakhar225/python-gitlab · GitHub

Repository navigation

Latest commit

 

History

History
44 lines (27 loc) · 903 Bytes

File metadata and controls

44 lines (27 loc) · 903 Bytes

Environments

Reference

Examples

List environments for a project:

environments = project.environments.list()

Create an environment for a project:

environment = project.environments.create({'name': 'production'})

Retrieve a specific environment for a project:

environment = project.environments.get(112)

Update an environment for a project:

environment.external_url = 'http://foo.bar.com'
environment.save()

Delete an environment for a project:

environment = project.environments.delete(environment_id)
# or
environment.delete()

Stop an environments:

environment.stop()

Back | FazBrowse Home | New Git URL