GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-gitlab/docs/gl_objects/pagesdomains.rst at master · SVLay/python-gitlab

Expand file tree

/

pagesdomains.rst

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
65 lines (41 loc) · 1.21 KB
/

pagesdomains.rst

Copy path

File metadata and controls

65 lines (41 loc) · 1.21 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Pages domains

Admin

References

  • v4 API:
    • :class:`gitlab.v4.objects.PagesDomain`
    • :class:`gitlab.v4.objects.PagesDomainManager`
    • :attr:`gitlab.Gitlab.pagesdomains`
  • GitLab API: https://docs.gitlab.com/ce/api/pages_domains.html#list-all-pages-domains

Examples

List all the existing domains (admin only):

domains = gl.pagesdomains.list()

Project pages domain

References

  • v4 API:
    • :class:`gitlab.v4.objects.ProjectPagesDomain`
    • :class:`gitlab.v4.objects.ProjectPagesDomainManager`
    • :attr:`gitlab.v4.objects.Project.pagesdomains`
  • GitLab API: https://docs.gitlab.com/ce/api/pages_domains.html#list-pages-domains

Examples

List domains for a project:

domains = project.pagesdomains.list()

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')
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.