A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://python-gitlab.readthedocs.org/en/stable/gl_objects/pagesdomains.html below:

Pages and Pages domains - python-gitlab v6.2.0

Back to top

Toggle table of contents sidebar

Pages and Pages domains Project pages References Examples

Get Pages settings for a project:

pages = project.pages.get()

Update Pages settings for a project:

project.pages.update(new_data={'pages_https_only': True})

Delete (unpublish) Pages for a project (admin only):

Pages domains (admin only) References Examples

List all the existing domains (admin only):

domains = gl.pagesdomains.list(get_all=True)
Project Pages domains References Examples

List domains for a project:

domains = project.pagesdomains.list(get_all=True)

Get a single domain:

domain = project.pagesdomains.get('d1.example.com')

Create a new domain:

domain = project.pagesdomains.create({'domain': 'd2.example.com})

Update an existing domain:

domain.certificate = open('d2.crt').read()
domain.key = open('d2.key').read()
domain.save()

Delete an existing domain:

domain.delete
# or
project.pagesdomains.delete('d2.example.com')

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4